CN110333975B - Method and device for testing storage equipment and equipment - Google Patents

Method and device for testing storage equipment and equipment Download PDF

Info

Publication number
CN110333975B
CN110333975B CN201910314777.8A CN201910314777A CN110333975B CN 110333975 B CN110333975 B CN 110333975B CN 201910314777 A CN201910314777 A CN 201910314777A CN 110333975 B CN110333975 B CN 110333975B
Authority
CN
China
Prior art keywords
storage device
storage
test
information
equipment
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
CN201910314777.8A
Other languages
Chinese (zh)
Other versions
CN110333975A (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.)
Shenzhen Demingli Electronics Co Ltd
Original Assignee
Shenzhen Demingli Electronics 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 Shenzhen Demingli Electronics Co Ltd filed Critical Shenzhen Demingli Electronics Co Ltd
Priority to CN201910314777.8A priority Critical patent/CN110333975B/en
Publication of CN110333975A publication Critical patent/CN110333975A/en
Application granted granted Critical
Publication of CN110333975B publication Critical patent/CN110333975B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The invention discloses a method, a device and equipment for testing storage equipment. Wherein the method comprises the following steps: acquiring equipment information of the storage equipment, setting a test target of the storage equipment according to the acquired equipment information of the storage equipment, wherein the test target of the storage equipment is a drive letter number of the storage equipment, starting set test software and tools by a total software guide according to the set test target of the storage equipment, starting a planned test item and flow, starting the planned test item and flow, testing the storage equipment by the set test software and tools by the total software guide according to the opened planned test item and flow, and acquiring all control handles in a window of the storage equipment to obtain a test result of the storage equipment. Through the mode, the test flow for testing the storage equipment can be simplified, the storage equipment can be prevented from being automatically tested in a manual mode, the test efficiency is improved, and the accuracy of the test result is high.

Description

Method and device for testing storage equipment and equipment
Technical Field
The present invention relates to the field of storage technologies, and in particular, to a method and apparatus for testing a storage device, and a device.
Background
Storage devices are devices for storing information, typically by digitizing the information and then storing the information in an electrical, magnetic, or optical medium.
After the storage device is generated, it generally goes through 2 processes: mass production and testing. And mass production, namely, mass production software sends a command through a main control chip, performs physical data writing, reading and checking on a storage wafer to obtain physical good blocks and bad blocks, and then performs statistics and arrangement on the good physical data blocks to obtain a logic data storage block process after arrangement. And testing, namely performing an omnibearing test process on data, formats, attributes, storage modes, writing-in and reading modes and the like of the logic storage units after mass production, thereby obtaining the performances of the storage equipment such as different data storage writing-in and reading processes, modes, attributes and the like.
Then, in the process of testing the storage device, for different test items and test requirements, test software of a specific test item is required to be adopted for testing.
At present, the test software for testing the storage device is very much, and is aimed at one or more items of test items and processes of the storage device, however, the storage device product often needs to pass multiple tests, and in order to complete multiple tests in a shorter time, multiple test software and test processes need to be integrated, and one-key test operation is adopted.
However, the inventors found that there are at least the following problems in the prior art:
the existing test scheme of the storage device generally integrates a plurality of test software and test flow, adopts a one-key test operation mode to test the storage device, has a plurality of test items and flow items of the storage device, needs to be started one by one in a manual mode, and if the test items and the flow items are missed due to manual operation errors, the test of the storage device cannot reach the standard, the test period can be prolonged, and the test result of the storage device needs to be manually recorded for a long time period.
Disclosure of Invention
Therefore, the invention aims to provide a testing method, a testing device and testing equipment for storage equipment, which can simplify the testing process of testing the storage equipment, avoid the manual automatic testing of the storage equipment, improve the testing efficiency and have high accuracy of testing results.
According to an aspect of the present invention, there is provided a method of testing a storage device, including:
acquiring equipment information of storage equipment; the device information comprises type information of the storage device and capacity information of the storage device;
setting a test target of the storage device according to the acquired device information of the storage device; wherein the test target of the storage device is the drive letter number of the storage device;
according to the set test target of the storage device, guiding and starting set test software and tools by using total software, and starting planned test items and flows;
and according to the opened planned test items and flow, testing the storage device by using a set test software and tool guided and started by a total software, and obtaining all control handles in a window of the storage device to obtain a test result of the storage device.
The obtaining the device information of the storage device includes:
acquiring an instance ID of a storage device and device path information;
acquiring a tree result of the storage device to obtain all the linked storage devices and key name information of the storage devices;
obtaining the key names and instance ID information of all storage devices in a registry;
comparing the obtained instance ID and the equipment path information of the storage equipment, the obtained all-linked storage equipment and storage equipment key name information, and the obtained storage equipment key names and instance ID information of all the storage equipment in the registry, and comparing to obtain the type information of the real storage equipment;
and sending a command prompt of the storage equipment according to the type information of the real storage equipment obtained by comparison, and obtaining the capacity information of the storage equipment.
The setting a test target of the storage device according to the acquired device information of the storage device includes:
clicking a selection target button to pop up a corresponding option box window according to the acquired equipment information of the storage equipment, acquiring a window handle number by calling a function to acquire the window handle, and setting a test target, namely a drive letter number, of the storage equipment in a mode of displaying the window by all buttons and character strings in the window.
And after the set test software and tool are guided and started by one piece of total software to test the storage equipment according to the opened planned test items and flow, all control handles in the window of the storage equipment are obtained, and a test result of the storage equipment is obtained, the method further comprises the following steps:
and generating a test report for testing the storage device according to the obtained test result of the storage device.
According to another aspect of the present invention, there is provided a test apparatus for a storage device, comprising:
the device comprises an acquisition module, a setting module, an opening module and a testing module;
the acquisition module is used for acquiring equipment information of the storage equipment; the device information comprises type information of the storage device and capacity information of the storage device;
the setting module is used for setting a test target of the storage device according to the acquired device information of the storage device; wherein the test target of the storage device is the drive letter number of the storage device;
the starting module is used for starting the set test software and tool according to the set test target of the storage device by a total software guide, and starting the planned test items and flow;
and the test module is used for testing the storage device by using a set test software and tool guided and started by a total software according to the opened planned test items and flow, and obtaining all control handles in a window of the storage device to obtain a test result of the storage device.
The acquiring module is specifically configured to:
acquiring an instance ID of a storage device and device path information;
acquiring a tree result of the storage device to obtain all the linked storage devices and key name information of the storage devices;
obtaining the key names and instance ID information of all storage devices in a registry;
comparing the obtained instance ID and the equipment path information of the storage equipment, the obtained all-linked storage equipment and storage equipment key name information, and the obtained storage equipment key names and instance ID information of all the storage equipment in the registry, and comparing to obtain the type information of the real storage equipment;
and sending a command prompt of the storage equipment according to the type information of the real storage equipment obtained by comparison, and obtaining the capacity information of the storage equipment.
The setting module is specifically configured to:
clicking a selection target button to pop up a corresponding option box window according to the acquired equipment information of the storage equipment, acquiring a window handle number by calling a function to acquire the window handle, and setting a test target, namely a drive letter number, of the storage equipment in a mode of displaying the window by all buttons and character strings in the window.
Wherein, the testing arrangement of storage device still includes:
and the generating module is used for generating a test report for testing the storage device according to the obtained test result of the storage device.
According to still another aspect of the present invention, there is provided a test apparatus for a storage apparatus, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of testing a memory device of any one of the preceding claims.
According to a further aspect of the present invention, there is provided a computer readable storage medium storing a computer program which, when executed by a processor, implements a method of testing a storage device as described in any one of the above.
The method and the device can be used for acquiring the device information of the storage device, wherein the device information comprises the type information of the storage device, the capacity information of the storage device and the like, and the test target of the storage device can be set according to the acquired device information of the storage device, wherein the test target of the storage device is a drive code of the storage device, and according to the set test target of the storage device, the set test software and tool can be guided and started by one piece of total software, the set test item and flow can be started, and according to the opened set test item and flow, the storage device can be guided and started by one piece of total software, all control handles in a window of the storage device can be acquired, so that the test result of the storage device can be obtained.
Further, according to the scheme, the tree result of the storage device can be obtained, all the linked storage devices and the storage device key name information are obtained, the storage device key names and the instance ID information of all the storage devices in the registry are obtained, the obtained instance ID and the device path information of the storage devices, the obtained all the linked storage devices and the storage device key name information, the obtained storage device key names and the instance ID information of all the storage devices in the registry are compared, the type information of the real storage devices is obtained, the command prompt of the storage devices is sent according to the obtained type information of the real storage devices, and the capacity information of the storage devices is obtained.
Further, according to the above scheme, according to the obtained device information of the storage device, the selection target button is clicked to pop up the corresponding option box window, the window handle is obtained by calling a function to obtain the window handle number, so that the mode of displaying the window by all buttons and character strings in the window is obtained, and the test target of the storage device, namely the drive letter number, is set.
Furthermore, according to the scheme, the test report for testing the storage device can be generated according to the obtained test result of the storage device, so that the method has the advantages of avoiding the manual mode of automatically generating the test report for testing the storage device, saving labor cost, shortening the period for generating the test report, improving the efficiency of generating the test report and having high test report accuracy.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow chart of an embodiment of a method for testing a memory device according to the present invention;
FIG. 2 is a flow chart of another embodiment of a method for testing a memory device according to the present invention;
FIG. 3 is a schematic diagram of a testing apparatus of a memory device according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of another embodiment of a testing apparatus of a memory device of the present invention;
FIG. 5 is a schematic diagram of a test apparatus of a memory device according to another embodiment of the present invention.
Detailed Description
The invention is described in further detail below with reference to the drawings and examples. It is specifically noted that the following examples are only for illustrating the present invention, but do not limit the scope of the present invention. Likewise, the following examples are only some, but not all, of the examples of the present invention, and all other examples, which a person of ordinary skill in the art would obtain without making any inventive effort, are within the scope of the present invention.
The invention provides a test method of a storage device, which can simplify the test flow of testing the storage device, can avoid the manual automatic test of the storage device, improves the test efficiency and has high test result accuracy.
Referring to fig. 1, fig. 1 is a flowchart illustrating an embodiment of a method for testing a memory device according to the present invention. It should be noted that, if there are substantially the same results, the method of the present invention is not limited to the flow sequence shown in fig. 1. As shown in fig. 1, the method comprises the steps of:
s101: acquiring equipment information of storage equipment; wherein the device information includes type information of the storage device, capacity information of the storage device, and the like.
The obtaining the device information of the storage device may include:
acquiring instance ID (InstanceID) of the storage device and device path (DevicePath) information;
acquiring a tree result of the storage device to obtain all the linked storage device and storage device key name (DeviceKeyName) information;
obtaining the key names and instance ID information of all storage devices in a registry;
comparing the obtained instance ID and the device path information of the storage device, the obtained all-linked storage device and storage device key name information, and the obtained storage device key names and instance ID information of all the storage devices in the registry, and comparing to obtain the type information of the real storage device;
according to the type information of the real storage device obtained by the comparison, cmd (command prompt) of the storage device is sent to acquire the capacity information of the storage device, so that the type information and the capacity information of the real storage device can be acquired.
S102: setting a test target of the storage device according to the acquired device information of the storage device; wherein the test target of the storage device is the drive number of the storage device.
Wherein, the setting the test target of the storage device according to the acquired device information of the storage device may include:
clicking a selection target button to pop up a corresponding option box window according to the acquired equipment information of the storage equipment, acquiring window handle numbers through calling a function to acquire window handles, and accordingly obtaining a mode of displaying windows by all buttons and character strings in the window.
In this embodiment, all buttons in the window may be "simple", "englist", "select target", "refresh", "all available spaces", "only", "write+verify", "verify" and "loop verify", etc., and the present invention is not limited thereto.
In this embodiment, the character string display window may be "web site www", or "target (not selected)", etc., and the present invention is not limited thereto.
S103: and according to the set test target of the storage device, guiding and enabling the set test software and tools by using total software, and starting the planned test items and flows.
In this embodiment, a dialog box may be popped up to confirm the tested folder and the root directory may be specified. Similarly, all list information in the current option frame is acquired by acquiring a window handle, when a USB flash disk word of the storage device is acquired, a checkWindowsLisk can be adopted to select the option, a FindWindowsEx click button can be called, a confirmation button is clicked, software automatically returns to a main interface, and at the moment, the test target information of the storage device is confirmed.
S104: and according to the opened planned test items and flow, testing the storage device by using a set test software and tool guided by a total software, and obtaining all control handles in a window of the storage device to obtain a test result of the storage device.
In this embodiment, sendMessage (hwnd, wm_ CLOSE, NULL, NULL) may be invoked to close the test software and the test ends.
In this embodiment, each test procedure may be a thread independently created to perform a test, and a current test thread may be created by clicking the display information sequence number display button once, and the tests of all devices are performed by the independent threads.
In this embodiment, the test progress may be fed back to the designated window of the software interface device in real time, and the current test progress is displayed by the corresponding window data or text information.
Wherein, after the set test software and tool are guided and started by a total software to test the storage device according to the opened planned test item and flow, all control handles in the window of the storage device are obtained, and after the test result of the storage device is obtained, the method further comprises the following steps:
according to the obtained test result of the storage device, the test report for testing the storage device is generated, so that the manual automatic generation of the test report for testing the storage device can be avoided, the labor cost is saved, the period for generating the test report is shortened, the efficiency of generating the test report is improved, and the test report accuracy is high.
It may be found that, in this embodiment, device information of a storage device may be obtained, where the device information includes type information of the storage device, capacity information of the storage device, and the like, and a test target of the storage device may be set according to the obtained device information of the storage device, where the test target of the storage device is a drive number of the storage device, and according to the set test target of the storage device, set test software and tools may be guided and enabled by a piece of total software, set test items and procedures may be started, and according to the set test items and procedures may be guided and enabled by the piece of total software, all controls in a window of the storage device may be tested by the set test software and tools, so as to obtain a handle test result of the storage device.
Further, in this embodiment, the tree result of the storage device may be obtained, all the linked storage devices and storage device key name information may be obtained, the storage device key names and instance ID information of all the storage devices in the registry may be obtained, and the obtained instance ID and device path information of all the storage devices, the obtained all the linked storage devices and storage device key name information, the obtained storage device key names and instance ID information of all the storage devices in the registry may be compared, the type information of the real storage device may be obtained, and the command prompt of the storage device may be sent according to the obtained type information of the real storage device, so as to obtain the capacity information of the storage device.
Further, in this embodiment, according to the obtained device information of the storage device, the selection target button may be clicked to pop up the corresponding option box window, and the window handle may be obtained by calling a function to obtain the window handle number, thereby obtaining the manner of displaying the window by all buttons and character strings in the window.
Referring to fig. 2, fig. 2 is a flowchart illustrating another embodiment of a testing method of a memory device according to the present invention. In this embodiment, the method includes the steps of:
s201: acquiring equipment information of storage equipment; wherein the device information includes type information of the storage device, capacity information of the storage device, and the like.
As described in S101, a detailed description is omitted here.
S202: setting a test target of the storage device according to the acquired device information of the storage device; wherein the test target of the storage device is the drive number of the storage device.
As described in S102, the description is omitted here.
S203: and according to the set test target of the storage device, guiding and enabling the set test software and tools by using total software, and starting the planned test items and flows.
As described in S103, a detailed description is omitted here.
S204: and according to the opened planned test items and flow, testing the storage device by using a set test software and tool guided by a total software, and obtaining all control handles in a window of the storage device to obtain a test result of the storage device.
As described in S104, a detailed description is omitted here.
S205: and generating a test report for testing the storage device according to the obtained test result of the storage device.
It can be found that in this embodiment, a test report for testing the storage device can be generated according to the obtained test result of the storage device, which has the advantages of avoiding the manual automatic generation of the test report for testing the storage device, saving labor cost, shortening the period of generating the test report, improving the efficiency of generating the test report, and having high test report accuracy.
The invention also provides a testing device of the storage equipment, which can simplify the testing process of testing the storage equipment, can avoid the manual automatic testing of the storage equipment, improves the testing efficiency and has high accuracy of the testing result.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a testing apparatus of a storage device according to an embodiment of the invention. In this embodiment, the test device 30 of the storage device includes an acquisition module 31, a setting module 32, an opening module 33, and a test module 34.
The acquiring module 31 is configured to acquire device information of a storage device; wherein the device information includes type information of the storage device, capacity information of the storage device, and the like.
The setting module 32 is configured to set a test target of the storage device according to the acquired device information of the storage device; wherein the test target of the storage device is the drive number of the storage device.
The opening module 33 is configured to enable the set test software and tool by a total software boot according to the set test target of the storage device, and open the planned test item and flow.
The test module 34 is configured to, according to the opened planned test item and flow, guide the set test software and tool to test the storage device by using a total software, and obtain all control handles in a window of the storage device, so as to obtain a test result of the storage device.
Alternatively, the obtaining module 31 may be specifically configured to:
acquiring an instance ID of a storage device and device path information;
acquiring a tree result of the storage device to obtain all the linked storage devices and key name information of the storage devices;
obtaining the key names and instance ID information of all storage devices in a registry;
comparing the obtained instance ID and the device path information of the storage device, the obtained all-linked storage device and storage device key name information, and the obtained storage device key names and instance ID information of all the storage devices in the registry, and comparing to obtain the type information of the real storage device;
and sending a command prompt of the storage equipment according to the real type information of the storage equipment obtained by comparison, and obtaining the capacity information of the storage equipment.
Optionally, the setting module 32 may be specifically configured to:
clicking a selection target button to pop up a corresponding option box window according to the acquired equipment information of the storage equipment, and acquiring a window handle number by calling a function to acquire the window handle, so that a mode that all buttons and character strings in the window display the window is obtained, and setting a test target of the storage equipment, namely a drive letter number.
Referring to fig. 4, fig. 4 is a schematic structural diagram of another embodiment of a testing apparatus of a storage device according to the present invention. Unlike the previous embodiment, the testing device 40 of the storage device according to the present embodiment further includes a generating module 41.
The generating module 41 is configured to generate a test report for testing the storage device according to the obtained test result of the storage device.
The respective unit modules of the testing device 30/40 of the storage apparatus may perform the corresponding steps in the above method embodiments, so that the detailed description of the respective unit modules is omitted herein.
The present invention further provides a test apparatus for a memory device, as shown in fig. 5, including: at least one processor 51; and a memory 52 communicatively coupled to the at least one processor 51; the memory 52 stores instructions executable by the at least one processor 51, and the instructions are executed by the at least one processor 51 to enable the at least one processor 51 to perform the method for testing a memory device.
Where the memory 52 and the processor 51 are connected by a bus, the bus may comprise any number of interconnected buses and bridges, the buses connecting the various circuits of the one or more processors 51 and the memory 52 together. The bus may also connect various other circuits such as peripherals, voltage regulators, and power management circuits, which are well known in the art, and therefore, will not be described any further herein. The bus interface provides an interface between the bus and the transceiver. The transceiver may be one element or may be a plurality of elements, such as a plurality of receivers and transmitters, providing a means for communicating with various other apparatus over a transmission medium. The data processed by the processor 51 is transmitted over a wireless medium via an antenna, which further receives the data and transmits the data to the processor 51.
The processor 51 is responsible for managing the bus and general processing and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. And the memory 52 may be used to store data used by the processor 51 in performing operations.
The present invention further provides a computer-readable storage medium storing a computer program. The computer program implements the above-described method embodiments when executed by a processor.
The method and the device can be used for acquiring the device information of the storage device, wherein the device information comprises the type information of the storage device, the capacity information of the storage device and the like, and the test target of the storage device can be set according to the acquired device information of the storage device, wherein the test target of the storage device is a drive code of the storage device, and according to the set test target of the storage device, the set test software and tool can be guided and started by one piece of total software, the set test item and flow can be started, and according to the opened set test item and flow, the storage device can be guided and started by one piece of total software, all control handles in a window of the storage device can be acquired, so that the test result of the storage device can be obtained.
Further, according to the scheme, the tree result of the storage device can be obtained, all the linked storage devices and the storage device key name information are obtained, the storage device key names and the instance ID information of all the storage devices in the registry are obtained, the obtained instance ID and the device path information of the storage devices, the obtained all the linked storage devices and the storage device key name information, the obtained storage device key names and the instance ID information of all the storage devices in the registry are compared, the type information of the real storage devices is obtained, the command prompt of the storage devices is sent according to the obtained type information of the real storage devices, and the capacity information of the storage devices is obtained.
Further, according to the above scheme, according to the obtained device information of the storage device, the selection target button is clicked to pop up the corresponding option box window, the window handle is obtained by calling a function to obtain the window handle number, so that the mode of displaying the window by all buttons and character strings in the window is obtained, and the test target of the storage device, namely the drive letter number, is set.
Furthermore, according to the scheme, the test report for testing the storage device can be generated according to the obtained test result of the storage device, so that the method has the advantages of avoiding the manual mode of automatically generating the test report for testing the storage device, saving labor cost, shortening the period for generating the test report, improving the efficiency of generating the test report and having high test report accuracy.
In the several embodiments provided in the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of modules or units is merely a logical functional division, and there may be additional divisions when actually implemented, e.g., multiple units or components may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment.
In addition, each functional unit in each embodiment of the present invention may be integrated in one processing unit, each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) or a processor (processor) to execute all or part of the steps of the methods of the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The foregoing description is only a partial embodiment of the present invention, and is not intended to limit the scope of the present invention, and all equivalent devices or equivalent processes using the descriptions and the drawings of the present invention or directly or indirectly applied to other related technical fields are included in the scope of the present invention.

Claims (8)

1. A method for testing a memory device, comprising:
acquiring equipment information of storage equipment; the device information comprises type information of the storage device and capacity information of the storage device;
setting a test target of the storage equipment according to the acquired equipment information of the storage equipment; wherein the test target of the storage device is the drive letter number of the storage device;
according to the set test target of the storage device, guiding and starting the set test software and tool by using total software, and starting the planned test items and flow;
according to the opened planned test items and flow, a set test software and tool are guided by a total software to test the storage device, all control handles in a window of the storage device are obtained, and a test result of the storage device is obtained;
the obtaining the device information of the storage device includes:
acquiring an instance ID of a storage device and device path information;
acquiring a tree result of the storage device to obtain all the linked storage devices and key name information of the storage devices;
obtaining the key names and instance ID information of all storage devices in a registry;
comparing the acquired instance ID and the equipment path information of the storage equipment, the acquired all-linked storage equipment and storage equipment key name information, and the acquired storage equipment key names and instance ID information of all the storage equipment in the registry, and comparing to acquire the real type information of the storage equipment;
and sending a command prompt of the storage equipment according to the type information of the real storage equipment obtained by comparison, and obtaining the capacity information of the storage equipment.
2. The method for testing a storage device according to claim 1, wherein setting a test target of the storage device according to the acquired device information of the storage device comprises:
clicking a selection target button to pop up a corresponding option box window according to the acquired equipment information of the storage equipment, and acquiring a window handle number by calling a function to acquire the window handle, so that a mode that all buttons and character strings in the window display the window is obtained, and setting a test target of the storage equipment, namely a drive letter number.
3. The method for testing the storage device according to claim 1, wherein the method for testing the storage device by using a set test software and tool guided and enabled by a total software according to the opened planned test items and processes, obtains all control handles in a window of the storage device, and further comprises, after obtaining a test result of the storage device:
and generating a test report for testing the storage device according to the obtained test result of the storage device.
4. A test apparatus for a memory device, comprising:
the device comprises an acquisition module, a setting module, an opening module and a testing module;
the acquisition module is used for acquiring equipment information of the storage equipment; the device information comprises type information of the storage device and capacity information of the storage device;
the setting module is used for setting a test target of the storage device according to the acquired device information of the storage device; wherein the test target of the storage device is the drive letter number of the storage device;
the starting module is used for starting the set test software and tool according to the set test target of the storage device by a total software guide, and starting the planned test items and flow;
the test module is used for testing the storage device by using a set test software and tool guided and started by a total software according to the opened planned test items and flow, and obtaining all control handles in a window of the storage device to obtain a test result of the storage device;
the acquisition module is specifically configured to:
acquiring an instance ID of a storage device and device path information;
acquiring a tree result of the storage device to obtain all the linked storage devices and key name information of the storage devices;
obtaining the key names and instance ID information of all storage devices in a registry;
comparing the acquired instance ID and the equipment path information of the storage equipment, the acquired all-linked storage equipment and storage equipment key name information, and the acquired storage equipment key names and instance ID information of all the storage equipment in the registry, and comparing to acquire the real type information of the storage equipment;
and sending a command prompt of the storage equipment according to the type information of the real storage equipment obtained by comparison, and obtaining the capacity information of the storage equipment.
5. The apparatus for testing a storage device according to claim 4, wherein the setting module is specifically configured to:
clicking a selection target button to pop up a corresponding option box window according to the acquired equipment information of the storage equipment, and acquiring a window handle number by calling a function to acquire the window handle, so that a mode that all buttons and character strings in the window display the window is obtained, and setting a test target of the storage equipment, namely a drive letter number.
6. The apparatus for testing a memory device of claim 4, further comprising:
and the generating module is used for generating a test report for testing the storage device according to the obtained test result of the storage device.
7. A test apparatus for a memory device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of testing a storage device according to any one of claims 1 to 3.
8. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the method of testing a storage device according to any one of claims 1 to 3.
CN201910314777.8A 2019-04-18 2019-04-18 Method and device for testing storage equipment and equipment Active CN110333975B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910314777.8A CN110333975B (en) 2019-04-18 2019-04-18 Method and device for testing storage equipment and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910314777.8A CN110333975B (en) 2019-04-18 2019-04-18 Method and device for testing storage equipment and equipment

Publications (2)

Publication Number Publication Date
CN110333975A CN110333975A (en) 2019-10-15
CN110333975B true CN110333975B (en) 2023-05-02

Family

ID=68139241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910314777.8A Active CN110333975B (en) 2019-04-18 2019-04-18 Method and device for testing storage equipment and equipment

Country Status (1)

Country Link
CN (1) CN110333975B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US4048481A (en) * 1974-12-17 1977-09-13 Honeywell Information Systems Inc. Diagnostic testing apparatus and method
US10489364B2 (en) * 2001-08-31 2019-11-26 Margaret Runchey Semantic model of everything recorded with UR-URL combination identity-identifier-addressing-indexing method, means and apparatus
KR100498498B1 (en) * 2003-05-15 2005-07-01 삼성전자주식회사 Method for testing hard disk driver and recording medium
CN101930399A (en) * 2010-08-16 2010-12-29 于秀山 Method for recording software test
CN107391327A (en) * 2017-06-30 2017-11-24 郑州云海信息技术有限公司 A kind of performance test methods of storage device, device and server
CN107943635A (en) * 2017-11-30 2018-04-20 郑州云海信息技术有限公司 A kind of test method of storage device, device and medium
CN109524054A (en) * 2018-11-16 2019-03-26 郑州云海信息技术有限公司 A kind of more hard disk types automatic positioning test method and device

Also Published As

Publication number Publication date
CN110333975A (en) 2019-10-15

Similar Documents

Publication Publication Date Title
US7373636B2 (en) Automated software testing system and method
CN109408375B (en) Method and device for generating interface document
US20080155330A1 (en) Methods and apparatus for debugging a workflow process
CN107832207A (en) Interface performance test method, apparatus, storage medium and computer equipment
CN103164328A (en) Method and device and system for regression testing of service function
TW201312340A (en) Handheld electronic device testing system and method
CN106547698A (en) The processing method of coverage data, device and server
CN111563042A (en) Wireless performance test system and method applied to Wi-Fi5 chip
CN107391366A (en) The generation method and execution method and apparatus of a kind of test case
CN107193740A (en) The software test case test system and method for a kind of Reuse-Oriented
CN104049974A (en) Dynamic control assembly method and system
US8397114B2 (en) Automated regression testing intermediary
CN109977012A (en) Joint debugging test method, device, equipment and the computer readable storage medium of system
US7286953B1 (en) Device testing automation utility and method
CN110333975B (en) Method and device for testing storage equipment and equipment
US20100242024A1 (en) User Interface System and Method for Controlling Conversion of a Source Job Control Language File into a Test Job Control Language File
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
CN110335637B (en) Method and device for testing storage equipment and equipment
US20080270942A1 (en) Method and Apparatus for Displaying Test Data
CN101286050A (en) Test instrumentation control system and method, instrument control device
CN108962335A (en) A kind of test device and method that memory circulation note is wrong
CN114169985A (en) Asset value-reducing stage determination method and device
US20180276107A1 (en) Method for message-processing
CN111258648B (en) Interactive control method, device, computer system and medium for host system
CN114487758B (en) Test method and test system for semiconductor equipment

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
CB02 Change of applicant information

Address after: 518000 Intelligence Valley Innovation Park 701, 707, No. 1010 Bulong Road, Xinniu Community, Minzhi Street, Longhua District, Shenzhen City, Guangdong Province

Applicant after: Shenzhen deminli Technology Co.,Ltd.

Address before: 518000 Intelligence Valley Innovation Park 701, 707, No. 1010 Bulong Road, Xinniu Community, Minzhi Street, Longhua District, Shenzhen City, Guangdong Province

Applicant before: SHENZHEN DEMINGLI ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 2501, 2401, block a, building 1, Shenzhen new generation industrial park, 136 Zhongkang Road, Meidu community, Meilin street, Futian District, Shenzhen, Guangdong 518000

Applicant after: Shenzhen deminli Technology Co.,Ltd.

Address before: 701, 707, wisdom Valley Innovation Park, 1010 Bulong Road, Xinniu community, Minzhi street, Longhua District, Shenzhen, Guangdong 518000

Applicant before: Shenzhen deminli Technology Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant