CN114490206A - Interface performance test method and system - Google Patents

Interface performance test method and system Download PDF

Info

Publication number
CN114490206A
CN114490206A CN202111622375.8A CN202111622375A CN114490206A CN 114490206 A CN114490206 A CN 114490206A CN 202111622375 A CN202111622375 A CN 202111622375A CN 114490206 A CN114490206 A CN 114490206A
Authority
CN
China
Prior art keywords
interface
test
machine
tested
instruction
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111622375.8A
Other languages
Chinese (zh)
Inventor
王尹
庄琦
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hefei Lianbao Information Technology Co Ltd
Original Assignee
Hefei Lianbao Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hefei Lianbao Information Technology Co Ltd filed Critical Hefei Lianbao Information Technology Co Ltd
Priority to CN202111622375.8A priority Critical patent/CN114490206A/en
Publication of CN114490206A publication Critical patent/CN114490206A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/26Functional testing

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Test And Diagnosis Of Digital Computers (AREA)

Abstract

The invention discloses an interface performance testing method and system, wherein the method is applied to a testing machine, the testing machine, testing equipment and a machine to be tested are connected in the same preset communication line through a network, and the method comprises the following steps: sending a connection instruction to a test device and a machine to be tested, wherein the connection instruction carries an interface identifier of a set interface of the current interface test, so that the test device is accessed to the set interface of the machine to be tested according to the interface identifier; under the condition of receiving a signal which is sent by the test equipment and has successful access, sending an interface test instruction to the test equipment; and receiving a test result of the test equipment responding to the test instruction and performing interface test on the set interface of the machine to be tested according to the interface identification. The invention can automatically test different interfaces of the machine to be tested, does not judge the machine by using human sense, and improves the detection efficiency and the detection accuracy.

Description

Interface performance test method and system
Technical Field
The present invention relates to the field of interface testing, and in particular, to a method and a system for testing interface performance.
Background
In the production and testing process of a computer motherboard, it is often necessary to test whether a USB interface, a Type-c interface, an HDMI interface, and a DP (Display Port, high definition digital Display interface standard) interface of the computer motherboard can work normally.
At present, the following test methods are mainly adopted: according to the USB interface and the Type-c interface of the electronic equipment, the external equipment of various USB interfaces or Type-c interfaces is plugged by manual operation, and whether the current external equipment is normally connected with a mainboard of the electronic equipment is judged by adopting a manual mode, so that whether the interface performance of the corresponding USB interface or Type-c interface is normal is further judged. Aiming at an HDMI (high definition multimedia interface) and a DP (digital processing) interface of electronic equipment, a specific audio/video file is played through the electronic equipment, the electronic equipment is accessed into external display or audio playing equipment, and whether the current DP signal output is normal or not is judged manually through ear and eye observation, so that whether the corresponding HDMI or DP interface is normal or not is further judged.
However, these manual testing methods are not only inefficient, but also have a high possibility of erroneous determination due to differences in human perception, and the testing methods are rough, and thus the quality and parameters of signal transmission of these interfaces cannot be tested in detail.
Disclosure of Invention
In order to solve the above problems, embodiments of the present invention creatively provide an interface testing method, system and testing device
According to a first aspect of the present invention, there is provided an interface testing method, the method being applied to a tester, the tester, a testing device and a machine to be tested being connected in a same preset communication line through a network, the method comprising: sending a connection instruction to a test device and a machine to be tested, wherein the connection instruction carries an interface identifier of a set interface of the current interface test, so that the test device is accessed to the set interface of the machine to be tested according to the interface identifier; under the condition of receiving a signal which is sent by the test equipment and has successful access, sending an interface test instruction to the test equipment; and receiving a test result of the test equipment responding to the test instruction and performing interface test on the set interface of the machine to be tested according to the interface identification.
According to an embodiment of the present invention, in a case that the interface identifier indicates that the interface type of the setting interface is a DP interface or an HDMI interface, the receiving a test result of the test device performing an interface test on the setting interface of the machine to be tested according to the interface identifier in response to the test instruction includes: receiving a test result obtained by the machine to be tested by adopting the following operations: sending a resolution identification and a test signal corresponding to the resolution identification to the test equipment in response to the test instruction; receiving a comparison result obtained by comparing the test signal with the corresponding original signal by the test equipment according to the resolution identification; the comparison results comprise a plurality of comparison results obtained by correspondingly testing the test equipment aiming at a plurality of resolutions supported by the machine to be tested; and sending the comparison results and the resolution identifiers corresponding to the comparison results to the testing machine as test results.
According to an embodiment of the present invention, in a case that the interface identifier indicates that the interface TYPE of the set interface is a USB interface or a TYPE-C interface, the interface test instruction includes an interface access detection instruction and an interface removal detection instruction; correspondingly, the receiving a test result of the test device responding to the test instruction and performing the interface test on the set interface of the machine to be tested according to the interface identifier includes: receiving a test result obtained by the machine to be tested by adopting the following operations: responding to the interface access detection instruction to detect whether the set interface is successfully accessed, obtaining an interface access detection result, and sending the interface access detection result to the test machine; under the condition that the test equipment removes the set interface, responding to the interface removal detection instruction to detect whether the set interface of the machine to be tested is successfully removed or not, and obtaining an interface removal detection result; sending the interface removal detection result to the tester; the interface removal detection instruction is an instruction sent to the machine to be tested by the tester when the test machine receives the interface access detection result and the interface access detection result shows that the set interface is successfully accessed; the test result comprises the interface access detection result and the interface removal detection result.
According to the second aspect of the present invention, there is also provided an interface testing method, which is applied to a testing device, and includes: receiving a connection instruction sent by a testing machine, wherein the connection instruction carries an interface identifier of a set interface of the current interface test; accessing the set interface of the machine to be tested according to the interface identification; sending a signal of successful access to the test machine; and receiving a test instruction sent by the tester, responding to the test instruction, testing the set interface of the to-be-tested machine according to the interface identification, and sending a test result to the tester.
According to an embodiment of the present invention, in a case that the interface identifier indicates that the interface type of the setting interface is a DP interface or an HDMI interface, the receiving a test instruction sent by the tester, testing the setting interface of the dut according to the interface identifier in response to the test instruction, and sending a test result to the tester, includes: receiving a resolution identification sent by the machine to be tested in response to the test instruction and a test signal corresponding to the plurality of resolution identifications; comparing the test signal with a corresponding original signal according to the resolution identification to obtain a comparison result; obtaining a plurality of comparison results according to a plurality of resolutions supported by the machine to be tested; and sending the comparison results and the resolution identifiers corresponding to the comparison results to the testing machine as test results.
According to an embodiment of the present invention, in a case that the interface identifier indicates that the interface TYPE of the setting interface is a USB interface or a TYPE-C interface, the receiving a test instruction sent by the tester, testing the setting interface of the dut according to the interface identifier in response to the test instruction, and sending a test result to the tester, includes: receiving an interface access detection result of the machine to be detected responding to the interface access detection instruction and detecting the set interface, and sending the interface access detection result to the testing machine; removing the setting interface in response to the interface removal detection instruction; receiving an interface removal detection result of the machine to be tested, which responds to the removal detection instruction, detecting the set interface, and sending the interface removal detection result to the testing machine; the interface removal detection instruction is an instruction sent to the machine to be tested by the tester when the tester receives the interface access detection result and the interface access detection result shows that the set interface is successfully accessed; the test result comprises the interface access detection result and the interface removal detection result.
According to a third aspect of the present invention, there is provided an interface performance testing system, the system comprising: the testing machine is used for sending a connecting instruction and a testing instruction and receiving a testing result of interface testing of the set interface of the machine to be tested by testing equipment sent by the machine to be tested according to the testing instruction, wherein the connecting instruction comprises an interface identifier of the set interface of the current testing, and the testing instruction carries an interface testing requirement of the current interface testing; the test equipment is used for connecting a corresponding interface of the machine to be tested according to the interface identification of the set interface; the test equipment is also used for testing the interface of the machine to be tested according to the test instruction of the test machine; the machine to be tested receives a test result generated by the test equipment for detecting the set interface, and sends the test result to the test machine; the testing machine, the testing equipment and the machine to be tested can be connected in the same preset communication line through a network.
According to an embodiment of the present invention, the test apparatus includes: the machine body is provided with a network interface and is used for communicating with the machine to be tested and the testing machine; the interface access mechanism is arranged in the machine body, is connected with the interface of the machine to be tested and is used for enabling the test equipment to be accessed to different interfaces of the machine to be tested; the interface detection mechanism is arranged in the machine body, is connected with the interface access mechanism and is used for testing the interface of the machine to be tested; the main control chip is arranged in the machine body, connected with the network interface, the interface access mechanism and the interface detection mechanism and used for receiving the instruction of the tester; the main control chip is also used for controlling the interface access mechanism and the interface detection mechanism.
According to an embodiment of the present invention, the interface access mechanism includes: the DP access port is used for connecting a DP interface of the machine to be tested; the HDMI access port is used for connecting an HDMI interface of the machine to be tested; the USB access port is connected with the USB port switching module and the machine to be tested and comprises a plurality of USB interfaces; the USB port switching module is connected with the USB access port and the main control chip and is used for freely switching a plurality of USB interfaces to access the machine to be tested according to the instruction of the main control chip; the TYPE-C access port is connected with the TYPE-C port switching module and the machine to be tested and comprises a plurality of TYPE-C interfaces; the TYPE-C port switching module, with the TYPE-C access port links to each other, is used for according to the instruction of main control chip realizes freely switching a plurality of TYPE-C interface access the machine that awaits measuring.
According to an embodiment of the present invention, the interface test mechanism includes: the signal decoding module is connected with the interface access mechanism and the data detection module, is connected with the main control chip, and is used for receiving the signal sent by the machine to be tested through the interface access mechanism and decoding the signal to generate test data; the data detection module is used for comparing the test data with the corresponding original data to generate a detection result and sending the detection result to the testing machine.
The embodiment of the invention can realize automatic testing of different interfaces (a USB interface, a TYPE-C interface, a DP interface and an HDMI interface) on a machine to be tested, and compared with the testing of different interfaces through a manual plugging interface, the performance of the interfaces is not judged by using human sense, thereby improving the detection efficiency and the detection accuracy.
It is to be understood that the teachings of the present invention need not achieve all of the above-described benefits, but rather that specific embodiments may achieve specific technical results, and that other embodiments of the present invention may achieve benefits not mentioned above.
Drawings
The above and other objects, features and advantages of exemplary embodiments of the present invention will become readily apparent from the following detailed description read in conjunction with the accompanying drawings. Several embodiments of the invention are illustrated by way of example, and not by way of limitation, in the figures of the accompanying drawings and in which:
in the drawings, the same or corresponding reference numerals indicate the same or corresponding parts.
Fig. 1 shows a first flow chart of the implementation of the interface performance testing method according to the embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a second implementation flow of the interface performance testing method according to the embodiment of the present invention;
FIG. 3 is a schematic connection diagram of an interface performance testing system according to an embodiment of the present invention;
FIG. 4 is a schematic diagram showing a first structural diagram of a test device of the interface performance test system according to the embodiment of the present invention;
fig. 5 is a schematic diagram showing a second component structure of the test equipment of the interface performance test system according to the embodiment of the present invention.
Detailed Description
The principles and spirit of the present invention will be described with reference to a number of exemplary embodiments. It is understood that these embodiments are given only to enable those skilled in the art to better understand and to implement the present invention, and do not limit the scope of the present invention in any way. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the invention to those skilled in the art.
The technical scheme of the invention is further elaborated by combining the attached drawings and specific embodiments.
First, an application scenario of the interface performance testing method according to the embodiment of the present invention is described, in which a testing machine, a testing device, and a machine to be tested may be connected to a same preset line through a network. Specifically, a network interface may be set on the testing machine and the testing device to implement network connection, the machine to be tested may set the network interface or directly perform network connection through wireless, and accordingly, the testing machine, the testing device, and the machine to be tested may all perform interactive communication through the TCP/IP protocol and the MQTT protocol after being connected in the same preset line.
Further, the testing machine in the application is a testing terminal, and after connection is successful, design of Case (test Case) can be performed on the testing machine according to the type of the interface and the type of the testing performance of the machine to be tested. For example: when the interface TYPE of the machine to be tested is a USB interface or a TYPE-C interface, the test performance TYPE may include access performance and removal performance, and correspondingly, the Case may include the following instructions: connecting the USB/TYPE-C interface, testing the access performance of the USB/TYPE-C interface, removing the USB/TYPE-C interface, testing the removal performance of the USB/TYPE-C interface, and the like. In the Case that the interface type to be tested of the machine to be tested is a DP interface or an HDMI interface, the testing of the performance type may include testing the performance of the interface at different resolutions, and correspondingly, Case further includes the following instructions: and accessing the DP/HDMI interface, testing the interface performance of the DP interface and the HDMI interface under different resolutions, and the like. It should be noted that the present application supports testing of multiple interface types, but the present application may correspondingly design Case according to the type of the interface to be tested, so as to issue the correspondingly designed Case to correspondingly test the interface to be tested of the machine to be tested. Here, when the device under test needs to perform multi-interface testing, the testing sequence is not limited.
Furthermore, after the machine to be tested and the test machine (such as a terminal device) are connected to the same preset channel through a network, the test machine can issue a preset instruction for downloading the test tools, so that the machine to be tested (such as a computer) can spontaneously download and install the test tools required by the test according to the instruction, such as a USB detection tool, a TYPE-C detection tool, a resolution switching tool, and the like. And the instruction for downloading the test tool can also be put in the first step of Case, and after the Case is issued, the machine to be tested firstly downloads the test tool required to be used according to the instruction and installs the test tool for subsequent use.
It should be noted that the application scenario of the interface performance testing method according to the embodiment of the present invention is an exemplary description given for clearer description of the scenario, and in the actual application process, the interface performance testing method according to the embodiment of the present invention may also be applied to other applicable scenarios, which is not specifically limited by the present invention.
Fig. 1 shows a first implementation flow diagram of an interface performance testing method according to an embodiment of the present invention.
Referring to fig. 1, the method for testing interface performance provided in this embodiment is applied to a tester, and the method includes: step 101, sending a connection instruction to a test device and a machine to be tested, wherein the connection instruction carries an interface identifier of a set interface of the current interface test, so that the test device is accessed to the set interface of the machine to be tested according to the interface identifier; 102, sending an interface test instruction to the test equipment under the condition of receiving a signal which is sent by the test equipment and has successful access; and 103, receiving a test result of the test equipment responding to the test instruction and performing interface test on the set interface of the machine to be tested according to the interface identification.
Specifically, an interface to be tested of the machine to be tested is connected with a corresponding access port of the test equipment, then the test equipment and the machine to be tested automatically perform self-checking, and self-checking results are sent to the test machine through a TCP/IP protocol and an MQTT protocol. In the process of detecting the interface performance of the machine to be tested, the tester always monitors the states of the test equipment and the machine to be tested through the network, so that the states of the internal hardware and the network of the test equipment and the machine to be tested are good, and corresponding operation can be completed.
In operation 101, the tester may issue a connection instruction to the test equipment and the machine under test through the TCP/IP protocol and the MQTT protocol. The test equipment can determine the set interface of the machine to be tested which needs to be connected for testing according to the interface identification of the set interface of the interface test carried by the connection instruction, and connect the test connection end of the test equipment with the set interface of the machine to be tested. The interface identifier here shows a setting interface of the device under test that needs to be tested at this time, such as a USB1.0, a USB2.0, a TYPE-C1.0, an HDMI interface, or a DP interface.
Wherein, test equipment's test connection end refers to the preset connecting wire that is arranged in treating equipment's setting interface and tests among the test equipment, disposes the interface of the multiple model that matches with the setting interface of equipment that awaits measuring, for example: and the USB interface, the TYPE-C interface, the HDMI interface, the DP interface and the like can be included. The interface identifier of the current interface test carried by the connection instruction may include an equipment identifier of the device to be tested, and an interface type and an interface number of a set interface to be tested.
In operation 102, after the test equipment connects the test connection end with the set interface of the to-be-tested device according to the connection instruction, the test equipment may send a signal indicating that the connection is successful to the test machine, and correspondingly, the test machine may receive the signal indicating that the connection is successful, which is sent by the test equipment through the TCP/IP protocol and the MQTT protocol. After the test machine receives the signal of successful connection, the test machine issues a test instruction through a TCP/IP protocol and an MQTT protocol so that the test equipment can detect a corresponding set interface of the machine to be tested according to the test instruction and receive a test result obtained after the test equipment detects the set interface.
In this embodiment of the present invention, in a case that the interface identifier indicates that the interface type of the setting interface detected this time of the machine to be tested is a DP interface or an HDMI interface, the test machine may receive a test result obtained by the machine to be tested by using the following operations: the method comprises the steps of responding to a test instruction, sending a resolution identification and a test signal corresponding to the resolution identification to test equipment, receiving a comparison result obtained by comparing the test signal with a corresponding original signal by the test equipment according to the resolution identification, wherein the comparison result comprises a plurality of comparison results obtained by correspondingly testing a plurality of resolutions supported by a machine to be tested by the test equipment, and sending the comparison results and the resolution identification corresponding to each comparison result to a test machine as the test result.
Specifically, the machine to be tested can support transmission and processing operations of signals such as audio and video signals with multiple resolutions, and when testing the DP interface and the HDMI interface, it is necessary to detect the performance of the interfaces with different resolutions supported by the machine to be tested. Correspondingly, the machine to be tested can send the resolution identification and the test signal corresponding to the resolution identification to the test equipment, and after the test equipment compares the test signal under each resolution with the original signal in sequence, receive a plurality of comparison results corresponding to different resolutions sent by the test equipment. Furthermore, the machine to be tested can send the resolution parameter identification for identifying the resolution and the comparison result corresponding to each resolution parameter identification as the test result of the test interface to the test machine, so that the invention can automatically test the performance of the interface of the machine to be tested under multiple resolutions for the machine to be tested supporting multiple resolutions.
Further, comparing the test signal with the corresponding original signal to obtain a comparison result includes: and comparing the test signal with the corresponding original signal to obtain a comparison result, comparing the comparison result with preset parameter standard information, if the comparison result is within an error allowable range, displaying that the interface performance is good, and if the comparison result is not within the error allowable range, indicating that the error is too large, displaying that the interface performance is wrong. The comparison result may include a comparison result of parameters such as the number of bits of the color digital signal, the refresh rate, and the resolution.
In this embodiment of the present invention, in a case where the interface identifier indicates that the interface TYPE of the set interface is a USB interface or a TYPE-C interface, the interface test instruction includes an interface access detection instruction and an interface removal detection instruction; correspondingly, the receiving test equipment responds to the test instruction and carries out the test result of the interface test to the set interface of the machine to be tested according to the interface identification, and the receiving test equipment comprises the following steps: receiving a test result obtained by the machine to be tested by adopting the following operations: responding to an interface access detection instruction to detect whether a set interface is successfully accessed, obtaining an access detection result, and sending the access detection result to a testing machine; under the condition that the test equipment removes the set interface, responding to an interface removal detection instruction to detect whether the set interface of the machine to be tested is successfully removed or not, and obtaining an interface removal detection result; sending the interface removal detection result to a testing machine; the interface removal detection instruction is an instruction sent to the machine to be tested when the test machine receives the access detection result and the access detection result shows that the set interface is successfully accessed.
Specifically, the machine under test may include a plurality of USB or TYPE-C interfaces, and therefore all the USB or TYPE-C interfaces of the machine under test need to be tested. Therefore, after the test equipment connects and conducts the access port corresponding to the USB interface or the TYPE interface to be tested according to the connection instruction and the interface identifier carried by the connection instruction, the machine to be tested can receive a signal that the test equipment is conducted, that is, the test equipment is accessed to the corresponding test interface, through the TCP/IP protocol and the MQTT protocol, and then test whether the interface is successfully accessed at the moment according to the test instruction and send a detection result to the test machine, if the interface is not accessed, the interface access function is marked as damaged, and if the interface is successfully accessed, the interface access function is marked as intact. The method comprises the steps that when an interface access detection result received by a testing machine and sent by a machine to be tested is intact, the testing machine sends an interface removing instruction, when the testing equipment closes or removes a corresponding interface access port, the testing equipment detects whether the interface to be tested is successfully removed and sends an interface removing detection result to the testing machine, wherein the access detection result and the interface removing detection result are collectively called as a testing result of a set interface of the current detection.
Fig. 2 shows a schematic flow chart of an implementation of the interface performance testing method according to the embodiment of the present invention.
Referring to fig. 2, the interface performance testing method provided in the embodiment of the present invention is applied to a testing device, and the method includes: step 201, receiving a connection instruction sent by a tester, wherein the connection instruction carries an interface identifier of a set interface of the current interface test; step 202, accessing a set interface of a machine to be tested according to an interface identifier; step 203, sending a signal of successful access to the tester; and 204, receiving a test instruction sent by the tester, responding to the test instruction, testing the set interface of the machine to be tested according to the interface identifier, and sending a test result to the tester.
Specifically, the test equipment receives a connection instruction issued by the test machine through a TCP/IP protocol and an MQTT protocol, and then the test equipment responds to the connection instruction and conducts an interface of the test connection end connected with the interface to be tested according to the interface identification of the test interface so as to access the corresponding test interface of the machine to be tested. After the corresponding interface is conducted, the test equipment sends an access success signal to the test machine through a TCP/IP protocol and an MQTT protocol, receives a test instruction sent by the test machine to test the interface tested this time, and finally sends a test result tested by the interface tested this time to the test machine through the TCP/IP protocol and the MQTT protocol.
In this embodiment of the present invention, in a case that the interface identifier of the current test indicates that the interface type of the set interface of the current test is a DP interface or an HDMI interface, receiving a test instruction sent by a test machine, testing the set interface of a device under test according to the interface identifier in response to the test instruction, and sending a test result to the test machine, the method includes: receiving a resolution identification and a test signal corresponding to a plurality of resolution identifications sent by a machine to be tested in response to a test instruction; comparing the test signal with the corresponding original signal according to the resolution identification to obtain a comparison result; aiming at a plurality of resolutions supported by a machine to be tested, obtaining a plurality of comparison results; and sending the comparison results to a machine to be tested so that the machine to be tested sends the comparison results and the resolution identification corresponding to each comparison result to the testing machine as test results.
In this embodiment of the present invention, in a case that the interface TYPE of the setting interface of the current test is a USB interface or a TYPE-C interface, receiving a test instruction sent by the test machine, testing the setting interface of the dut according to the interface identifier in response to the test instruction, and sending a test result to the test machine, the method includes: receiving an interface access detection result obtained by a machine to be detected responding to an interface access detection instruction and detecting whether a set interface is successfully accessed; removing the set interface in response to an interface removal detection instruction; receiving an interface removal detection result of the machine to be tested responding to the removal detection instruction detection setting interface, and sending the interface removal detection result to the testing machine; the interface removal detection instruction is an instruction sent to a machine to be tested when the test machine receives an access detection result and the access detection result shows that the set interface is successfully accessed; the test result comprises an interface access detection result and an interface removal detection result.
Specifically, after the test equipment is connected and conducted with the access port corresponding to the set interface of the test according to the interface identifier carried by the access instruction issued by the test machine, the machine to be tested can detect the set interface. For example, after the machine to be tested detects the access performance of the set interface and sends the access detection result to the tester through the TCP/IP protocol and the MQTT protocol, the test equipment receives a removal detection instruction issued by the tester through the TCP/IP protocol and the MQTT protocol and turns off the access port connected to the set interface of the current test in response to the removal detection instruction to remove the set interface of the machine to be tested. After the test equipment determines that the corresponding interface is successfully removed, the test equipment sends a removal completion signal to the machine to be tested through a TCP/IP protocol and an MQTT protocol, so that the machine to be tested detects whether the set interface detected at this time is successfully removed according to a removal detection instruction after receiving the removal signal and sends a result to the test machine.
Here, it should be noted that: the interface performance testing method applied to the testing device is similar to the method applied to the machine to be tested shown in the embodiment of fig. 1, and has similar beneficial effects to the method shown in fig. 1, and therefore, the description is omitted.
Similarly, based on the above interface performance testing method, an embodiment of the present invention further provides an interface performance testing system, as shown in fig. 3, where the system 30 includes: the testing machine 301 is configured to send a connection instruction and a test instruction, and receive a test result of performing an interface test on a set interface of the machine to be tested according to the test instruction by using the testing device sent by the machine to be tested, where the connection instruction includes an interface identifier of the set interface of the current test, and the test instruction carries an interface test requirement of the current interface test; the test equipment 302 is used for connecting a corresponding interface of the machine to be tested according to the interface identifier of the set interface; testing the interface of the machine to be tested based on the test instruction of the tester; the to-be-tested machine 303 is used for receiving a test result generated by the test equipment for detecting the set interface and sending the test result to the test machine; the testing machine, the testing equipment and the machine to be tested can be connected in the same preset communication line through a network.
Specifically, the testing machine is used for issuing instructions and receiving results, and the testing equipment and the machine to be tested are used for receiving corresponding instructions issued by the testing machine to complete corresponding testing actions and sending the testing results to the testing machine.
It should be noted that the network interface between the tester and the device under test in fig. 3 is RJ-45 for example only, and other suitable interfaces may be used for connection and communication in the actual application process. For example: j-tag, and the like. Moreover, the interfaces (the USB interface, the TYPE-C interface, the DP interface, and the HDMI interface) in fig. 3 are only exemplary, and these interfaces may be included, and in practical applications, the number of the interfaces may be multiple, some interface TYPEs may not be included, and other interface TYPEs not shown in the drawings may also be included, and the number and the TYPEs of the interfaces included are not limited in this application.
In this embodiment of the present invention, the test apparatus may include: the machine body is provided with a network interface, and the network interface on the machine body is used for connecting a network, so that the machine body can be communicated with a machine to be tested and a testing machine through the network; the interface access mechanism is arranged in the machine body, is connected with an interface of the machine to be tested and is used for accessing different interfaces of the machine to be tested; the interface detection mechanism is arranged in the machine body, is connected with the interface access mechanism and is used for testing the interface of the machine to be tested; and the main control chip is arranged in the machine body, is connected with the network interface, the interface access mechanism and the interface detection mechanism, and is used for receiving the instruction of the tester and sending the instruction to the interface access mechanism and the interface detection mechanism.
In this embodiment of the present invention, the interface access mechanism may include: the device comprises a DP access port, a USB access port, a TYPE-C access port and an HDMI access port which are used for accessing a machine to be tested, a USB switching module which is used for receiving the instruction of a main control chip and freely switching a plurality of USB interfaces in the USB access port to access the machine to be tested, and a TYPE-C switching module which is used for freely switching a plurality of TYPE-C interfaces in the TYPE-C access port to access the machine to be tested according to the instruction of the main control chip.
In this embodiment of the present invention, the interface test mechanism may include a signal decoding module and a data detection module. The signal decoding module is used for decoding the test signal and generating test data, and the data detection module is used for comparing the decoded test data with corresponding original data and sending a comparison result to the testing machine. .
Specifically, when the testing device performs performance testing on the USB interface or the TYPE-C interface of the current test of the machine to be tested according to the testing instruction, referring to fig. 4, the main control chip ((for example, a micro control Unit, MCU for short) is connected to the network interface RJ-45 for receiving an instruction issued by the testing machine), and the main control chip is further communicatively connected to the USB port switching module and the TYPE-C port module through an I2C (Inter-Integrated Circuit bus) interface to support the main control chip to transmit the instruction to the corresponding module through the IC 2.
Wherein, USB port switches module and TYPE-C port and switches the module and link to each other with corresponding USB access port and TYPE-C access port that are used for receiving USB signal and TYPE-C signal again respectively for the instruction of receiving the main control chip comes free switching a plurality of USB or TYPE-C interface connection machines that await measuring, detects with the different interface to the machine that awaits measuring. Therefore, when different interfaces of the machine to be tested need to be tested, the conventional operation of plugging and unplugging different interfaces through manual work can be effectively avoided, and the work test efficiency of testing the interface performance of the machine to be tested is remarkably improved.
Further, for better provide the machine that awaits measuring with TYPE-C signal, test equipment can also include the PD module, and the PD module links to each other with TYPE-C access port and TYPE-C interface switching module for analyze TYPE-C signal and provide the machine that awaits measuring. And the PD module can also be used for assisting the TYPE-C interface to charge the machine to be tested.
When the test equipment performs performance detection on the DP interface or the HDMI interface of the machine to be tested at this time according to the detection instruction, referring to fig. 5, the test equipment further includes an interface detection mechanism, the interface detection mechanism can acquire test signals under different resolutions sent by the machine to be tested through the interface access mechanism, then compare the test signals with corresponding original signals to generate comparison results, and finally send the comparison results and resolution identifiers corresponding to the comparison results to the test machine as test results through a TCP/IP protocol and an MQTT protocol.
Further, in order to better test a signal sent by a machine to be tested, the interface detection mechanism may further include a signal decoding module and a data detection module, wherein the signal decoding module may be a combination of an FPGA chip and an IT6535 chip and communicate with the main control chip through I2C, and the data detection module may receive an instruction of the MCU through a UART (serial port). Specifically, when the main control chip transmits the instruction of the tester to the signal decoding module, the signal decoding module correspondingly decodes the test signal acquired from the DP access port or the HDMI access port, and transmits the decoded data to the data detection module, and then the data detection module compares the test data with corresponding original data to generate a comparison result. It should be noted that, the present application is not limited to the composition of the signal decoding module, and the composition of the signal decoding module as long as the decoding of the test signals at different resolutions can be completed is within the scope of the present application.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. An interface performance testing method is characterized in that the method is applied to a testing machine, the testing machine, testing equipment and a machine to be tested are connected in the same preset communication line through a network, and the method comprises the following steps:
sending a connection instruction to a test device and a machine to be tested, wherein the connection instruction carries an interface identifier of a set interface of the current interface test, so that the test device is accessed to the set interface of the machine to be tested according to the interface identifier;
under the condition of receiving a signal which is sent by the test equipment and has successful access, sending an interface test instruction to the test equipment;
and receiving a test result of the test equipment responding to the test instruction and performing interface test on the set interface of the machine to be tested according to the interface identification.
2. The method according to claim 1, wherein, in the case where the interface identifier shows that the interface type of the setting interface is DP interface or HDMI interface,
the receiving a test result of the test equipment responding to the test instruction and performing interface test on the set interface of the machine to be tested according to the interface identification includes:
receiving a test result obtained by the machine to be tested by adopting the following operations:
sending a resolution identification and a test signal corresponding to the resolution identification to the test equipment in response to the test instruction;
receiving a comparison result obtained by comparing the test signal with the corresponding original signal by the test equipment according to the resolution identification;
the comparison result comprises a plurality of comparison results obtained by correspondingly testing the test equipment aiming at a plurality of resolutions supported by the machine to be tested;
and sending the comparison results and the resolution identifiers corresponding to each comparison result to the testing machine as test results.
3. The method according to claim 1, wherein in a case that the interface identifier shows that the interface TYPE of the set interface is a USB interface or a TYPE-C interface, the interface test instruction includes an interface access detection instruction and an interface removal detection instruction; correspondingly, the receiving a test result of the test device responding to the test instruction and performing the interface test on the set interface of the machine to be tested according to the interface identifier includes:
receiving a test result obtained by the machine to be tested by adopting the following operations:
responding to the interface access detection instruction to detect whether the set interface is successfully accessed, obtaining an interface access detection result, and sending the interface access detection result to the test machine;
under the condition that the test equipment removes the set interface, responding to the interface removal detection instruction to detect whether the set interface of the machine to be tested is successfully removed or not, and obtaining an interface removal detection result;
sending the interface removal detection result to the tester;
the interface removal detection instruction is an instruction sent to the machine to be tested by the tester when the test machine receives the interface access detection result and the interface access detection result shows that the set interface is successfully accessed;
the test result comprises the interface access detection result and the interface removal detection result.
4. An interface performance test method is applied to test equipment, and the method comprises the following steps:
receiving a connection instruction sent by a testing machine, wherein the connection instruction carries an interface identifier of a set interface of the current interface test;
accessing the set interface of the machine to be tested according to the interface identification;
sending a signal of successful access to the test machine;
and receiving a test instruction sent by the tester, responding to the test instruction, testing the set interface of the tester to be tested according to the interface identification, and sending a test result to the tester.
5. The method according to claim 4, wherein, in a case that the interface identifier shows that the interface type of the setting interface is a DP interface or an HDMI interface, the receiving a test instruction sent by the tester, testing the setting interface of the dut according to the interface identifier in response to the test instruction, and sending a test result to the tester includes:
receiving a resolution identification sent by the machine to be tested in response to the test instruction and a test signal corresponding to the plurality of resolution identifications;
comparing the test signal with a corresponding original signal according to the resolution identification to obtain a comparison result;
obtaining a plurality of comparison results aiming at a plurality of resolutions supported by the machine to be tested;
and sending the plurality of comparison results and the resolution mark corresponding to each pair of results to the testing machine.
6. The method of claim 4, wherein, in a case that the interface identifier shows that the interface TYPE of the setting interface is a USB interface or a TYPE-C interface, the receiving the test instruction sent by the tester, testing the setting interface of the dut according to the interface identifier in response to the test instruction, and sending a test result to the tester, includes:
receiving an interface access detection result of the machine to be detected responding to the interface access detection instruction and detecting the set interface, and sending the interface access detection result to the testing machine;
removing the setting interface in response to the interface removal detection instruction;
receiving an interface removal detection result of the machine to be tested, which responds to the removal detection instruction, detecting the set interface, and sending the interface removal detection result to the testing machine;
the interface removal detection instruction is an instruction sent to the machine to be tested by the tester when the tester receives the interface access detection result and the interface access detection result shows that the set interface is successfully accessed;
the test result comprises the interface access detection result and the interface removal detection result.
7. An interface performance testing system, the system comprising:
the testing machine is used for sending a connecting instruction and a testing instruction and receiving a testing result of interface testing of the set interface of the machine to be tested by testing equipment sent by the machine to be tested according to the testing instruction, wherein the connecting instruction comprises an interface identifier of the set interface of the current testing, and the testing instruction carries an interface testing requirement of the current interface testing;
the test equipment is used for connecting the corresponding interface of the machine to be tested according to the interface identification of the set interface; the test equipment is also used for testing the interface of the machine to be tested according to the test instruction of the test machine;
the machine to be tested receives a test result generated by the test equipment for detecting the set interface, and sends the test result to the test machine;
the testing machine, the testing equipment and the machine to be tested can be connected in the same preset communication line through a network.
8. The system of claim 7, the test device comprising:
the machine body is provided with a network interface and is used for communicating with the machine to be tested and the testing machine;
the interface access mechanism is arranged in the machine body, is connected with an interface of the machine to be tested and is used for enabling the test equipment to be accessed to different interfaces of the machine to be tested;
the interface detection mechanism is arranged in the machine body, is connected with the interface access mechanism and is used for testing the interface of the machine to be tested;
the main control chip is arranged in the machine body, connected with the network interface, the interface access mechanism and the interface detection mechanism and used for receiving the instruction of the tester; the main control chip is also used for controlling the interface access mechanism and the interface detection mechanism.
9. The system of claim 8, wherein the interface access mechanism comprises:
the DP access port is used for connecting a DP interface of the machine to be tested;
the HDMI access port is used for connecting an HDMI interface of the machine to be tested;
the USB access port is connected with the USB port switching module and the machine to be tested and comprises a plurality of USB interfaces;
the USB port switching module is connected with the USB access port and the main control chip and is used for freely switching a plurality of USB interfaces to access the machine to be tested according to the instruction of the main control chip;
the TYPE-C access port is connected with the TYPE-C port switching module and the machine to be tested and comprises a plurality of TYPE-C interfaces;
the TYPE-C port switches the module, with TYPE-C access port with the main control chip links to each other for according to main control chip's instruction realizes freely switching a plurality of TYPE-C interface access the machine that awaits measuring.
10. The system of claim 9, wherein the interface detection mechanism comprises:
the signal decoding module is connected with the interface access mechanism and the data detection module, is connected with the main control chip, and is used for receiving the test signal sent by the machine to be tested through the interface access mechanism and decoding the test signal to generate test data;
the data detection module is used for comparing the test data with the corresponding original data to generate a detection result and sending the detection result to the testing machine.
CN202111622375.8A 2021-12-28 2021-12-28 Interface performance test method and system Pending CN114490206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111622375.8A CN114490206A (en) 2021-12-28 2021-12-28 Interface performance test method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111622375.8A CN114490206A (en) 2021-12-28 2021-12-28 Interface performance test method and system

Publications (1)

Publication Number Publication Date
CN114490206A true CN114490206A (en) 2022-05-13

Family

ID=81496201

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111622375.8A Pending CN114490206A (en) 2021-12-28 2021-12-28 Interface performance test method and system

Country Status (1)

Country Link
CN (1) CN114490206A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115980554A (en) * 2023-02-17 2023-04-18 苏州天准科技股份有限公司 Chip testing method and electronic equipment thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115980554A (en) * 2023-02-17 2023-04-18 苏州天准科技股份有限公司 Chip testing method and electronic equipment thereof
CN115980554B (en) * 2023-02-17 2024-02-09 苏州天准科技股份有限公司 Chip testing method and electronic equipment thereof

Similar Documents

Publication Publication Date Title
EP2449391B1 (en) Programmable protocol generator
EP1881331B1 (en) Testing device, diagnostic program, and diagnostic method
CN109298266B (en) Test system, test method, test apparatus, and storage medium
JP2004152298A (en) Method and apparatus for enhancement of bus function
CN105120483B (en) Automatic testing method and system for compatibility of smart card and mobile terminal
CN101841732A (en) Testing method and testing device for multimedia electronic equipment
US7923991B2 (en) Signal testing apparatus
CN114338493A (en) NCSI test method, system, device and storage medium based on network protocol stack
CN110514925A (en) Test method and system and storage medium
CN114490206A (en) Interface performance test method and system
CN103414602A (en) Testing device and testing system for testing Dongle device
CN111447121B (en) Test method, device, equipment and storage medium of PCIE controller
CN113204456A (en) Test method, tool, device and equipment for VPP interface of server
CN111651308B (en) Method and device for acquiring debugging data of DP-HDMI chip and intelligent device
CN116340073B (en) Test method, device and system
CN112380078A (en) USB equipment communication test method and test device
CN115904849A (en) PCIE link signal test method, system, computer equipment and medium
CN114064373B (en) Test system, test method, test device and test equipment for USB platelet
CN115658398A (en) Hard disk interface channel testing device and testing method thereof
CN101459919B (en) Network selecting method and apparatus
CN112783701A (en) USB function test method, device and equipment of KVM system
CN112596983A (en) Monitoring method for connector in server
CN111858198A (en) Multi-scheme memory plugging test method, system, terminal and storage medium
CN106484579B (en) Test method and device for adapter
CN101071148A (en) Electronic device and method for realizing dynamic environmental stress screening

Legal Events

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