Information processing method, device, electronic device and storage medium

By obtaining and sorting the operation information of the target device, a test case that is closer to actual operation is generated, which solves the problem that test cases in the prior art are difficult to be closer to actual operation of eMMC devices, and achieves more accurate and efficient testing.

CN118964214BActive Publication Date: 2025-02-14ARTMEM TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411412322.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-02-14
Estimated Expiration
2044-10-11

AI Technical Summary

Technical Problem

When developing test cases, software development engineers need to imitate the operation behavior of eMMC devices. However, it is difficult to fully understand the actual operation during this imitation process, resulting in a gap between the test cases and actual operation.

Method used

By obtaining the operation information of the target device, including multiple operation protocols and the operation time of each operation protocol, the target operation commands and data are generated, the target test script is formed, and the test scripts are sorted according to the timing of the operation protocol to generate more closely related to reality Test cases for operations.

Benefits of technology

This method makes the test cases closer to the actual operation of the storage device, reduces the impact of the subjective imitation development behavior of software development engineers on the test cases, and improves the accuracy and efficiency of the test cases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118964214B_ABST
    Figure CN118964214B_ABST
Patent Text Reader

Abstract

The present application provides an information processing method, device, electronic device and storage medium, the method includes obtaining operation information of a target device, wherein the operation information includes multiple operation protocols, the operation time of each operation protocol, and the operation protocol includes a command index; for each operation protocol, a target operation command is generated according to the command index of the operation protocol and a preset script statement, target operation data is generated based on the content of the target operation command, and a target test script is obtained according to the target operation command and the target operation data; the timing between multiple operation protocols is determined according to the operation time of each operation protocol, and multiple target test scripts are sorted and processed according to the timing between the multiple operation protocols to obtain a target test case for testing a target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type. The embodiments of the present application can make the test case closer to the actual operation of the storage device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of storage products, and in particular to an information processing method, device, electronic device and storage medium. Background Art

[0002] In related technologies, before the firmware of an embedded Multi-Media Card (eMMC) module product is released, it needs to be tested on a verification platform using test cases. The test cases are all implemented through software, so software development engineers and hardware development engineers are required to participate in the development together.

[0003] Specifically, in the process of developing test cases, software development engineers are required to capture the operating behavior of the eMMC device during actual use, and then imitate the operating behavior to develop test cases. However, this imitation of operating behavior is attached with the subjective ideas of the software development engineers during the analysis process, making it difficult for the developed test cases to be close to the actual operating conditions of the eMMC device. Summary of the invention

[0004] The main purpose of the embodiments of the present application is to propose an information processing method, apparatus, electronic device and storage medium, aiming to make the test cases closer to the actual operation of the storage device.

[0005] To achieve the above object, a first aspect of an embodiment of the present application proposes an information processing method, comprising the following steps:

[0006] Acquire operation information of the target device, wherein the operation information includes a plurality of operation protocols, an operation time of each operation protocol, and the operation protocol includes a command index;

[0007] For each of the operation protocols, a target operation command is generated according to the command index of the operation protocol and a preset script statement, target operation data is generated based on the content of the target operation command, and a target test script is obtained according to the target operation command and the target operation data;

[0008] Determine the timing between the multiple operation protocols according to the operation time of each operation protocol, and sort the multiple target test scripts according to the timing between the multiple operation protocols to obtain a target test case for testing the target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type.

[0009] In some embodiments, after obtaining the target test case, the method further includes:

[0010] Determining target response information of each target test script according to the content of each target test script in the target test case;

[0011] For each of the target test scripts, the target test script is sent to the target storage device to be tested, and the execution response information returned by the target storage device to be tested is obtained, and the target response information of the target test script is compared with the execution response information. When the target response information is consistent with the execution response information, the next target test script is sent according to the order between the multiple target test scripts;

[0012] When the target response information of the last target test script is consistent with the execution response information, it is determined that the target storage device to be tested passes the operation test.

[0013] In some embodiments, when the content of the target test script is to read data, the target response information of the target test script includes data response information and command response information;

[0014] The step of determining target response information of each target test script according to the content of each target test script in the target test case includes:

[0015] If the current target test script satisfies the first preset rule, determine the target operation address corresponding to the target test script, and determine the target data stored at the target operation address in the preset mapping table according to the target operation address, wherein the first preset rule includes at least one of the following: the current target test script is the first target test script in the target test case whose content is to read data; or, the content of the current target test script is to read data, and the target test case does not include the target test script whose content is to write data;

[0016] The target data is used as the data response information of the target test script, and the preset verification code is used as the command response information of the target test script.

[0017] In some embodiments, generating target operation data based on the content of the target operation command includes:

[0018] Obtaining execution response information of the operation protocol;

[0019] When the operation protocol is one of a read data protocol and a write data protocol, and the execution response information indicates that the target device executes the operation protocol incorrectly, determining a preceding operation protocol of the operation protocol from a plurality of the operation protocols;

[0020] Acquire operation parameters of the operation protocol and the pre-operation protocol;

[0021] The operation parameters of the operation protocol are determined as the target operation data, and the target operation data of the front script corresponding to the target operation command in the obtained target test script is updated to the operation parameters of the front operation protocol.

[0022] In some embodiments, determining target response information of each target test script according to the content of each target test script in the target test case further includes:

[0023] If the current target test script satisfies the second preset rule, determine the target operation address corresponding to the target test script, and determine one or more preceding target test scripts whose content is to write data in the target test script before the current target test script, wherein the second preset rule includes that the content of the current target test script is to read data, and the target test case includes the target test script whose content is to write data;

[0024] Obtaining one or more write operation addresses targeted by the preceding target test scripts whose contents are write data;

[0025] When at least one of the write operation addresses is the same as the target operation address, the target operation data in the last-ordered preceding target test script is obtained from the preceding target test script whose content is the write data and is for the target operation address;

[0026] The target operation data in the last-ordered preceding target test script is used as the data response information of the current target test script, and the preset verification code is used as the command response information of the target test script.

[0027] In some embodiments, after obtaining the target test case, the method further includes:

[0028] Acquire a test case to be reviewed, wherein the test case to be reviewed includes a plurality of test scripts to be reviewed;

[0029] Extracting features of the target test case based on the correlation between the multiple target test scripts to obtain a first correlation feature of the target test case;

[0030] Extracting features of the correlation between the plurality of test scripts to be reviewed from the test case to be reviewed, to obtain a second correlation feature of the test case to be reviewed;

[0031] Calculating a target similarity between the first correlation feature and the second correlation feature;

[0032] When the target similarity is not less than a preset similarity threshold, the test case to be reviewed is determined as the target test case.

[0033] In some embodiments, the process of sorting the plurality of target test scripts according to the timing between the plurality of operation protocols to obtain a target test case for testing the target storage device to be tested includes:

[0034] After the sorting process is completed for the plurality of target test scripts, the plurality of target test scripts are traversed, and the target test script that satisfies the third preset rule among the plurality of target test scripts is determined as the target delay script, wherein the third preset rule is that the content of the target test script is one of writing data and reading data;

[0035] Perform data transmission analysis on the target operation data of each target delay script to obtain the transmission time of the target operation data of each target delay script;

[0036] According to the transmission time of each of the target delay scripts, a target test script with delayed content is generated between each of the target delay scripts and the next target test script.

[0037] To achieve the above-mentioned purpose, a second aspect of an embodiment of the present application provides an information processing device, the device comprising:

[0038] An operation information acquisition module, used to acquire operation information of a target device, wherein the operation information includes a plurality of operation protocols, an operation time of each operation protocol, and the operation protocol includes a command index;

[0039] A target test script acquisition module is used to generate a target operation command for each operation protocol according to the command index and preset script statements of the operation protocol, generate target operation data based on the content of the target operation command, and obtain a target test script according to the target operation command and the target operation data;

[0040] A target test case acquisition module is used to determine the timing between multiple operation protocols according to the operation time of each operation protocol, and to sort multiple target test scripts according to the timing between multiple operation protocols to obtain a target test case for testing a target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type.

[0041] To achieve the above objectives, a third aspect of an embodiment of the present application proposes an electronic device, which includes a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the method described in the first aspect is implemented.

[0042] To achieve the above-mentioned purpose, the fourth aspect of an embodiment of the present application proposes a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method described in the first aspect is implemented.

[0043] The present application proposes an information processing method, device, electronic device and storage medium. The method includes obtaining operation information of a target device, wherein the operation information includes multiple operation protocols, the operation time of each operation protocol, and the operation protocol includes a command index; for each operation protocol, a target operation command is generated according to the command index and a preset script statement of the operation protocol, target operation data is generated based on the content of the target operation command, and a target test script is obtained according to the target operation command and the target operation data; the timing between multiple operation protocols is determined according to the operation time of each operation protocol, and multiple target test scripts are sorted according to the timing between the multiple operation protocols to obtain a target test case for testing a target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type. Through the command index in each operation protocol, a target test script corresponding to each operation protocol can be created, so that the target test script can be close to the actual operation protocol used, and then each target test script is sorted according to the order of each operation protocol according to the operation time of each operation protocol, so that the target test case is integrated with the operation protocol sequence information in the operation information, so that the target test script can be closer to the actual operation protocol used, which is conducive to reducing the impact of the subjective imitation development behavior of software development engineers on the fit between the test case and the actual operation of the storage device. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a flow chart of an information processing method provided by an embodiment of the present application;

[0045] Figure 2 is a flowchart of an information processing method including comparing script response information provided by another embodiment of the present application;

[0046] Figure 3 yes Figure 2 A flowchart of an embodiment of a sub-step in step 220;

[0047] Figure 4 yes Figure 2 A flowchart of another embodiment of the sub-step of step 220 including determining an operation parameter based on a read-write type operation protocol that performs an error;

[0048] Figure 5 yes Figure 2 A flowchart of another embodiment of a sub-step of step 220 including determining response information based on a second preset rule;

[0049] Figure 6 is a flowchart of an information processing method including evaluating a test case to be reviewed provided by another embodiment of the present application;

[0050] Figure 7 yes Figure 1 A flowchart of an embodiment of a sub-step in step 130;

[0051] Figure 8 is a schematic diagram of the structure of an information processing device provided in an embodiment of the present application;

[0052] Fig. 9 It is a schematic diagram of the hardware structure of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0053] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0054] It should be noted that, although the functional modules are divided in the device schematic diagram and the logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in a different order than the module division in the device or the order in the flowchart. The terms "first", "second", etc. in the specification, claims and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.

[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.

[0056] In the process of developing test cases, software development engineers are required to capture the operating behaviors of eMMC devices in actual use, and then imitate the operating behaviors to develop test cases. However, this imitation of operating behaviors is accompanied by the subjective ideas of software development engineers during the analysis process, making it difficult for the developed test cases to be close to the actual operating conditions of the eMMC devices.

[0057] In order to make the test cases closer to the actual operation of the storage device, the embodiments of the present application provide an information processing method, an information processing device, an electronic device and a computer-readable storage medium. The method can first obtain operation information on the target device, wherein the operation information includes multiple operation protocols and the operation time of each operation protocol, and the operation protocol includes a command index. Then, for each operation protocol, a target operation command is generated according to the command index of the operation protocol and a preset script statement, and target operation data is generated based on the content of the target operation command. A target test script is obtained according to the target operation command and the target operation data. Then, the timing between multiple operation protocols is determined according to the operation time of each operation protocol, and multiple target test scripts are sorted according to the timing between the multiple operation protocols to obtain a target test case for testing the target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type. Through the command index in each operation protocol, a target test script corresponding to each operation protocol can be created, so that the target test script can be close to the actual operation protocol used, and then each target test script is sorted according to the order of each operation protocol according to the operation time of each operation protocol, so that the target test case is integrated with the operation protocol sequence information in the operation information, so that the target test script can be closer to the actual operation protocol used, which is conducive to reducing the impact of the subjective imitation development behavior of software development engineers on the fit between the test case and the actual operation of the storage device.

[0058] See also Figure 1 , Figure 1 The flow of an information processing method provided by an embodiment of the present application is shown. In the embodiment of the present application, the information processing method may include steps 110 to 130.

[0059] Step 110: Acquire operation information of the target device, wherein the operation information includes multiple operation protocols, the operation time of each operation protocol, and the operation protocol includes a command index;

[0060] Step 120: for each operation protocol, generate a target operation command according to the command index of the operation protocol and a preset script statement, generate target operation data based on the content of the target operation command, and obtain a target test script according to the target operation command and the target operation data;

[0061] Step 130: Determine the timing between multiple operation protocols according to the operation time of each operation protocol, sort multiple target test scripts according to the timing between the multiple operation protocols, and obtain a target test case for testing the target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type.

[0062] In one embodiment, operation information refers to a collection of relevant information about all operations performed on a target device inside a device when a target object operates a device equipped with the target device. In addition to including multiple operation protocols and the operation time of each operation protocol, the operation information may also include data operated by each operation protocol, etc., which are not specifically limited here. Among them, an operation protocol refers to an integrated operation statement or function used to indicate a specific operation on a target device. In addition, the operation time refers to the specific time when the target device executes an operation protocol. In this case, the specific time here can be an absolute time (that is, the time of a standard clock source) or a relative time (such as a time interval relative to a time point), which is not specifically limited here. In addition, the operation time can be a timestamp or a specific time, etc., which are not specifically limited here.

[0063] In one embodiment, the command index refers to reference information used to indicate the actual execution content of the operation protocol. For example, in an operation protocol of CMD17, 17 belongs to the command index, which is used to indicate that the specific content of the operation protocol CMD17 is to execute data reading.

[0064] In one embodiment, in the process of obtaining the operation information of the target device, a specific instrument (logic analyzer) can be used to capture multiple high and low level sequences on the CMD line and record the capture time of each high and low level sequence. Then, the captured high and low level sequences are subjected to protocol parsing to obtain multiple operation protocols. Then, according to the capture time of each high and low level sequence, the operation time is determined for each operation protocol, and then the operation information is formed according to each operation protocol and its corresponding operation time.

[0065] In one embodiment, in the process of acquiring the operation information of the target device, the operation information including a plurality of operation protocols and the operation time of each operation protocol may be directly received from the external device.

[0066] In one embodiment, the preset script statement refers to a blank-filled statement that can form an operation command based on a command index, such as "CMD<command index><data>", or "the command index is <command index>, an operation command is generated based on this command index", etc., which is not specifically limited here.

[0067] In one embodiment, when the preset script statement is a statement formed based on the compilation language rules, in the process of generating the target operation command according to the command index of the operation protocol and the preset script statement, the command index can be filled into the preset script statement and the information item associated with the command index, thereby forming the target operation command.

[0068] In one embodiment, when the preset script statement is a text statement, in the process of generating the target operation command according to the command index of the operation protocol and the preset script statement, the command index can be first filled into the preset script statement, and the information item associated with the command index can form a target text statement, and then the target text statement can be input into the pre-trained command generation model, and the command generation model can perform semantic analysis on the target text statement to obtain the semantic information of the target text statement, and then generate one or more target operation commands related to the command index according to the semantic information of the target text statement. Among them, the command generation model can be one of the large language models (LLM) such as ChatGLM and ERNIE, which is not specifically limited here.

[0069] In one embodiment, the content of the target operation command refers to the behavior that the target operation command is to perform on the target storage device to be tested. For example, in the target operation command "CMD17<data>", the behavior that CMD17 is to perform on the target storage device to be tested is to read data, then this "read data" is the content of the target operation command.

[0070] In one embodiment, generating target operation data based on the content of the target operation command may be based on the content of the target operation command, randomly generating corresponding target operation data for the target operation command, or may be generated based on certain information (such as historical operation protocols, historical test cases, etc.), etc., which is not specifically limited here.

[0071] In one embodiment, the target test script refers to an execution statement that completely includes an operation command and operation data. For example, assuming that the preset script statement is "CMD <command index> <data>", the command index is "17", and the data is "0x200", then the target test script is "CMD17 0x200". Obtaining the target test script according to the target operation command and the target operation data refers to filling the target operation data into the target operation command to form an operation of a complete test script.

[0072] In one embodiment, in determining the timing between multiple operation protocols according to the operation time of each operation protocol, the target test scripts corresponding to each operation protocol may be sorted according to the sequence of the operation time of each operation protocol.

[0073] In one embodiment, the target test case refers to a test script set formed by a plurality of sorted target test scripts.

[0074] In one embodiment, after the target test case is obtained, the target test case may be persisted in a preset test case database.

[0075] See also Figure 2 , Figure 2 The flow of an information processing method including comparing script response information provided by another embodiment of the present application is shown. In one embodiment, after obtaining the target test case, the method may further include the following steps.

[0076] Step 210: Determine target response information of each target test script according to the content of each target test script in the target test case;

[0077] Step 220: for each target test script, send the target test script to the target storage device to be tested, obtain the execution response information returned by the target storage device to be tested, compare the target response information of the target test script with the execution response information, and when the target response information is consistent with the execution response information, send the next target test script according to the order between the multiple target test scripts;

[0078] Step 230: When the target response information of the last target test script is consistent with the execution response information, it is determined that the target storage device to be tested passes the operation test.

[0079] In one embodiment, target response information refers to the response information that a target test script should return after being sent to the target storage device to be tested and executed by the target storage device to be tested. When the target test script is a test script that does not read data, the target response information is information indicating successful execution (for example, returning "0" indicates successful execution), and when the target test script is a test script that reads data, the target response information may include response information indicating the data stored in the address read by the target test script (that is, the data response information that appears below), and may include response information indicating that the script is successfully executed (that is, the command response information that appears below).

[0080] In one embodiment, the execution response information refers to the response information actually returned after a target test script is sent to a target storage device to be tested and executed by the target storage device to be tested.

[0081] In one embodiment, before issuing the next target test script according to the order among multiple target test scripts, the response time of the target storage device to be tested to the target response information can be obtained first. When the response time is not less than the preset response time threshold, the subsequent script issuance step is performed; when the response time is less than the preset response time threshold, the issuance of the next target test script is stopped, and the preset alarm action is executed. Among them, the alarm action can include outputting alarm information, outputting specific error codes, etc., which are not specifically limited here.

[0082] In one embodiment, when the target response information is inconsistent with the execution response information, the next target test script is stopped from being issued, and a preset alarm action is executed, wherein the alarm action may include outputting alarm information, outputting a specific error code, etc., which are not specifically limited here.

[0083] By first determining the target response information of each target test script, then sending each target test script to the target storage device to be tested, and comparing it with the returned execution response information, it is possible to automatically determine whether each target test script is correctly executed by the target storage device to be tested, thereby helping to improve the testing efficiency of the target storage device to be tested.

[0084] See also Figure 3 , Figure 3 Shows Figure 2 The process of an implementation example of a sub-step in step 220, in one embodiment, when the content of the target test script is to read data, the target response information of the target test script includes data response information and command response information; in the process of determining the target response information of each target test script according to the content of each target test script in the target test case, the following steps may also be included.

[0085] Step 310: If the current target test script satisfies the first preset rule, determine the target operation address corresponding to the target test script, and determine the target data stored at the target operation address in the preset mapping table according to the target operation address, wherein the first preset rule includes at least one of the following: the current target test script is the first target test script in the target test case whose content is to read data; or the content of the current target test script is to read data, and the target test case does not include a target test script whose content is to write data;

[0086] Step 320: Use the target data as data response information of the target test script, and use the preset verification code as command response information of the target test script.

[0087] In one embodiment, the target operation address refers to a specific storage address for storing data in the target storage device to be tested, wherein before writing data or reading data to the target operation address corresponding to the target test script with the content of writing data or the content of reading data, it is necessary to use a pre-script to specify the target operation address, that is, the target operation data in the pre-script includes the target operation address. Among them, the pre-script refers to a target test script used to specify the target operation address for the target test script with the content of writing data or the content of reading data. In addition, the target operation address refers to the storage address indicated by the pre-script in the target storage device to be tested.

[0088] It should be noted that the target operation data in the target test script whose content is to write data or read data is data, while the target operation data in the prefix of the prefix script is the target operation address.

[0089] In one embodiment, in the process of determining the target operation address corresponding to the target test script, the predecessor script that is closest to the target test script can be determined based on the content of the target test script before the current target test script. Then, the target operation data of the predecessor script is extracted to obtain the target operation address corresponding to the current target test script.

[0090] In one embodiment, the mapping table refers to an information table for recording the storage address targeted by the specific operation behavior performed on the storage device and the data in the storage address. The number of the mapping table can be one or more, which is not specifically limited here.

[0091] In one embodiment, determining the target data at the target operation address in the preset mapping table according to the target operation address corresponding to the target test script refers to searching the preset mapping table for the target data recorded corresponding to the target operation address according to the target operation address. If the target operation address has been subjected to a data write operation before the current target test script is issued, the target data is the data written by the target operation address by the most recent data write operation (that is, the data recorded in the preset mapping table). If the target operation address has never been subjected to a data write operation, the target data is the data set in the target operation address when the target storage device to be tested is initialized (for example, "0x00000").

[0092] In one embodiment, in a target test case, the first target test script with the content of reading data refers to the target test script with the content of reading data in the multiple target test scripts of the target test case according to the order between the multiple target test scripts. Wherein, due to the existence of the pre-script, the target test script that meets the first preset rule may not be the first target test script in the target test case. For example, assuming that according to the order, the target test case includes a target test script with the content of "selecting data address", a target test script with the content of "data reading" and a target test script with the content of "data writing", at this time, the target test script that meets the first preset rule is the target test script with the content of "data reading", which is the second target test script in the target test case, and so on, which is not specifically limited here. In addition, for the specific condition that the current target test script is the first target test script with the content of reading data in the target test case, the target test case may include the target test script with the content of writing data, or may not include the target test script with the content of writing data, which is not specifically limited here.

[0093] In one embodiment, the specific content of the first preset rule used by multiple target test scripts in a target test case can be determined before determining the target response of the first target test script of the target test case. Specifically, the command indexes in each target test script can be traversed first. When the multiple command indexes in the target test case do not include a command index representing a target operation command for writing data, the specific condition that the current target test script is the first target test script in the target test case whose content is to read data is determined as the first preset rule. Alternatively, the two specific conditions that the current target test script is the first target test script in the target test case whose content is to read data and the current target test script has content to read data and the target test case does not include a target test script whose content is to write data are jointly determined as the first preset rule; when the multiple command indexes in the target test case include at least one command index representing a target operation command for writing data, the specific condition that the current target test script is the first target test script in the target test case whose content is to read data is determined as the first preset rule.

[0094] Since there has been no target test script for the same target operation address and with write data content before the target test script that meets the first preset rule, it is impossible to provide a reference object for the response information of the target test script that meets the first preset rule. Therefore, by determining the target data stored at the target operation address in the preset mapping table, a correct data response information can be provided for the target test script that meets the first preset rule, so that after the target test script that meets the first preset rule is issued, the target response information can be correctly compared with the execution response information, which is beneficial to improving the accuracy of the operation test of the target storage device to be tested.

[0095] See also Figure 4 , Figure 4 Shows Figure 2 Another sub-step embodiment of step 220 includes determining operation parameters based on a read-write type operation protocol that performs an error. In one embodiment, in the process of generating target operation data based on the content of the target operation command, the following steps may be included.

[0096] Step 410: Obtain execution response information of the operation protocol;

[0097] Step 420: when the operation protocol is one of the read data protocol and the write data protocol, and the execution response information indicates that the target device executes the operation protocol incorrectly, determining a preceding operation protocol of the operation protocol from among the multiple operation protocols;

[0098] Step 430: Obtaining operation parameters of the operation protocol and the pre-operation protocol;

[0099] Step 440: determine the operation parameters of the operation protocol as the target operation data, and update the target operation data of the front script corresponding to the target operation command in the obtained target test script to the operation parameters of the front operation protocol.

[0100] In one embodiment, the read data protocol refers to an operation protocol for reading data, wherein the read data protocol can be an operation protocol for reading data of a single block, or an operation protocol for reading data of multiple blocks, etc., which is not specifically limited here.

[0101] In one embodiment, the write data protocol refers to an operation protocol for writing data, wherein the write data protocol can be an operation protocol for writing data of a single block, or an operation protocol for writing data of multiple blocks, etc., which is not specifically limited here.

[0102] In one embodiment, when the operation protocol is a read data protocol, the execution response information indicates that the target device has an error in executing the operation protocol, which may include an error in the data reading process (that is, the operation protocol is not executed normally), or an error in the data read (that is, the operation protocol is executed normally, but the returned data is erroneous), or an error in the data reading process and an error in the data read, which is not specifically limited here.

[0103] In one embodiment, the pre-operation protocol refers to an operation protocol used to indicate the storage configuration of the read and written data before the read data protocol or the write data protocol is used to read and write data. The storage configuration may include the address where the data is stored, the number of blocks read, etc., which is not specifically limited here.

[0104] In one embodiment, in the process of obtaining the operation parameters of the operation protocol and the pre-operation protocol, the operation log of the target device can be called first, and then, according to the operation protocol and the pre-operation protocol, the operation parameters of the operation protocol and the pre-operation protocol are queried in the operation log. Among them, the operation log can be a kernel log, a driver log, etc. of an operating system (such as Linux, Android), which is not specifically limited here. In addition, the operation parameter refers to the parameter of the specific instruction carried by the operation protocol or the pre-operation protocol, which can be data, storage address, etc., which is not specifically limited here.

[0105] By using the operation data of the error response operation protocol as the target operation data of the current target test script, the test case can be made closer to the actual operation of the storage device, and it can also be detected again whether the error response operation data will cause the storage device to make a systematic error response (such as an underlying driver bug), thereby improving the diversity of the test capabilities of the target test case.

[0106] See also Figure 5 , Figure 5 Shows Figure 2 Another process of a sub-step implementation example in step 220 includes determining response information based on a second preset rule. In one embodiment, in the process of determining the target response information of each target test script according to the content of each target test script in the target test case, the following steps may also be included.

[0107] Step 510: If the current target test script satisfies the second preset rule, determine the target operation address corresponding to the target test script, and determine one or more preceding target test scripts whose contents are writing data in the target test scripts before the current target test script, wherein the second preset rule includes that the content of the current target test script is reading data, and the target test case includes a target test script whose contents are writing data;

[0108] Step 520: Obtain the write operation address targeted by one or more preceding target test scripts whose contents are write data;

[0109] Step 530: when at least one write operation address is the same as the target operation address, obtaining the target operation data of the last-ordered preceding target test script from the preceding target test scripts whose contents are the write data and are for the target operation address;

[0110] Step 540: Use the target operation data of the last-ordered preceding target test script as the data response information of the current target test script, and use the preset verification code as the command response information of the target test script.

[0111] In one embodiment, the preceding target test script refers to a target test script that has determined the target response information before the current target test script. The preceding target test script may include a target test script with the content of reading data, a target test script with the content of writing data, a pre-script of a target test script with the content of reading data, etc., which are not specifically limited here.

[0112] In one embodiment, in the process of obtaining the write operation address targeted by one or more preceding target test scripts, one or more preceding scripts of preceding target test scripts whose contents are write data may be determined first, and then the target operation data of the preceding scripts of one or more preceding target test scripts whose contents are write data may be extracted to obtain the write operation address of one or more preceding target test scripts whose contents are write data. The write operation address refers to the target operation address where the target operation data in the preceding target test script whose contents are write data is written.

[0113] In one embodiment, obtaining the target operation data of the last sorted preceding target test script from a preceding target test script whose content is write data and which is for a target operation address refers to extracting the target operation data of the preceding target test script to obtain the target operation data in the target test script corresponding to the preceding target test script.

[0114] For example, assuming that there is a previous target test script whose write operation address is the same as the target operation address, and there is only one target test script with write data content between the current target test script and the previous target test script, then the target operation data of the target test script is extracted.

[0115] To give another example, suppose there is a previous target test script whose write operation address is the same as the target operation address, and between the current target test script and the previous target test script, the previous target test scripts with write data are B1 and B2, and B1 is ahead of B2, then the target test script B2 is ranked last, and the target operation data of the previous target test script B2 is extracted.

[0116] In one embodiment, when there is only one predecessor script of a predecessor target test script whose write operation address is the same as the target operation address, in the process of obtaining the target operation data of the last-ranked predecessor target test script among the predecessor target test scripts whose contents are write data and which are targeted at the target operation address, it is possible to specifically determine, between the predecessor script and the current target test script, a predecessor target test script whose contents are write data and which is last-ranked, and then extract the target operation data of the predecessor target test script to obtain the target operation data of the last-ranked predecessor target test script.

[0117] In one embodiment, when there are multiple predecessor scripts of a predecessor target test script whose write operation address is the same as the target operation address, in the process of obtaining the target operation data of the last-ranked predecessor target test script among the predecessor target test scripts whose content is write data and is for the target operation address, specifically, the last-ranked predecessor script can be determined among the multiple predecessor scripts whose target operation data are the same as the target operation address, and then, between the predecessor script and the current target test script, a last-ranked predecessor target test script whose content is write data is determined, and then, the target operation data of the predecessor target test script is extracted to obtain the target operation data of the last-ranked predecessor target test script.

[0118] For example, assuming that the predecessor target test scripts whose write operation addresses are the same as the target operation addresses are A, B, C, and D, and the predecessor scripts whose target operation data are the target operation addresses are E and F, and the order between these target test scripts is "EAFBCD", at this time, the predecessor script F is ranked last among the two predecessor scripts, then, between the current target test script and the predecessor script F, determine the predecessor target test script (that is, target test script D) whose content is the write data and is ranked last, and extract the target operation data of this target test script.

[0119] In one embodiment, if the content is that there is no target test script for the target operation address in the preceding target test script for writing data, then the current target test script satisfies the first preset rule. At this time, the response information can be determined according to steps 310 to 320.

[0120] Since the target test case has not yet been issued to the target storage device to be tested, when there are a target test script for writing data and a target test script for reading data in the target test case, the data response information of the target test script for reading data should be the data written by the target test script for writing data for the same target operation address. This data that has not yet been written cannot be read from the preset mapping table. For this reason, by determining whether the target test script meets the second preset rule, such target test scripts can be screened out, and then the target operation data of the target test script for writing data for the same target operation address can be used as the data response information of the corresponding target test script for reading data. After being issued, such target test script for reading data can correctly compare the target response information with the execution response information, which is beneficial to improving the accuracy of the operation test of the target storage device to be tested.

[0121] See also Figure 6 , Figure 6The flow of an information processing method including evaluating a test case to be reviewed provided by another embodiment of the present application is shown. In one embodiment, after obtaining the target test case, the method may further include the following steps.

[0122] Step 610: Obtain a test case to be reviewed, wherein the test case to be reviewed includes a plurality of test scripts to be reviewed;

[0123] Step 620: extracting features of the correlation between multiple target test scripts for the target test case to obtain a first correlation feature of the target test case;

[0124] Step 630: extracting features of the correlation between the multiple test scripts to be reviewed for the test case to be reviewed, and obtaining a second correlation feature of the test case to be reviewed;

[0125] Step 640: Calculate the target similarity between the first correlation feature and the second correlation feature;

[0126] Step 650: When the target similarity is not less than a preset similarity threshold, the test case to be reviewed is determined as a target test case.

[0127] In one embodiment, feature extraction for the correlation between multiple target test scripts refers to the operation of extracting features of the correlation between each target test script in the target test case. Among them, this feature extraction can be implemented by a neural network such as a long short-term memory network (LSTM), a Transformer model based on an attention mechanism, etc., which is not specifically limited here.

[0128] In one embodiment, the first correlation feature refers to feature information used to characterize the correlation relationship between target test scripts in the target test case.

[0129] In one embodiment, feature extraction for the correlation between multiple test scripts to be reviewed refers to the operation of extracting features from the correlation between each test script to be reviewed in the test case to be reviewed. This feature extraction can be achieved through neural networks such as long short-term memory networks (LSTM) and Transformer models based on attention mechanisms, which are not specifically limited here.

[0130] In one embodiment, the second correlation feature refers to feature information used to characterize the correlation relationship between each test script to be reviewed in the test case to be reviewed.

[0131] In one embodiment, the target similarity between the first correlation feature and the second correlation feature may be obtained by calculating the Euclidean distance, calculating the correlation coefficient, or the like, which is not specifically limited here.

[0132] In one embodiment, when the target similarity is less than a preset similarity threshold, the test case to be reviewed is determined as an unqualified test case, and review warning information is output.

[0133] By calculating the similarity between the first correlation feature of the target test case and the second correlation feature of the test case to be reviewed, the similarity between the test case to be reviewed and the target test case can be determined relatively quickly. Since the target test case is generated based on the operation information of the target device, the more similar the test case to be reviewed is to the target test case, the closer it is to the actual operation of the target device. In this way, whether the test case to be reviewed is close to the actual operation of the target device can be automatically reviewed relatively quickly, which is conducive to improving the convenience of the review.

[0134] See also Figure 7 , Figure 7 Shows Figure 1 The process of a sub-step implementation example in step 130, in one embodiment, in the process of sorting multiple target test scripts according to the timing between multiple operation protocols to obtain target test cases for testing the target storage device to be tested, can include the following steps.

[0135] Step 710: After the sorting process is completed for the multiple target test scripts, the multiple target test scripts are traversed, and a target test script that satisfies a third preset rule among the multiple target test scripts is determined as a target delay script, wherein the third preset rule is that the target test script is one of a test script for writing data and a test script for reading data;

[0136] Step 720: Perform data transmission analysis on the target operation data of each target delay script to obtain the transmission time of the target operation data of each target delay script;

[0137] Step 730: Generate a target test script with delayed content between each target delay script and the next target test script according to the transmission time of each target delay script.

[0138] In one embodiment, data transmission analysis refers to an operation of analyzing the time required for a target storage device to be tested to completely transmit or completely receive target operation data of a target test script.

[0139] In one embodiment, in the process of generating a target test script with a delay content between each target delay script and the next target test script according to the transmission time of each target delay script, the transmission time can be specifically filled into the preset delay script statement and the information item associated with the transmission time, thereby forming a target test script for delay. Among them, the preset delay script statement refers to a blank statement to be filled in that can form an operation command according to the transmission time, such as "Delay<transmission time>".

[0140] In one embodiment, when the preset delay script statement is a statement formed based on the compilation language rules, in the process of generating a target test script with delay content between each target delay script and the next target test script according to the transmission time of each target delay script, the transmission time can be first filled into the preset delay script statement, and the information item associated with the transmission time can be formed to form a delay text statement. Then, the delay text statement is input into the pre-trained command generation model. The command generation model can perform semantic analysis based on the delay text statement to obtain the semantic information of the delay text statement, and then generate one or more target test scripts with delay content and a specific delay time as the transmission time according to the semantic information of the delay text statement.

[0141] By parsing the target operation data in the target test script whose content is to write data or to read data, the transmission time required for the target operation data in these target test scripts can be determined. Since in the target storage device to be tested, the time for transmitting information at the physical level between the command line and the data line is different, a target test script with delayed content is generated between each target delay script and the next target test script according to the transmission time. When the target storage device to be tested executes a target delay script, after the target operation command in the target delay script is transmitted, there is still sufficient transmission time to maintain the transmission of the target operation data in the target delay script, thereby improving the transmission integrity of the target operation data in the target delay script, which is conducive to reducing conflicts due to the lack of synchronization between commands and data, and thus making the target test case closer to actual operations.

[0142] See also Figure 8 The embodiment of the present application further provides an information processing device, which can implement the above method. The information processing device 800 includes:

[0143] The operation information acquisition module 810 may be used to acquire operation information of a target device, wherein the operation information includes a plurality of operation protocols, an operation time of each operation protocol, and the operation protocol includes a command index;

[0144] The target test script acquisition module 820 may be used to generate a target operation command for each operation protocol according to the command index of the operation protocol and a preset script statement, generate target operation data based on the content of the target operation command, and obtain a target test script according to the target operation command and the target operation data;

[0145] The target test case acquisition module 830 can be used to determine the timing between multiple operation protocols according to the operation time of each operation protocol, and sort multiple target test scripts according to the timing between the multiple operation protocols to obtain a target test case for testing the target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type.

[0146] The specific implementation of the information processing device is basically the same as the specific implementation of the above-mentioned information processing method, and will not be repeated here.

[0147] The embodiment of the present application also provides an electronic device, the electronic device includes a memory and a processor, the memory stores a computer program, and the processor implements the above information processing method when executing the computer program. The electronic device can be any intelligent terminal including a tablet computer, a car computer, etc.

[0148] See also Fig. 9 , Fig. 9 The hardware structure of an electronic device of another embodiment is illustrated. The electronic device 900 includes:

[0149] The processor 901 may be implemented by a general-purpose CPU (Central Processing Unit), a microprocessor, an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits, and is used to execute relevant programs to implement the technical solutions provided in the embodiments of the present application;

[0150] The memory 902 can be implemented in the form of a read-only memory (ROM), a static storage device, a dynamic storage device, or a random access memory (RAM). The memory 902 can store an operating system and other application programs. When the technical solution provided in the embodiments of this specification is implemented by software or firmware, the relevant program code is stored in the memory 902, and the processor 901 calls and executes the information processing method of the embodiments of this application;

[0151] Input / output interface 903, used to implement information input and output;

[0152] Communication interface 904, used to realize communication interaction between the device and other devices, which can be realized through wired mode (such as USB, network cable, etc.) or wireless mode (such as mobile network, WIFI, Bluetooth, etc.);

[0153] A bus 905 that transmits information between various components of the device (e.g., the processor 901, the memory 902, the input / output interface 903, and the communication interface 904);

[0154] The processor 901 , the memory 902 , the input / output interface 903 and the communication interface 904 are connected to each other in communication within the device via a bus 905 .

[0155] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and the computer program implements the above-mentioned information processing method when executed by a processor.

[0156] The memory, as a non-transitory computer-readable storage medium, can be used to store non-transitory software programs and non-transitory computer executable programs. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0157] The embodiments described in the embodiments of the present application are intended to more clearly illustrate the technical solutions of the embodiments of the present application, and do not constitute a limitation on the technical solutions provided in the embodiments of the present application. Those skilled in the art will appreciate that with the evolution of technology and the emergence of new application scenarios, the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.

[0158] Those skilled in the art will appreciate that the technical solutions shown in the figures do not constitute a limitation on the embodiments of the present application, and may include more or fewer steps than shown in the figures, or a combination of certain steps, or different steps.

[0159] The device embodiments described above are merely illustrative, and the units described as separate components may or may not be physically separated, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0160] Those skilled in the art will appreciate that all or some of the steps in the methods disclosed above, and the functional modules / units in the systems and devices may be implemented as software, firmware, hardware, or a suitable combination thereof.

[0161] The terms "first", "second", "third", "fourth", etc. (if any) in the specification of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0162] It should be understood that in the present application, "at least one (item)" means one or more, and "plurality" means two or more. "And / or" is used to describe the association relationship of associated objects, indicating that three relationships may exist. For example, "A and / or B" can mean: only A exists, only B exists, and A and B exist at the same time, where A and B can be singular or plural. The character " / " generally indicates that the objects associated before and after are in an "or" relationship. "At least one of the following" or similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b or c can mean: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", where a, b, c can be single or multiple.

[0163] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the above units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0164] The units described above as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0165] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0166] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including multiple instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods of various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (Read-Only Memory, referred to as ROM), random access memory (Random Access Memory, referred to as RAM), disk or optical disk and other media that can store programs.

[0167] The preferred embodiments of the present invention are described above with reference to the accompanying drawings, but the scope of the rights of the present invention is not limited thereto. Any modification, equivalent substitution and improvement made by a person skilled in the art without departing from the scope and essence of the present invention should be within the scope of the rights of the present invention.

Claims

1. An information processing method, characterized in that: The following steps are involved: Acquire operation information of the target device, wherein the operation information includes a plurality of operation protocols, an operation time of each operation protocol, and the operation protocol includes a command index; For each of the operation protocols, a target operation command is generated according to the command index of the operation protocol and a preset script statement, target operation data is generated based on the content of the target operation command, and a target test script is obtained according to the target operation command and the target operation data; Determine the timing between the plurality of operation protocols according to the operation time of each operation protocol, and sort the plurality of target test scripts according to the timing between the plurality of operation protocols to obtain a target test case for testing a target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type; Determining target response information of each target test script according to the content of each target test script in the target test case; Wherein, when the content of the target test script is to read data, the target response information of the target test script includes data response information and command response information; and determining the target response information of each target test script according to the content of each target test script in the target test case includes: If the current target test script satisfies the second preset rule, determine the target operation address corresponding to the target test script, and determine one or more preceding target test scripts whose content is to write data in the target test script before the current target test script, wherein the second preset rule includes that the content of the current target test script is to read data, and the target test case includes the target test script whose content is to write data; Obtaining one or more write operation addresses targeted by the preceding target test scripts whose contents are write data; When at least one of the write operation addresses is the same as the target operation address, the target operation data in the last-ordered preceding target test script is obtained from the preceding target test script whose content is the write data and is for the target operation address; The target operation data in the last-ordered preceding target test script is used as the data response information of the current target test script, and the preset verification code is used as the command response information of the target test script.

2. The method according to claim 1, characterized in that: After determining the target response information of each target test script, the method further includes: For each of the target test scripts, the target test script is sent to the target storage device to be tested, and the execution response information returned by the target storage device to be tested is obtained, and the target response information of the target test script is compared with the execution response information. When the target response information is consistent with the execution response information, the next target test script is sent according to the order between the multiple target test scripts; When the target response information of the last target test script is consistent with the execution response information, it is determined that the target storage device to be tested passes the operation test.

3. The method according to claim 2, characterized in that The determining, according to the content of each of the target test scripts in the target test case, target response information of each of the target test scripts further includes: If the current target test script satisfies the first preset rule, determine the target operation address corresponding to the target test script, and determine the target data stored at the target operation address in the preset mapping table according to the target operation address, wherein the first preset rule includes at least one of the following: the current target test script is the first target test script in the target test case whose content is to read data; or, the content of the current target test script is to read data, and the target test case does not include the target test script whose content is to write data; The target data is used as the data response information of the target test script, and the preset verification code is used as the command response information of the target test script.

4. The method according to claim 1, characterized in that The generating target operation data based on the content of the target operation command includes: Obtaining execution response information of the operation protocol; When the operation protocol is one of a read data protocol and a write data protocol, and the execution response information indicates that the target device executes the operation protocol incorrectly, determining a preceding operation protocol of the operation protocol from a plurality of the operation protocols; Acquire operation parameters of the operation protocol and the pre-operation protocol; The operation parameters of the operation protocol are determined as the target operation data, and the target operation data of the front script corresponding to the target operation command in the obtained target test script is updated to the operation parameters of the front operation protocol.

5. The method according to claim 1, characterized in that After obtaining the target test case, the method further includes: Acquire a test case to be reviewed, wherein the test case to be reviewed includes a plurality of test scripts to be reviewed; Extracting features of the target test case based on the correlation between the multiple target test scripts to obtain a first correlation feature of the target test case; Extracting features of the correlation between the plurality of test scripts to be reviewed from the test case to be reviewed, to obtain a second correlation feature of the test case to be reviewed; Calculating a target similarity between the first correlation feature and the second correlation feature; When the target similarity is not less than a preset similarity threshold, the test case to be reviewed is determined as the target test case.

6. The method according to claim 1, characterized in that The step of sorting the plurality of target test scripts according to the timing between the plurality of operation protocols to obtain a target test case for testing the target storage device to be tested includes: After the sorting process is completed for the plurality of target test scripts, the plurality of target test scripts are traversed, and the target test script that satisfies the third preset rule among the plurality of target test scripts is determined as the target delay script, wherein the third preset rule is that the content of the target test script is one of writing data and reading data; Perform data transmission analysis on the target operation data of each target delay script to obtain the transmission time of the target operation data of each target delay script; According to the transmission time of each of the target delay scripts, a target test script with delayed content is generated between each of the target delay scripts and the next target test script.

7. An information processing device, characterized in that: The device comprises: An operation information acquisition module, used to acquire operation information of a target device, wherein the operation information includes a plurality of operation protocols, an operation time of each operation protocol, and the operation protocol includes a command index; A target test script acquisition module is used to generate a target operation command for each operation protocol according to the command index and preset script statements of the operation protocol, generate target operation data based on the content of the target operation command, and obtain a target test script according to the target operation command and the target operation data; A target test case acquisition module, used to determine the timing between the multiple operation protocols according to the operation time of each operation protocol, and to sort the multiple target test scripts according to the timing between the multiple operation protocols to obtain a target test case for testing a target storage device to be tested, wherein the target storage device to be tested and the target device belong to the same storage device type; After the target test case acquisition module determines the target test case, the device is further used to: determine target response information of each target test script according to the content of each target test script in the target test case; Wherein, when the content of the target test script is to read data, the target response information of the target test script includes data response information and command response information; and determining the target response information of each target test script according to the content of each target test script in the target test case includes: If the current target test script satisfies the second preset rule, determine the target operation address corresponding to the target test script, and determine one or more preceding target test scripts whose content is to write data in the target test script before the current target test script, wherein the second preset rule includes that the content of the current target test script is to read data, and the target test case includes the target test script whose content is to write data; Obtaining one or more write operation addresses targeted by the preceding target test scripts whose contents are write data; When at least one of the write operation addresses is the same as the target operation address, the target operation data in the last-ordered preceding target test script is obtained from the preceding target test script whose content is the write data and is for the target operation address; The target operation data in the last-ordered preceding target test script is used as the data response information of the current target test script, and the preset verification code is used as the command response information of the target test script.

8. An electronic device, characterized in that: The electronic device comprises a memory and a processor, the memory stores a computer program, and the processor implements the method according to any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Media card with command pass through mechanism

    CN101326483A

  • Vehicle scene control method, system and equipment

    CN117270488A