Test method and device, electronic equipment and storage medium
Through the automated testing method, the connection between the intermediate device and the device under test is used to receive and analyze the test instruction execution results, which solves the problem of low testing efficiency and missed testing of the existing server RAS, and achieves an efficient testing process and accurate results.
Patent Information
- Application Number
- CN202410600189.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-08-23
AI Technical Summary
The existing server RAS testing efficiency is low and it is easy to miss tests. It cannot effectively improve the test efficiency and reduce the number of missed tests.
By calling the target test command and sending it to the intermediate device, the intermediate device is connected to the device under test, receives the execution results, and determines whether there is an abnormal response in the device based on the command execution results, thereby realizing automatic testing.
It improves the efficiency of server performance testing, reduces missed tests, simplifies the RAS testing process, and reduces manpower and time costs.
Smart Images

Figure CN118535404A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a testing method, device, electronic equipment and storage medium. Background Art
[0002] RAS (Reliability Availability Serviceability) as a whole is to ensure the long-term reliable operation of the server system and to have a sufficiently strong fault-tolerant mechanism. Reliability means that the system must be as reliable as possible and will not crash unexpectedly, availability means that the system must be able to ensure normal operation for as long as possible, and maintainability means that the system can provide convenient diagnostic functions, such as system logs, dynamic detection and other means to facilitate management personnel to perform system diagnosis and maintenance operations, so as to find and repair errors as early as possible.
[0003] At present, with the rapid development of the Internet, the performance requirements of servers such as security and stability are gradually increasing. RAS is closely related to server security, so it is very important to test RAS during server development and testing. However, existing server RAS testing remains in the manual testing stage, resulting in low testing efficiency and easy to miss tests.
[0004] Therefore, how to improve the efficiency of server performance testing and reduce missed tests has become a technical problem that needs to be solved urgently. Summary of the invention
[0005] The present disclosure provides a testing method, a device, an electronic device and a storage medium to at least solve the above technical problems existing in the prior art.
[0006] According to a first aspect of the present disclosure, a testing method is provided, which is applied to a testing device, and the method comprises:
[0007] Calling a target test instruction and sending the target test instruction to an intermediate device, so that the intermediate device sends the target test instruction to a device under test, wherein the device under test is connected to the intermediate device through a target interface, and the intermediate device is connected to the test device;
[0008] Receiving the command execution result fed back by the device under test;
[0009] Determine whether the device under test has an abnormal response based on the instruction execution result.
[0010] In one embodiment, the method further comprises:
[0011] After monitoring that the intermediate device is connected to the device under test through the target interface, obtaining a control instruction set for the target interface, where instructions in the control instruction set are used to control the target interface;
[0012] A connection instruction is obtained from the control instruction set and sent to the intermediate device, so as to control the intermediate device to establish an information transmission connection with the device under test through the target interface.
[0013] In one possible implementation, the calling target test instruction includes:
[0014] Obtaining a target task execution instruction from an instruction database associated with a target interface as a target test instruction; or,
[0015] Get the test task instruction input by the user as the target test instruction.
[0016] In one possible implementation, the instruction execution result includes execution log information of the device under test for the target test instruction.
[0017] In one possible implementation, the intermediate device obtains execution log information through the target interface.
[0018] In one possible implementation manner, determining whether the device under test has an abnormal response based on the instruction execution result includes:
[0019] If it is detected that at least one of step execution error, network failure, no response from the device under test and output result error exists in the instruction execution result, it is determined whether the device under test has an abnormal response.
[0020] According to a second aspect of the present disclosure, a testing device is provided, which is applied to a testing device, and the device comprises:
[0021] An instruction sending module, used for calling a target test instruction and sending the target test instruction to an intermediate device, so that the intermediate device sends the target test instruction to a device under test, wherein the device under test is connected to the intermediate device through a target interface, and the intermediate device is connected to the test device;
[0022] A result receiving module, used for receiving the instruction execution result fed back by the device under test;
[0023] The abnormality determination module is used to determine whether the device under test has an abnormal response based on the instruction execution result.
[0024] In one possible implementation, the instruction sending module is also used to obtain a control instruction set for the target interface after monitoring that the intermediate device is connected to the device under test through the target interface, and the instructions in the control instruction set are used to control the target interface; obtain a connection instruction from the control instruction set and send it to the intermediate device to control the intermediate device to establish an information transmission connection with the device under test through the target interface.
[0025] According to a third aspect of the present disclosure, there is provided an electronic device, including:
[0026] at least one processor; and
[0027] a memory communicatively connected to the at least one processor; wherein,
[0028] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method described in the present disclosure.
[0029] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the method described in the present disclosure.
[0030] The test method, device, electronic device and storage medium disclosed in the present invention call the target test instruction and send the target test instruction to the intermediate device, so that the intermediate device sends the target test instruction to the device under test, wherein the device under test is connected to the intermediate device through the target interface, and the intermediate device is connected to the test device; the instruction execution result fed back by the device under test is received; and based on the instruction execution result, it is determined whether the device under test has an abnormal response. That is, the test device is connected to the device under test through the target interface, so that the test device can automatically send the test instruction to the device under test to realize automatic testing, which improves the efficiency of server performance testing and reduces the situation of missed testing.
[0031] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The above and other objects, features and advantages of the exemplary embodiments of the present disclosure will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present disclosure are shown in an exemplary and non-limiting manner, in which:
[0033] In the drawings, the same or corresponding reference numerals represent the same or corresponding parts.
[0034] Figure 1 A schematic diagram of an implementation flow of the testing method provided by an embodiment of the present disclosure is shown;
[0035] Figure 2 A schematic diagram showing the structure of an intermediate device provided by an embodiment of the present disclosure is shown;
[0036] Figure 3 A schematic diagram of device connection provided by an embodiment of the present disclosure is shown;
[0037] Figure 4 A schematic diagram of the structure of a testing device provided by an embodiment of the present disclosure is shown;
[0038] Figure 5 A schematic diagram of the structure of an electronic device according to an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0039] In order to make the purpose, features, and advantages of the present disclosure more obvious and easy to understand, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are only part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0040] Since existing server RAS tests are all in the manual testing stage, the test efficiency is low and it is easy to miss a test. Therefore, in order to improve the efficiency of server performance testing and reduce missed tests, the present disclosure provides a testing method, device, electronic device and storage medium. The testing method provided by the present disclosure can be applied to testing servers.
[0041] The technical solution of the embodiment of the present disclosure will be described below in conjunction with the drawings in the embodiment of the present disclosure.
[0042] Figure 1 A schematic diagram of an implementation flow of the test method provided by the embodiment of the present disclosure is shown. Figure 1 As shown, applied to a test device, the method comprises:
[0043] S101, calling a target test instruction and sending the target test instruction to an intermediate device, so that the intermediate device sends the target test instruction to a device under test.
[0044] The device under test is connected to the intermediate device via a target interface, and the intermediate device is connected to the test device.
[0045] In the present disclosure, the target interface may adopt an Intel cscripts (a system that interacts with Intel hardware, configures settings, performs specific operations, or monitors in a scripted manner) interface, the intermediate device may adopt an ITP (Internet telephone service provider) box, the test device may be a test server, a computer, or other integrated components used for testing, and the device under test may be a program, an integrated circuit, and any electronic component, etc. Figure 2 A schematic diagram of the structure of the intermediate device provided in the embodiment of the present disclosure is shown. Figure 2 As shown, the intermediate device can use an ITP box, which includes an M1 module, an M2 module, an M3 module and an M4 module. The M3 module includes a sub-module M31 and a sub-module M32. Among them, the M1 module can use the Cscripts tool, which refers to a scripting language or a scripting tool. The Cscripts tool can be used to perform test tasks or test operations in a specified test environment. The M2 module can use the IPC CLI tool, which refers to a tool or framework for inter-process communication through a command line interface (CLI). The M3 module can use the Open IPC tool, which refers to an open IPC (inter-process communication) framework or protocol that can be used for communication and data exchange between different processes or components. The M31 module can use probe plugins, which can be used to monitor, diagnose or test systems or applications. The M32 module can use the run controlplugins plug-in, which refers to a software component that can be used to control system behavior or perform specific tasks. The M4 module refers to a module that connects to the device under test. As shown Figure 2 As shown, in the test process, the M1 module of the middleware can write test scripts or test programs based on the Python language, the M2 module can perform inter-process communication using the inter-process communication command line interface written in the Python language, and the M3 module can open or establish an inter-process communication channel for communication between processes. The M31 module can detect and confirm the various plug-in functions of the middleware, the M32 module can perform specific control functions, such as controlling the sending of test instructions or the collection of log data, and the M4 module can determine the target entity that needs to be operated or controlled in the program.
[0046] Figure 3 The device connection diagram provided by the embodiment of the present disclosure is shown as follows: Figure 3As shown, the test device 301 and the intermediate device 302 can be connected via a USB Cable (USB data cable), and the intermediate device 302 and the device under test 303 can be connected via a target interface 304. The device under test can be a PCB Board (printed circuit board), and the device under test can be configured with a MIPI 60Connector (a connector for connecting to a processor interface in the mobile industry), and the device under test can be configured with a Merged Debug Port Configuration component, which is used to merge and configure different debug ports together for debugging and testing hardware systems. Specifically, Figure 3 As shown, the device under test and the test device can be connected through an intermediate device (ITP box), and a J Tag interface can be configured on the device under test. A JTag (a communication interface used to test and debug electronic components on printed circuit boards) interface can be provided. One end of the ITP box can be connected to the J Tag interface and the other end can be connected to the test device through a USB interface. The test device is connected to the serial port of the device under test.
[0047] In the present disclosure, the target test instruction may be one or more test task instructions pre-stored in the test device, or may be a test task instruction input by a user to the device under test through the test device.
[0048] In a possible implementation, the calling target test instruction may include step A1:
[0049] Step A1, obtaining a target task execution instruction in an instruction database associated with a target interface as a target test instruction; or obtaining a test task instruction input by a user as a target test instruction.
[0050] In the present disclosure, before calling the target test instruction, the test environment of the test device can be initialized, and the folder required for the test can be set in the test device, and the folder can be used as an instruction database. Then the instruction database can be encapsulated. After setting up the test environment, the instruction encapsulated in the folder can be called as the target test instruction, and sent to the device under test through the ITP box, so that the device under test executes the target test instruction and obtains the execution result of the device under test. Specifically, it can be determined whether the project involved in the instruction in the folder is the project under test according to the function to be tested. If so, the test environment is initialized, and the test instructions are configured and loaded. Among them, the test tasks in the folder can include CPU module test tasks, MEM (memory) module test tasks, FDM (file device manager) module test tasks, MSP (network service) module test tasks, etc.
[0051] In the present disclosure, before calling the target test instruction, the user can also dynamically input the test instruction through the test device according to the test requirements, and the test device can use the test instruction as the target test instruction after receiving the test instruction input by the user. For example, the folder of the test device stores the test instruction C1 for the function module L1 of the device under test, the test instruction C2 for the function module L2 of the device under test, and the test instruction C3 for the function module L3 of the device under test, but there is no test instruction for the function module L4 of the device under test, then the user can input the test instruction C4 for the function module L4 of the device under test through the test device, use the test instruction C4 as the target test instruction, and send the test instruction C4 to the device under test through the intermediate device so that the device under test executes the test instruction C4.
[0052] S102: Receive the instruction execution result fed back by the device under test.
[0053] In the present disclosure, the instruction execution result may include the execution log information of the device under test for the target test instruction. Specifically, the device under test may generate an excel report and an executed command document when executing the target test instruction.
[0054] In the present disclosure, the intermediate device obtains the execution log information through the target interface. The log log and BMC FFDC (Baseboard Management Controller First Failure Data Capture) information generated when the device under test executes the target test instruction can be fed back to the test device through the target interface as the execution result.
[0055] S103: Determine whether the device under test has an abnormal response based on the instruction execution result.
[0056] In the present disclosure, the instruction execution result may be compared with the standard execution result corresponding to the target test instruction. If the instruction execution result is different from the standard execution result, it is determined whether the device under test has an abnormal response.
[0057] In a possible implementation manner, determining whether the device under test has an abnormal response based on the instruction execution result may include step B1:
[0058] Step B1, if it is detected that the instruction execution result contains at least one of a step execution error, a network failure, no response from the device under test, and an output result error, it is determined whether the device under test has an abnormal response.
[0059] In the present disclosure, the instruction execution log information in the instruction execution results can be compared, and based on the log information and the standard execution results corresponding to the target test instructions, it can be determined whether there are step execution errors, network failures, no response from the tested device, or output result errors during the execution of the target test instructions.
[0060] Among them, step execution errors may include at least one of the following situations: missing instruction execution steps, wrong execution step order, too long time for a certain step, etc. Network failures may include at least one of the following situations: the communication channel of the tested module of the tested device is blocked, the network connection between the tested device and the intermediate device is disconnected, etc. The unresponsiveness of the tested device may include at least one of the following situations: the tested device has no response to the target test instruction and an abnormal response, etc. The output result error may include at least one of the following situations: the data returned by the tested device is incorrect, the log information returned by the tested device has an output error, etc.
[0061] The method calls a target test instruction and sends the target test instruction to an intermediate device, so that the intermediate device sends the target test instruction to the device under test, wherein the device under test is connected to the intermediate device through a target interface, and the intermediate device is connected to the test device; the instruction execution result fed back by the device under test is received; and it is determined whether the device under test has an abnormal response based on the instruction execution result. That is, the test device is connected to the device under test through the target interface, so that the test device can automatically send the test instruction to the device under test to realize automatic testing, thereby improving the efficiency of server performance testing and reducing the situation of missed testing.
[0062] In the present disclosure, after monitoring that the intermediate device is connected to the target interface, an information transmission tool adapted to the target interface may be obtained, and the information transmission tool is used for information transmission between the test device and the intermediate device.
[0063] In the present disclosure, the ITP box can act as an intermediate device for communication and data transmission between the device under test and the test device. Through the target interface, the test device can monitor and control the test system status in real time to ensure the stability and reliability of the test environment. At the same time, the target interface can also transmit complex test instructions and log collection between the test device and the device under test, thereby realizing complex test requirements for the device under test.
[0064] In a possible implementation, a test script or test program is configured in the target interface, and the target interface can be used to determine whether the test task in the test device meets the test requirements, thereby calling the target test instruction in the test device. The test process based on the test device, the intermediate device and the device under test can include: loading the driver of the intermediate device; the driver can be used to communicate, debug or test with the device under test; loading the configuration file required for the test to guide the test process; loading the folder path or directory structure required for the test; executing the target test instruction, that is, testing the device under test. Specifically, executing the target test instruction may include: loading modules required for the test, such as the CPU, memory, SPI SPI (Serial Peripheral Interface, a serial peripheral interface), Flash (non-volatile memory) and other test modules of the device under test, modifying the BIOS (Basic Input / Output System, basic input / output system in a computer system) options required for the test, such as changing the BIOS settings to meet the test requirements, restarting the system to make the BIOS changes effective, and judging whether the BIOS is effective, for example, the test device sends an error injection command to the device under test, detects the console output information of the device under test, and downloads the operation log information of the device under test, and feeds back the operation log information and the test results to the test device as the instruction execution result, and then restores the test environment of the test device to the initial state and exits the test program, and then determines whether the device under test has an abnormal response based on the instruction execution result.
[0065] In the present disclosure, the log information of the test equipment can be stored in a designated folder, the test instructions used in the test will also be stored, and the final test report can be presented in the form of an Excel spreadsheet, so that testers and R&D personnel can analyze and judge, and facilitate subsequent retesting and verification. The test process is automated, the test efficiency is improved, and the probability of errors due to manual testing is reduced, making the test results more accurate and preventing the occurrence of missed tests. A server is a computer hardware device or software program with powerful computing and storage capabilities, which is used to request, store data and provide services. The server plays an important role in the Internet, providing users with various services and resources. The present disclosure simplifies the server RAS test process by utilizing the target interface, greatly reducing labor costs and time costs, and solving the problem that RAS testing has many difficulties and complex steps, resulting in low work efficiency and easy missed tests.
[0066] Based on the same inventive concept, according to the test method provided in the above embodiment of the present disclosure, correspondingly, another embodiment of the present disclosure further provides a test device, whose structural schematic diagram is shown in FIG. Figure 4 As shown, specifically including:
[0067] An instruction sending module 401 is used to call a target test instruction and send the target test instruction to an intermediate device, so that the intermediate device sends the target test instruction to a device under test, wherein the device under test is connected to the intermediate device through a target interface, and the intermediate device is connected to the test device;
[0068] A result receiving module 402 is used to receive the instruction execution result fed back by the device under test;
[0069] The abnormality determination module 403 is used to determine whether the device under test has an abnormal response based on the instruction execution result.
[0070] The device is used to call a target test instruction and send the target test instruction to an intermediate device, so that the intermediate device sends the target test instruction to the device under test, wherein the device under test is connected to the intermediate device through a target interface, and the intermediate device is connected to the test device; the instruction execution result fed back by the device under test is received; and it is determined whether the device under test has an abnormal response based on the instruction execution result. That is, the test device is connected to the device under test through the target interface, so that the test device can automatically send the test instruction to the device under test to realize automatic testing, thereby improving the efficiency of server performance testing and reducing the situation of missed testing.
[0071] In one possible implementation, the instruction sending module 401 is also used to obtain a control instruction set for the target interface after monitoring that the intermediate device is connected to the device under test through the target interface, and the instructions in the control instruction set are used to control the target interface; obtain a connection instruction from the control instruction set and send it to the intermediate device to control the intermediate device to establish an information transmission connection with the device under test through the target interface.
[0072] In one possible implementation, the instruction sending module 401 is specifically used to obtain a target task execution instruction in an instruction database associated with a target interface as a target test instruction; or to obtain a test task instruction input by a user as a target test instruction.
[0073] In one possible implementation, the instruction execution result includes execution log information of the device under test for the target test instruction.
[0074] In one possible implementation, the intermediate device obtains execution log information through the target interface.
[0075] In one embodiment, the abnormality determination module 403 is specifically used to determine whether the device under test has an abnormal response if at least one of the following is detected in the instruction execution result: a step execution error, a network failure, no response from the device under test, and an output result error.
[0076] The device simplifies the server RAS test process by utilizing the target interface, greatly reduces labor and time costs, and solves the problem that RAS testing is difficult and complicated, resulting in low work efficiency and easy missed tests.
[0077] According to an embodiment of the present disclosure, the present disclosure further provides an electronic device and a readable storage medium.
[0078] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0079] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0080] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0081] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the test method. For example, in some embodiments, the test method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the test method described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the test method in any other appropriate manner (e.g., by means of firmware).
[0082] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0083] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0084] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0085] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0086] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0087] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0088] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0089] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of the features. In the description of the present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0090] The above is only a specific embodiment of the present disclosure, but the protection scope of the present disclosure is not limited thereto. Any person skilled in the art who is familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present disclosure, which should be included in the protection scope of the present disclosure. Therefore, the protection scope of the present disclosure should be based on the protection scope of the claims.
Claims
1. A testing method, characterized in that: Applied to testing equipment, the method comprises: Calling a target test instruction and sending the target test instruction to an intermediate device, so that the intermediate device sends the target test instruction to a device under test, wherein the device under test is connected to the intermediate device through a target interface, and the intermediate device is connected to the test device; Receiving the command execution result fed back by the device under test; Determine whether the device under test has an abnormal response based on the instruction execution result.
2. The method according to claim 1, characterized in that: The method further comprises: After monitoring that the intermediate device is connected to the device under test through the target interface, obtaining a control instruction set for the target interface, where instructions in the control instruction set are used to control the target interface; A connection instruction is obtained from the control instruction set and sent to the intermediate device, so as to control the intermediate device to establish an information transmission connection with the device under test through the target interface.
3. The method according to claim 1, characterized in that The calling target test instruction includes: Obtaining a target task execution instruction from an instruction database associated with a target interface as a target test instruction; or, Get the test task instruction input by the user as the target test instruction.
4. The method according to claim 1, characterized in that: The instruction execution result includes execution log information of the device under test for the target test instruction.
5. The method according to claim 4, characterized in that The intermediate device obtains execution log information through the target interface.
6. The method according to claim 1, characterized in that The determining whether the device under test has an abnormal response based on the instruction execution result includes: If it is detected that at least one of step execution error, network failure, no response from the device under test and output result error exists in the instruction execution result, it is determined whether the device under test has an abnormal response.
7. A testing device, characterized in that: Applied to testing equipment, the device comprises: An instruction sending module, used for calling a target test instruction and sending the target test instruction to an intermediate device, so that the intermediate device sends the target test instruction to a device under test, wherein the device under test is connected to the intermediate device through a target interface, and the intermediate device is connected to the test device; A result receiving module, used for receiving the instruction execution result fed back by the device under test; The abnormality determination module is used to determine whether the device under test has an abnormal response based on the instruction execution result.
8. The device according to claim 7, characterized in that The instruction sending module is also used to obtain a control instruction set for the target interface after monitoring that the intermediate device is connected to the device under test through the target interface, and the instructions in the control instruction set are used to control the target interface; obtain a connection instruction from the control instruction set and send it to the intermediate device to control the intermediate device to establish an information transmission connection with the device under test through the target interface.
9. An electronic device, comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions for causing a computer to execute the method according to any one of claims 1 to 6.
