CN112634979B - Method and system for testing USB electronic disks in batch - Google Patents

Method and system for testing USB electronic disks in batch Download PDF

Info

Publication number
CN112634979B
CN112634979B CN202110059331.2A CN202110059331A CN112634979B CN 112634979 B CN112634979 B CN 112634979B CN 202110059331 A CN202110059331 A CN 202110059331A CN 112634979 B CN112634979 B CN 112634979B
Authority
CN
China
Prior art keywords
information
content
test
target
mapping
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
CN202110059331.2A
Other languages
Chinese (zh)
Other versions
CN112634979A (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.)
Axd Anxinda Memory Technology Co ltd
Original Assignee
Axd Anxinda Memory Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Axd Anxinda Memory Technology Co ltd filed Critical Axd Anxinda Memory Technology Co ltd
Priority to CN202110059331.2A priority Critical patent/CN112634979B/en
Publication of CN112634979A publication Critical patent/CN112634979A/en
Application granted granted Critical
Publication of CN112634979B publication Critical patent/CN112634979B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C29/00Checking stores for correct operation ; Subsequent repair; Testing stores during standby or offline operation
    • G11C29/56External testing equipment for static stores, e.g. automatic test equipment [ATE]; Interfaces therefor

Landscapes

  • Signal Processing For Digital Recording And Reproducing (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The method and the device can realize batch test of the USB electronic disks to be tested, can perform read-write test on the USB electronic disks to be tested through a target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested, then identify each read-write test result, output a first visual result corresponding to a first USB electronic disk when the read-write test result represents that a first USB electronic disk corresponding to the read-write test result passes the test, and output a second visual result corresponding to a second USB electronic disk when the read-write test result represents that a second USB electronic disk corresponding to the read-write test result does not pass the test. By the design, the automatic batch test of the USB electronic disks to be tested can be realized, the batch test efficiency of the USB electronic disks is improved, the test time is reduced, and the labor cost and the time cost consumed by the test are reduced.

Description

Method and system for testing USB electronic disks in batch
Technical Field
The disclosure relates to the technical field of testing of USB DOM electronic disks, in particular to a method and a system for testing USB electronic disks in batches.
Background
In the storage industry, the quality of storage devices is of great concern to customers. In the prior art, one machine for testing a hard disk by using H2test software can only test one USB DOM electronic disk, and the requirement of mass production cannot be met. In the prior art, the H2test software cannot realize the simultaneous test of a plurality of unified USB DOM electronic disks; when H2test software is used for testing a hard disk, a test target needs to be manually selected, then the operation is clicked, automation cannot be realized, one-key operation cannot be performed, and the production efficiency is improved. Therefore, the important problem in performing the batch fast test on the USB DOM electronic disks is how to improve the efficiency of the batch fast test on the USB DOM electronic disks. However, the existing test method for the USB DOM electronic disk is low in efficiency and long in time consumption.
Disclosure of Invention
In order to solve the above problems in the related art, the present disclosure provides a method and system for batch testing USB electronic disks.
The first aspect provides a method for batch testing of USB electronic disks, which is applied to computer equipment and comprises the following steps:
when insertion signals of a plurality of USB electronic disks to be tested are detected, performing mode identification on the plurality of USB electronic disks to be tested, and running a target test program when the current mode of the plurality of USB electronic disks to be tested is identified to be a mobile hard disk mode;
performing read-write test on the plurality of USB electronic disks to be tested through the target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested;
and identifying each read-write test result, outputting a first visual result corresponding to a first USB electronic disk when the read-write test result represents that the corresponding first USB electronic disk passes the test, and outputting a second visual result corresponding to a second USB electronic disk when the read-write test result represents that the corresponding second USB electronic disk does not pass the test.
Optionally, the performing, by the target test program, read-write test on the multiple USB electronic disks to be tested to obtain a read-write test result corresponding to each of the USB electronic disks to be tested, includes:
writing first test data into each USB electronic disk to be tested through the target test program;
reading data of each USB electronic disk to be tested through the target test program to obtain second test data; the first test data and the second test data of each USB electronic disk to be tested correspond to each other one by one;
and obtaining a read-write test result corresponding to each USB electronic disk to be tested according to the first test data and the second test data.
Optionally, obtaining a read-write test result corresponding to each to-be-tested USB electronic disk according to the first test data and the second test data includes:
acquiring first data output information corresponding to the first test data and second data output information corresponding to the second test data; the first data output information and the second data output information respectively comprise a plurality of output information segment contents with different comparison test indexes, and the output information segment contents comprise image contents, voice contents and/or text contents;
extracting original content description information of the first test data in one output information segment content of the first data output information, and determining the output information segment content with the most comparison test indexes in the second data output information as target output information segment content; mapping the original content description information to the target output information segment content according to an electronic disk fault detection model and a preset output information classification result, obtaining original content mapping information in the target output information segment content, and generating a read-write test comparison index between the first test data and the second test data according to the original content description information and the original content mapping information;
obtaining associated content description information in the target output information segment content by taking the original content mapping information as reference information, mapping the associated content description information to the output information segment content of the original content description information according to the index transfer information corresponding to the read-write test comparison index, obtaining the associated content mapping information corresponding to the associated content description information in the output information segment content of the original content description information, and determining the target content description information of the associated content mapping information;
acquiring a target mapping content integration result of mapping the original content description information to the target output information fragment content; according to the similarity analysis result between the associated content mapping information and the item test categories corresponding to the plurality of content mapping items in the target mapping content integration result, sequentially acquiring target comparison information corresponding to the target content description information section by section in the second data output information until the test weight of the fragment content of the output information fragment content where the target comparison information is located is consistent with the test weight of the fragment content of the target content description information in the first data output information, stopping acquiring the target comparison information in the next output information fragment content, and determining the read-write test comparison sequence between the target content description information and the target comparison information acquired last time; comparing the output information fragment contents corresponding to each other in the first data output information and the second data output information one by one through the read-write test comparison sequence to obtain a fragment content comparison result; and determining a read-write test result corresponding to each USB electronic disk to be tested according to the comparison result of the fragment contents.
Optionally, the obtaining first data output information corresponding to the first test data and second data output information corresponding to the second test data includes:
obtaining the first data output information corresponding to the first test data according to test result evaluation information corresponding to a comparison test index, wherein the use feedback information corresponding to the comparison test index between any two adjacent output information fragment contents in the first data output information is the test result evaluation information corresponding to the comparison test index;
and obtaining second data output information corresponding to the second test data according to test result evaluation information corresponding to the comparison test indexes, wherein the use feedback information corresponding to the comparison test indexes between any two adjacent output information fragment contents in the second data output information is the test result evaluation information corresponding to the comparison test indexes.
Optionally, the mapping the original content description information to the target output information segment content according to an electronic disk fault detection model and a preset output information classification result, obtaining original content mapping information in the target output information segment content, and generating a read-write test comparison index between the first test data and the second test data according to the original content description information and the original content mapping information, includes:
mapping the original content description information to the target output information segment content according to the electronic disk fault detection model and the preset output information classification result, and obtaining the original content mapping information in the target output information segment content;
acquiring fragment content labels from the output information fragment content of the original content description information, wherein the fragment content labels are multi-level classification labels taking the original content description information as reference information;
mapping the fragment content label to the target output information fragment content according to the electronic disk fault detection model and the preset output information classification result, and obtaining associated content mapping information in the target output information fragment content;
generating a read-write test comparison index between the first test data and the second test data according to a content matching result between the original content description information and the fragment content tag, the original content mapping information and the associated content mapping information.
Optionally, the mapping the original content description information to the target output information segment content according to the electronic disk fault detection model and the preset output information classification result, and obtaining the original content mapping information in the target output information segment content includes:
mapping the original content description information into disk array information according to the electronic disk fault detection model and the electronic disk fault detection record to obtain original disk array mapping information;
converting the original disk array mapping information to a disk array mapping information set of the second test data according to a relative timing sequence state and a relative detection progress between a detection running state of the electronic disk fault detection corresponding to the first test data and a detection running state of the electronic disk fault detection corresponding to the second test data, so as to obtain disk array mapping information to be processed;
mapping the mapping information of the disk array to be processed to the information content with the reading indication mark under the reading result information set of the second test data to obtain the mapping information of the content to be processed;
and screening the dynamic mapping information of the content mapping information to be processed, and mapping the screened content mapping information to be processed into the content of the target output information segment according to the fault detection model of the electronic disk to obtain the original content mapping information.
Optionally, the obtaining of the target mapping content integration result that the original content description information is mapped to the target output information segment content includes:
mapping the to-be-processed disk array mapping information corresponding to the original content description information to information content with the minimum reading times under a reading result information set of the second test data to obtain local content mapping information;
mapping the disk array mapping information to be processed corresponding to the original content description information to information content with the maximum reading times under the reading result information set of the second test data to obtain global content mapping information;
determining the difference comparison result of the local content mapping information and the global content mapping information as updating information corresponding to the original mapping content integration result;
and screening the dynamic mapping information of each mapping content in the updating information corresponding to the original mapping content integration result, and mapping the screened dynamic mapping information of each mapping content to the target output information segment content according to the electronic disk fault detection model to obtain the target mapping content integration result.
Optionally, the obtaining, according to a result of analyzing similarity between item test categories corresponding to a plurality of content mapping items in the associated content mapping information and the target mapping content integration result, target comparison information corresponding to the target content description information in the second data output information in sequence segment by segment until a segment content test weight of an output information segment content where the obtained target comparison information is located is consistent with a segment content test weight of the target content description information in the first data output information, target comparison information in a next output information segment content is stopped to be obtained, and a read-write test comparison sequence between the target content description information and target comparison information obtained last time is determined, includes:
determining comparison information of the target content description information in the target output information fragment content as target comparison information according to similarity analysis results between the associated content mapping information and item test categories corresponding to a plurality of content mapping items in the target mapping content integration result; if the segment content test weight of the target output information segment content is greater than the segment content test weight of the target content description information in the first data output information, mapping the target comparison information and the target mapping content integration result to a next output information segment content of the target output information segment content, determining comparison information in the next output information segment content based on the mapped target comparison information and the mapped target mapping content integration result, determining the next output information segment content as the target output information segment content, and determining the comparison information in the next output information segment content as the target comparison information;
and if the segment content testing weight of the segment content of the target output information in the second data output information is consistent with the segment content testing weight of the target content description information in the first data output information, determining a read-write testing comparison sequence between the target content description information and the target comparison information determined last time.
Optionally, the method further includes:
simultaneously presenting the first visualization result and the second visualization result in a display interface of the computer device.
The second aspect provides a system for testing USB electronic disks in batches, which comprises computer equipment and a plurality of USB electronic disks to be tested; the USB electronic disk to be tested is used for being inserted into the computer equipment, and the computer equipment is used for:
when insertion signals of a plurality of USB electronic disks to be tested are detected, performing mode identification on the plurality of USB electronic disks to be tested, and running a target test program when the current mode of the plurality of USB electronic disks to be tested is identified to be a mobile hard disk mode;
performing read-write test on the plurality of USB electronic disks to be tested through the target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested;
and identifying each read-write test result, outputting a first visual result corresponding to a first USB electronic disk when the read-write test result represents that the corresponding first USB electronic disk passes the test, and outputting a second visual result corresponding to a second USB electronic disk when the read-write test result represents that the corresponding second USB electronic disk does not pass the test.
The technical scheme provided by the embodiment of the disclosure can have the following beneficial effects.
The method and the device can realize batch test of the USB electronic disks to be tested, can perform read-write test on the USB electronic disks to be tested through a target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested, then identify each read-write test result, output a first visual result corresponding to a first USB electronic disk when the read-write test result represents that a first USB electronic disk corresponding to the read-write test result passes the test, and output a second visual result corresponding to a second USB electronic disk when the read-write test result represents that a second USB electronic disk corresponding to the read-write test result does not pass the test. By the design, the automatic batch test of the USB electronic disks to be tested can be realized, the batch test efficiency of the USB electronic disks is improved, the test time is reduced, and the labor cost and the time cost consumed by the test are reduced.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and together with the description, serve to explain the principles of the invention.
Fig. 1 is a flowchart illustrating a method of batch testing USB electronic disks according to an exemplary embodiment.
Fig. 2 is a block diagram illustrating an apparatus for batch testing USB electronic disks according to an exemplary embodiment.
FIG. 3 is a flow chart illustrating a system for batch testing USB electronic disks according to an exemplary embodiment
Fig. 4 is a diagram illustrating a hardware configuration of a computer device according to an example embodiment.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
Referring first to fig. 1, a schematic diagram of a method for batch testing USB electronic disks according to the present disclosure is shown, where the method may be applied to a computer device, and the computer device is in communication with a flight control of an unmanned aerial vehicle. Further, the method may include the following steps S11-S13.
Step S11, when the insertion signals of the USB electronic disks to be tested are detected, performing mode recognition on the USB electronic disks to be tested, and when the current mode of the USB electronic disks to be tested is recognized to be the mobile hard disk mode, running a target test program.
In this embodiment, the USB electronic disk to be tested may be a USB DOM electronic disk, the target test program may be H2testEX, and the USB electronic disk to be tested may be connected to the computer device through a USB HUB device (universal serial bus HUB).
Step S12, performing read-write test on the multiple USB electronic disks to be tested through the target test program, and obtaining a read-write test result corresponding to each USB electronic disk to be tested.
Step S13, identifying each read-write test result, outputting a first visual result corresponding to a first USB electronic disk when the read-write test result indicates that the corresponding first USB electronic disk passes the test, and outputting a second visual result corresponding to a second USB electronic disk when the read-write test result indicates that the corresponding second USB electronic disk does not pass the test.
For example, the read-write test may be a text read-write test, a voice read-write test, or an image read-write test, which is not limited herein. It can be understood that, through the contents described in the foregoing steps S11-S13, batch testing of multiple USB electronic disks to be tested can be achieved, a read-write test can be performed on the multiple USB electronic disks to be tested through a target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested, then each read-write test result is identified, when the read-write test result indicates that a first USB electronic disk corresponding to the read-write test result passes the test, a first visual result corresponding to the first USB electronic disk is output, and when the read-write test result indicates that a second USB electronic disk corresponding to the read-write test result does not pass the test, a second visual result corresponding to the second USB electronic disk is output. By the design, the automatic batch test of the USB electronic disks to be tested can be realized, the batch test efficiency of the USB electronic disks is improved, the test time is reduced, and the labor cost and the time cost consumed by the test are reduced.
In some examples, the performing, by the target test program, a read-write test on the plurality of USB electronic disks to be tested to obtain a read-write test result corresponding to each of the USB electronic disks to be tested in step S12 may include the following steps S121 and S123.
Step S121 writes first test data to each of the USB electronic disks to be tested through the target test program.
Step S122, reading data of each USB electronic disk to be tested through the target test program to obtain second test data; and the first test data and the second test data of each USB electronic disk to be tested correspond to each other one by one.
Step S123, obtaining a read-write test result corresponding to each USB electronic disk to be tested according to the first test data and the second test data.
In some examples, in order to ensure that the read-write test result can accurately and reliably reflect the quality performance and the fault condition of the USB electronic disk, the obtaining of the read-write test result corresponding to each USB electronic disk to be tested according to the first test data and the second test data described in step S123 may exemplarily include the contents described in the following steps S1231 to S1234.
Step S1231, acquiring first data output information corresponding to the first test data and second data output information corresponding to the second test data; the first data output information and the second data output information respectively comprise a plurality of output information segment contents with different comparison test indexes, and the output information segment contents comprise image contents, voice contents and/or text contents.
Step S1232, extracting original content description information of the first test data in one of the output information segment contents of the first data output information, and determining the output information segment content having the most comparison test indexes in the second data output information as a target output information segment content; mapping the original content description information to the target output information segment content according to an electronic disk fault detection model and a preset output information classification result, obtaining original content mapping information in the target output information segment content, and generating a read-write test comparison index between the first test data and the second test data according to the original content description information and the original content mapping information.
Step S1233, obtaining associated content description information in the target output information segment content by using the original content mapping information as reference information, mapping the associated content description information to the output information segment content of the original content description information according to the index transfer information corresponding to the read-write test comparison index, obtaining the associated content mapping information corresponding to the associated content description information in the output information segment content of the original content description information, and determining the target content description information of the associated content mapping information.
Step S1234, obtaining a target mapping content integration result of the original content description information mapped to the target output information fragment content; according to the similarity analysis result between the associated content mapping information and the item test categories corresponding to the plurality of content mapping items in the target mapping content integration result, sequentially acquiring target comparison information corresponding to the target content description information section by section in the second data output information until the test weight of the fragment content of the output information fragment content where the target comparison information is located is consistent with the test weight of the fragment content of the target content description information in the first data output information, stopping acquiring the target comparison information in the next output information fragment content, and determining the read-write test comparison sequence between the target content description information and the target comparison information acquired last time; comparing the output information fragment contents corresponding to each other in the first data output information and the second data output information one by one through the read-write test comparison sequence to obtain a fragment content comparison result; and determining a read-write test result corresponding to each USB electronic disk to be tested according to the comparison result of the fragment contents.
By adopting the design, based on the steps S1231 to S1234, the output information segment contents corresponding to the first data output information corresponding to the first test data and the second data output information corresponding to the second test data can be compared one by one, so that the read-write test result can reflect the local and global comparison results of the first test data and the second test data, and thus the read-write test result can accurately and reliably reflect the quality performance and the fault condition of the USB electronic disk.
Further, the acquiring of the first data output information corresponding to the first test data and the second data output information corresponding to the second test data described in step S1231 may include: obtaining the first data output information corresponding to the first test data according to test result evaluation information corresponding to a comparison test index, wherein the use feedback information corresponding to the comparison test index between any two adjacent output information fragment contents in the first data output information is the test result evaluation information corresponding to the comparison test index; and obtaining second data output information corresponding to the second test data according to test result evaluation information corresponding to the comparison test indexes, wherein the use feedback information corresponding to the comparison test indexes between any two adjacent output information fragment contents in the second data output information is the test result evaluation information corresponding to the comparison test indexes.
Further, the mapping step S1232 of mapping the original content description information to the target output information segment content according to the electronic disk fault detection model and the preset output information classification result, obtaining original content mapping information in the target output information segment content, and generating a read-write test comparison index between the first test data and the second test data according to the original content description information and the original content mapping information may include the following steps S1232 a-S1232 d.
Step S1232a, mapping the original content description information to the target output information segment content according to the electronic disk failure detection model and the preset output information classification result, and obtaining the original content mapping information in the target output information segment content.
Step S1232b, obtaining a segment content tag from the output information segment content of the original content description information, where the segment content tag is a multi-level classification tag using the original content description information as reference information.
Step S1232c, mapping the segment content label to the target output information segment content according to the electronic disk fault detection model and the preset output information classification result, and obtaining associated content mapping information in the target output information segment content.
Step S1232d, generating a read-write test comparison index between the first test data and the second test data according to the content matching result between the original content description information and the fragment content tag, the original content mapping information, and the associated content mapping information.
Thus, by performing the steps S1232a to S1232d, the read/write test alignment index can be accurately determined in real time.
Further, in step S1232a, the mapping the original content description information to the target output information segment content according to the electronic disk failure detection model and the preset output information classification result, and obtaining the original content mapping information in the target output information segment content may include: mapping the original content description information into disk array information according to the electronic disk fault detection model and the electronic disk fault detection record to obtain original disk array mapping information; converting the original disk array mapping information to a disk array mapping information set of the second test data according to a relative timing sequence state and a relative detection progress between a detection running state of the electronic disk fault detection corresponding to the first test data and a detection running state of the electronic disk fault detection corresponding to the second test data, so as to obtain disk array mapping information to be processed; mapping the mapping information of the disk array to be processed to the information content with the reading indication mark under the reading result information set of the second test data to obtain the mapping information of the content to be processed; and screening the dynamic mapping information of the content mapping information to be processed, and mapping the screened content mapping information to be processed into the content of the target output information segment according to the fault detection model of the electronic disk to obtain the original content mapping information.
Further, the obtaining of the target mapping content integration result that the original content description information is mapped to the target output information segment content described in step S1234 includes: mapping the to-be-processed disk array mapping information corresponding to the original content description information to information content with the minimum reading times under a reading result information set of the second test data to obtain local content mapping information; mapping the disk array mapping information to be processed corresponding to the original content description information to information content with the maximum reading times under the reading result information set of the second test data to obtain global content mapping information; determining the difference comparison result of the local content mapping information and the global content mapping information as updating information corresponding to the original mapping content integration result; and screening the dynamic mapping information of each mapping content in the updating information corresponding to the original mapping content integration result, and mapping the screened dynamic mapping information of each mapping content to the target output information segment content according to the electronic disk fault detection model to obtain the target mapping content integration result.
For some possible embodiments, in step S1234, according to the result of similarity analysis between the item test categories corresponding to the multiple content mapping items in the target mapping content integration result and the associated content mapping information, sequentially acquiring target comparison information corresponding to the target content description information section by section in the second data output information, stopping acquiring the target comparison information in the next output information section content until the section content test weight of the output information section content where the target comparison information is acquired is consistent with the section content test weight of the target content description information in the first data output information, and determining a read-write test comparison sequence between the target content description information and the last acquired target comparison information, which may include the following steps S12341 and S12342.
Step S12341, determining comparison information of the target content description information in the target output information fragment content as target comparison information according to a similarity analysis result between the associated content mapping information and the item test categories corresponding to the plurality of content mapping items in the target mapping content integration result; if the segment content test weight of the target output information segment content is greater than the segment content test weight of the target content description information in the first data output information, mapping the target comparison information and the target mapping content integration result to the next output information segment content of the target output information segment content, determining the comparison information in the next output information segment content based on the mapped target comparison information and the mapped target mapping content integration result, determining the next output information segment content as the target output information segment content, and determining the comparison information in the next output information segment content as the target comparison information.
Step S12342, if the segment content test weight of the segment content of the target output information in the second data output information is consistent with the segment content test weight of the target content description information in the first data output information, determining a read-write test comparison sequence between the target content description information and the target comparison information determined last time.
On the basis of the above, the method may further include: simultaneously presenting the first visualization result and the second visualization result in a display interface of the computer device. Therefore, different test results can be displayed in batches of graphical interface information, and accordingly faulty products can be screened conveniently.
In some examples, H2test is a piece of USB DOM electronic disk read-write speed test and bad block detection software, and tests the actual write speed of the USB DOM electronic disk by writing data into the directory to be tested, and reads them to check whether the written data is correct, so as to determine whether the read-write storage block is a bad block. For example, a USB DOM electronic disk that cannot pass the H2testw test can be at least determined to have a physical bad block, and the USB DOM electronic disk cannot be used and data loss occurs. And copying files such as videos and music slightly smaller than the capacity of the USB DOM electronic disk into the USB DOM electronic disk, then opening the files on the USB DOM electronic disk, and if the files are wrong or cannot normally run, indicating that the USB DOM electronic disk is damaged.
Based on the same inventive concept, as shown in fig. 2, there is also shown an apparatus 200 for batch testing USB electronic disks, applied to a computer device, including:
the insertion detection module 210 is configured to perform mode identification on a plurality of USB electronic disks to be detected when insertion signals of the plurality of USB electronic disks to be detected are detected, and run a target test program when a current mode of the plurality of USB electronic disks to be detected is identified as a mobile hard disk mode;
the read-write testing module 220 is configured to perform read-write testing on the multiple USB electronic disks to be tested through the target testing program to obtain a read-write testing result corresponding to each USB electronic disk to be tested;
the test output module 230 is configured to identify each read-write test result, output a first visual result corresponding to a first USB electronic disk when the read-write test result indicates that the corresponding first USB electronic disk passes the test, and output a second visual result corresponding to a second USB electronic disk when the read-write test result indicates that the corresponding second USB electronic disk does not pass the test.
Based on the same inventive concept, as shown in fig. 3, there is also shown a system 300 for batch testing of USB electronic disks, which includes a computer device 100 and a plurality of USB electronic disks 400 to be tested; the USB electronic disk 400 to be tested is inserted into the computer device 100, and the computer device 100 is configured to: when insertion signals of a plurality of USB electronic disks to be tested are detected, performing mode identification on the plurality of USB electronic disks to be tested, and running a target test program when the current mode of the plurality of USB electronic disks to be tested is identified to be a mobile hard disk mode; performing read-write test on the plurality of USB electronic disks to be tested through the target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested; and identifying each read-write test result, outputting a first visual result corresponding to a first USB electronic disk when the read-write test result represents that the corresponding first USB electronic disk passes the test, and outputting a second visual result corresponding to a second USB electronic disk when the read-write test result represents that the corresponding second USB electronic disk does not pass the test.
Further, as shown in fig. 4, a hardware structure diagram of a computer device 100 is also shown, the computer device 100 may include a processor 110 and a memory 120 which are communicated with each other, and the processor 110 reads a computer program from the memory 120 and runs the computer program to implement the method shown in fig. 1.
To sum up, the method and system for testing USB electronic disks in batch disclosed by the present invention can perform read-write test on a plurality of USB electronic disks to be tested through a target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested, then identify each read-write test result, output a first visual result corresponding to a first USB electronic disk when the read-write test result indicates that a first USB electronic disk corresponding to the read-write test result passes the test, and output a second visual result corresponding to a second USB electronic disk when the read-write test result indicates that a second USB electronic disk corresponding to the read-write test result does not pass the test. By the design, the automatic batch test of the USB electronic disks to be tested can be realized, the batch test efficiency of the USB electronic disks is improved, the test time is reduced, and the labor cost and the time cost consumed by the test are reduced.
It is to be understood that the present invention is not limited to what has been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the invention is limited only by the appended claims.

Claims (8)

1. A method for testing USB electronic disks in batch is applied to computer equipment and comprises the following steps:
when insertion signals of a plurality of USB electronic disks to be tested are detected, performing mode identification on the plurality of USB electronic disks to be tested, and running a target test program when the current mode of the plurality of USB electronic disks to be tested is identified to be a mobile hard disk mode;
performing read-write test on the plurality of USB electronic disks to be tested through the target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested;
identifying each read-write test result, outputting a first visual result corresponding to a first USB electronic disk when the read-write test result represents that the corresponding first USB electronic disk passes the test, and outputting a second visual result corresponding to a second USB electronic disk when the read-write test result represents that the corresponding second USB electronic disk does not pass the test;
the method for performing read-write test on the plurality of USB electronic disks to be tested through the target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested comprises the following steps: writing first test data into each USB electronic disk to be tested through the target test program; reading data of each USB electronic disk to be tested through the target test program to obtain second test data; the first test data and the second test data of each USB electronic disk to be tested correspond to each other one by one; obtaining a read-write test result corresponding to each USB electronic disk to be tested according to the first test data and the second test data;
obtaining a read-write test result corresponding to each USB electronic disk to be tested according to the first test data and the second test data, including:
acquiring first data output information corresponding to the first test data and second data output information corresponding to the second test data; the first data output information and the second data output information respectively comprise a plurality of output information segment contents with different comparison test indexes, and the output information segment contents comprise image contents, voice contents and/or text contents;
extracting original content description information of the first test data in one output information segment content of the first data output information, and determining the output information segment content with the most comparison test indexes in the second data output information as target output information segment content; mapping the original content description information to the target output information segment content according to an electronic disk fault detection model and a preset output information classification result, obtaining original content mapping information in the target output information segment content, and generating a read-write test comparison index between the first test data and the second test data according to the original content description information and the original content mapping information;
obtaining associated content description information in the target output information segment content by taking the original content mapping information as reference information, mapping the associated content description information to the output information segment content of the original content description information according to the index transfer information corresponding to the read-write test comparison index, obtaining the associated content mapping information corresponding to the associated content description information in the output information segment content of the original content description information, and determining the target content description information of the associated content mapping information;
acquiring a target mapping content integration result of mapping the original content description information to the target output information fragment content; according to the similarity analysis result between the associated content mapping information and the item test categories corresponding to the plurality of content mapping items in the target mapping content integration result, sequentially acquiring target comparison information corresponding to the target content description information section by section in the second data output information until the test weight of the fragment content of the output information fragment content where the target comparison information is located is consistent with the test weight of the fragment content of the target content description information in the first data output information, stopping acquiring the target comparison information in the next output information fragment content, and determining the read-write test comparison sequence between the target content description information and the target comparison information acquired last time; comparing the output information fragment contents corresponding to each other in the first data output information and the second data output information one by one through the read-write test comparison sequence to obtain a fragment content comparison result; and determining a read-write test result corresponding to each USB electronic disk to be tested according to the comparison result of the fragment contents.
2. The method of claim 1, wherein the obtaining first data output information corresponding to the first test data and second data output information corresponding to the second test data comprises:
obtaining the first data output information corresponding to the first test data according to test result evaluation information corresponding to a comparison test index, wherein the use feedback information corresponding to the comparison test index between any two adjacent output information fragment contents in the first data output information is the test result evaluation information corresponding to the comparison test index;
and obtaining second data output information corresponding to the second test data according to test result evaluation information corresponding to the comparison test indexes, wherein the use feedback information corresponding to the comparison test indexes between any two adjacent output information fragment contents in the second data output information is the test result evaluation information corresponding to the comparison test indexes.
3. The method according to claim 1, wherein the mapping the original content description information to the target output information segment content according to an electronic disk fault detection model and a preset output information classification result to obtain original content mapping information in the target output information segment content, and generating a read-write test comparison index between the first test data and the second test data according to the original content description information and the original content mapping information comprises:
mapping the original content description information to the target output information segment content according to the electronic disk fault detection model and the preset output information classification result, and obtaining the original content mapping information in the target output information segment content;
acquiring fragment content labels from the output information fragment content of the original content description information, wherein the fragment content labels are multi-level classification labels taking the original content description information as reference information;
mapping the fragment content label to the target output information fragment content according to the electronic disk fault detection model and the preset output information classification result, and obtaining associated content mapping information in the target output information fragment content;
generating a read-write test comparison index between the first test data and the second test data according to a content matching result between the original content description information and the fragment content tag, the original content mapping information and the associated content mapping information.
4. The method according to claim 3, wherein the mapping the original content description information to the target output information segment content according to the electronic disk failure detection model and the preset output information classification result, and obtaining the original content mapping information in the target output information segment content comprises:
mapping the original content description information into disk array information according to the electronic disk fault detection model and the electronic disk fault detection record to obtain original disk array mapping information;
converting the original disk array mapping information to a disk array mapping information set of the second test data according to a relative timing sequence state and a relative detection progress between a detection running state of the electronic disk fault detection corresponding to the first test data and a detection running state of the electronic disk fault detection corresponding to the second test data, so as to obtain disk array mapping information to be processed;
mapping the mapping information of the disk array to be processed to the information content with the reading indication mark under the reading result information set of the second test data to obtain the mapping information of the content to be processed;
and screening the dynamic mapping information of the content mapping information to be processed, and mapping the screened content mapping information to be processed into the content of the target output information segment according to the fault detection model of the electronic disk to obtain the original content mapping information.
5. The method according to claim 4, wherein the obtaining of the target mapping content integration result of mapping the original content description information to the target output information segment content comprises:
mapping the to-be-processed disk array mapping information corresponding to the original content description information to information content with the minimum reading times under a reading result information set of the second test data to obtain local content mapping information;
mapping the disk array mapping information to be processed corresponding to the original content description information to information content with the maximum reading times under the reading result information set of the second test data to obtain global content mapping information;
determining the difference comparison result of the local content mapping information and the global content mapping information as updating information corresponding to the original mapping content integration result;
and screening the dynamic mapping information of each mapping content in the updating information corresponding to the original mapping content integration result, and mapping the screened dynamic mapping information of each mapping content to the target output information segment content according to the electronic disk fault detection model to obtain the target mapping content integration result.
6. The method according to claim 1, wherein the obtaining, according to a result of analyzing similarity between item test categories corresponding to a plurality of content mapping items in the associated content mapping information and the target mapping content integration result, target comparison information corresponding to the target content description information in the second data output information in sequence segment by segment until a segment content test weight of an output information segment content where the obtained target comparison information is located is consistent with a segment content test weight of the target content description information in the first data output information, stopping obtaining target comparison information in a next output information segment content, and determining a read-write test comparison order between the target content description information and target comparison information obtained last time, comprises:
determining comparison information of the target content description information in the target output information fragment content as target comparison information according to similarity analysis results between the associated content mapping information and item test categories corresponding to a plurality of content mapping items in the target mapping content integration result; if the segment content test weight of the target output information segment content is greater than the segment content test weight of the target content description information in the first data output information, mapping the target comparison information and the target mapping content integration result to a next output information segment content of the target output information segment content, determining comparison information in the next output information segment content based on the mapped target comparison information and the mapped target mapping content integration result, determining the next output information segment content as the target output information segment content, and determining the comparison information in the next output information segment content as the target comparison information;
and if the segment content testing weight of the segment content of the target output information in the second data output information is consistent with the segment content testing weight of the target content description information in the first data output information, determining a read-write testing comparison sequence between the target content description information and the target comparison information determined last time.
7. The method according to any one of claims 1-6, further comprising:
simultaneously presenting the first visualization result and the second visualization result in a display interface of the computer device.
8. A system for testing USB electronic disks in batches is characterized by comprising computer equipment and a plurality of USB electronic disks to be tested; the USB electronic disk to be tested is used for being inserted into the computer equipment, and the computer equipment is used for:
when insertion signals of a plurality of USB electronic disks to be tested are detected, performing mode identification on the plurality of USB electronic disks to be tested, and running a target test program when the current mode of the plurality of USB electronic disks to be tested is identified to be a mobile hard disk mode;
performing read-write test on the plurality of USB electronic disks to be tested through the target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested;
identifying each read-write test result, outputting a first visual result corresponding to a first USB electronic disk when the read-write test result represents that the corresponding first USB electronic disk passes the test, and outputting a second visual result corresponding to a second USB electronic disk when the read-write test result represents that the corresponding second USB electronic disk does not pass the test;
the method for performing read-write test on the plurality of USB electronic disks to be tested through the target test program to obtain a read-write test result corresponding to each USB electronic disk to be tested comprises the following steps: writing first test data into each USB electronic disk to be tested through the target test program; reading data of each USB electronic disk to be tested through the target test program to obtain second test data; the first test data and the second test data of each USB electronic disk to be tested correspond to each other one by one; obtaining a read-write test result corresponding to each USB electronic disk to be tested according to the first test data and the second test data;
obtaining a read-write test result corresponding to each USB electronic disk to be tested according to the first test data and the second test data, including:
acquiring first data output information corresponding to the first test data and second data output information corresponding to the second test data; the first data output information and the second data output information respectively comprise a plurality of output information segment contents with different comparison test indexes, and the output information segment contents comprise image contents, voice contents and/or text contents;
extracting original content description information of the first test data in one output information segment content of the first data output information, and determining the output information segment content with the most comparison test indexes in the second data output information as target output information segment content; mapping the original content description information to the target output information segment content according to an electronic disk fault detection model and a preset output information classification result, obtaining original content mapping information in the target output information segment content, and generating a read-write test comparison index between the first test data and the second test data according to the original content description information and the original content mapping information;
obtaining associated content description information in the target output information segment content by taking the original content mapping information as reference information, mapping the associated content description information to the output information segment content of the original content description information according to the index transfer information corresponding to the read-write test comparison index, obtaining the associated content mapping information corresponding to the associated content description information in the output information segment content of the original content description information, and determining the target content description information of the associated content mapping information;
acquiring a target mapping content integration result of mapping the original content description information to the target output information fragment content; according to the similarity analysis result between the associated content mapping information and the item test categories corresponding to the plurality of content mapping items in the target mapping content integration result, sequentially acquiring target comparison information corresponding to the target content description information section by section in the second data output information until the test weight of the fragment content of the output information fragment content where the target comparison information is located is consistent with the test weight of the fragment content of the target content description information in the first data output information, stopping acquiring the target comparison information in the next output information fragment content, and determining the read-write test comparison sequence between the target content description information and the target comparison information acquired last time; comparing the output information fragment contents corresponding to each other in the first data output information and the second data output information one by one through the read-write test comparison sequence to obtain a fragment content comparison result; and determining a read-write test result corresponding to each USB electronic disk to be tested according to the comparison result of the fragment contents.
CN202110059331.2A 2021-01-18 2021-01-18 Method and system for testing USB electronic disks in batch Active CN112634979B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110059331.2A CN112634979B (en) 2021-01-18 2021-01-18 Method and system for testing USB electronic disks in batch

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110059331.2A CN112634979B (en) 2021-01-18 2021-01-18 Method and system for testing USB electronic disks in batch

Publications (2)

Publication Number Publication Date
CN112634979A CN112634979A (en) 2021-04-09
CN112634979B true CN112634979B (en) 2021-07-23

Family

ID=75294459

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110059331.2A Active CN112634979B (en) 2021-01-18 2021-01-18 Method and system for testing USB electronic disks in batch

Country Status (1)

Country Link
CN (1) CN112634979B (en)

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110175088B (en) * 2013-08-23 2022-11-11 慧荣科技股份有限公司 Method for accessing storage unit in flash memory and device using the same
CN207249659U (en) * 2017-09-27 2018-04-17 广州启辰电子科技有限公司 A kind of production tool of storage device
CN109285583B (en) * 2018-09-11 2020-07-17 中国科学院空间应用工程与技术中心 NAND flash memory solid state disk space environment effect test system and test method
US11099986B2 (en) * 2019-04-12 2021-08-24 Pure Storage, Inc. Efficient transfer of memory contents
CN110277134A (en) * 2019-06-27 2019-09-24 鸿秦(北京)科技有限公司 A kind of system automating batch testing solid state hard disk
CN110515786A (en) * 2019-08-28 2019-11-29 深圳市安信达存储技术有限公司 A kind of more hard disk batch contrast test system and methods

Also Published As

Publication number Publication date
CN112634979A (en) 2021-04-09

Similar Documents

Publication Publication Date Title
US8867848B2 (en) Display test device, display test method, and storage medium
US8527950B2 (en) Verification of software applications
US20090273597A1 (en) User interface screen layout analysis using hierarchical geometric features
US11443137B2 (en) Method and apparatus for detecting signal features
US20060259264A1 (en) Test apparatus, diagnosing program and diagnosing method therefor
US20090307384A1 (en) Usb port testing apparatus and method
US20100169714A1 (en) Test apparatus and recording medium
CN112579382A (en) NVMe solid state disk bad block analysis method, device, terminal and storage medium
CN104615514A (en) Method for examining performance of raid levels of raid card
CN113138916B (en) Automatic testing method and system for picture structuring algorithm based on labeling sample
CN112634979B (en) Method and system for testing USB electronic disks in batch
CN111124894B (en) Code coverage rate processing method and device and computer equipment
CN101067562A (en) Method, code, and apparatus for logging test results
CN110647826B (en) Method and device for acquiring commodity training picture, computer equipment and storage medium
CN104038380A (en) Server motherboard detection system and method
CN108763063B (en) Software defect detection method without defect labeling data
CN112631946A (en) Software product running environment detection method and system
CN111179997B (en) Method and device for storing test data of semiconductor memory
CN110928814A (en) Method and device for detecting transmission abnormality of serial hard disk and electronic equipment
CN114679402B (en) Method and device for testing communication protocol between upper computer and lower computer of medical robot
CN1892614A (en) Computer internal-memory detection method
WO2018154784A1 (en) Effect extraction device, effect extraction program, and effect extraction method
CN113326206B (en) Test method, apparatus, storage medium and program product for data processing system
US9244946B2 (en) Data mining shape based data
CN116701218A (en) Service testing method, device, computer equipment and storage medium

Legal Events

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