CN120692195A - A business function testing method, device, medium and product - Google Patents
A business function testing method, device, medium and productInfo
- Publication number
- CN120692195A CN120692195A CN202511196911.0A CN202511196911A CN120692195A CN 120692195 A CN120692195 A CN 120692195A CN 202511196911 A CN202511196911 A CN 202511196911A CN 120692195 A CN120692195 A CN 120692195A
- Authority
- CN
- China
- Prior art keywords
- test
- target test
- host
- target
- devices
- 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.)
- Granted
Links
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application discloses a service function test method, a device, a medium and a product, which relate to the technical field of computers, a plurality of test hosts and a plurality of test devices are connected with a controller, a target test host and at least one target test device are positioned in the same local area network, the problem that the test efficiency is reduced because the test hosts and the test devices are not connected in a communication way, which leads to the fact that the search process needs to traverse all the test devices is solved, the aim of directly carrying out communication connection through the target test host and the at least one target test device in one local area network is achieved, the search waiting range is reduced, the search parallel processing of the target test devices in each local area network is realized, and the technical effect of improving the test efficiency is achieved.
Description
Technical Field
The present application relates to the field of computer technologies, and in particular, to a service function testing method, device, medium, and product.
Background
When the functional test fixture tests the test equipment, a one-to-many (one test host and a plurality of test equipment) connection mode is generally adopted as a group, a plurality of groups of test fixtures are all connected with the central server, if one test equipment is tested, the test hosts belonging to the same group can be restarted after the other test equipment of the same group is tested, and the next function is tested. In the waiting process, the connected central server is required to search whether the test devices are the same group or not. As long as one test device completes the test, the central server needs to search whether the test device is the same group of test devices or not, or whether the test device corresponds to the same group of test devices, and the whole search process occupies more time, so that the test efficiency of the whole test function is reduced.
Therefore, how to improve the functional test efficiency is needed to be solved by the skilled person.
Disclosure of Invention
The application provides a service function test method, a device, a medium and a product, which at least solve the problems that in the related art, a plurality of test hosts and a plurality of test devices in a plurality of groups of test jigs are all connected with a central server, and the test hosts and the test devices are not connected with each other in a communication way, so that the search process needs to traverse all the test devices, and the test efficiency is reduced.
The application provides a service function testing method, which is applied to a service function testing device and comprises a controller, a plurality of testing hosts and a plurality of testing equipment, wherein the testing hosts and the testing equipment are connected with the controller, and target testing hosts of the testing hosts and at least one target testing equipment of the testing equipment are positioned in the same local area network, and the method comprises the following steps:
Determining a target test host and target test equipment in a current local area network;
when the control target test host finishes the function test on one of the target test devices, searching and waiting for the function test on other target test devices in the same local area network;
And restarting the target test host and the target test equipment in the same local area network after the test of the target test equipment in the current local area network is completed, and performing the next functional test.
The application provides a service function testing device, which comprises a controller, a plurality of testing hosts and a plurality of testing equipment, wherein the testing hosts are connected with the controller;
The plurality of test hosts and the plurality of test devices are connected with the controller, and the target test host of the plurality of test hosts and at least one target test device of the plurality of test devices are positioned in the same local area network;
the controller is used for executing the steps of the service function testing method.
The application also provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the steps of any service function testing method when being executed by a processor.
The application also provides a computer program product comprising a computer program which when executed by a processor implements the steps of any of the above-described business function testing methods.
According to the application, as the plurality of test hosts and the plurality of test devices in the plurality of groups of test jigs are connected with the central server in the conventional scheme, one test device is tested, and the test device can be restarted after the test devices in the same group are searched in all the test devices and wait for the test, more time is occupied in the search process, and the test efficiency is reduced. In the first aspect, the application is applied to the service function testing device, the plurality of test hosts and the plurality of test equipment are connected with the controller, the target test host and at least one target test equipment are positioned in the same local area network, and the target test host is directly connected with the at least one target test equipment in a communication way, so that the test is performed aiming at the target test host and the at least one target test equipment in the same local area network in the function testing process, only the test progress of the target test equipment in the local area network is required to be focused, and the searching waiting range is reduced. Compared with the conventional method that all test hosts and all test devices are required to be searched and waited through the central server when being connected with the central server, the method increases the traversal searching process of all the test devices, and only the traversal searching is required to be performed in the local area network. In a second aspect, the target test host among the plurality of test hosts and at least one target test device of the plurality of test devices are located in the same local area network, so that a flexible dividing process of the test host and the test devices is realized, and by isolating division in the local area network, the flexibility and diversity of the test can be improved under different functional tests. In the third aspect, since there are multiple local area networks, the controller can realize the function test in the multiple local area networks, and can also realize the search parallel processing in each local area network for the target test equipment in the respective local area network. And after the target test equipment in the current local area network is tested, restarting the target test host and the corresponding target test equipment, wherein the target test host and the corresponding target test equipment can only perform the searching process of one test equipment in the same time in the conventional scheme.
Therefore, the technical problem that the test efficiency is reduced because the test hosts and the test devices in the multiple groups of test jigs are all connected with the central server and the test hosts and the test devices are not connected in a communication way can be solved, the technical effect that the test efficiency is reduced because the test hosts and the test devices of the multiple test hosts in one local area network are directly connected in a communication way is achieved, the test progress of the target test devices in the local area network only needs to be focused, the search waiting range is reduced, the search parallel processing of the target test devices in the local area network is realized, and the test efficiency is improved.
Drawings
For a clearer description of embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described, it being apparent that the drawings in the following description are only some embodiments of the present application, and other drawings may be obtained according to the drawings without inventive effort for those skilled in the art.
Fig. 1 is a schematic diagram of a service function test scenario in a conventional technical scheme;
FIG. 2 is a schematic diagram of a single point interconnection between a test host and test equipment in a conventional solution;
FIG. 3 is a schematic diagram of a one-to-two interconnection between a test host and test equipment in a conventional solution;
fig. 4 is a flowchart of a service function testing method according to an embodiment of the present application;
fig. 5 is a structural diagram of a service function test device according to an embodiment of the present application;
FIG. 6 is a flowchart of another method for testing service functions according to an embodiment of the present application;
fig. 7 is a block diagram of another service function test device according to an embodiment of the present application;
Fig. 8 is a schematic diagram of communication interaction corresponding to two local area networks according to an embodiment of the present application;
fig. 9 is a schematic diagram of a pin of a switch port according to an embodiment of the present application;
fig. 10 is a block diagram of a service function test device according to an embodiment of the present application.
Detailed Description
The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. Based on the embodiments of the present application, all other embodiments obtained by a person of ordinary skill in the art without making any inventive effort are within the scope of the present application.
It should be noted that in the description of the present application, 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. The terms "first," "second," and the like in this specification are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The present application will be further described in detail below with reference to the drawings and detailed description for the purpose of enabling those skilled in the art to better understand the aspects of the present application.
The data processing capability of a kerbstone-data processing unit (Data Processing Unit, DPU) card serving as artificial intelligence becomes an important technology for improving competitiveness and grasping opportunities for enterprises, in the DPU design process, each factory integrates more and more functions into one device in order to reduce research and development cost, then different functions are realized by writing different software according to specific business scenes, and the maximization of hardware utilization is achieved.
In conventional server production, functional circuit testing (Functional Circuit Test, FCT) plays a crucial role as the last loop of quality control. In FCT testing of a DPU, engineers need to burn different firmware for different service scenarios to perform corresponding functional tests. The firmware or service scene switching can need to restart the system, so that the system and the server are required to restart or switch states for a plurality of times in the test process of a board card, the network card and the server cannot directly communicate with each other in the state switching process, after a certain device is abnormal, the whole process cannot be correctly executed, the program design development of a developer is more and more heavy, the production yield is lower and lower, and for the output of thousands of pieces per day, the yield of the FCT becomes the bottleneck in the production link, the yield is seriously influenced, in order to improve the output, a plurality of FCT test stations and FCT test jigs are prepared by a factory, the investment of each station is hundreds of thousands, and the burden of the factory is greatly increased.
The conventional technical scheme is that one network card corresponds to one server, so that the single-point interconnection wastes the resource utilization rate of the server in the process of testing the functional service, and communication interaction is performed in a manner of corresponding to a plurality of network cards in one server. Fig. 1 is a schematic diagram of a service function test scenario in a conventional technical solution, as shown in fig. 1, each network card (test device, replaced by device in fig. 1) and each server (test host, replaced by host in fig. 1) are connected to a central server. The network card is not connected with the server, and all communication is interacted through the central server. When the service function test is performed, a part of network cards correspond to the server A for performing the function test, and a part of network cards correspond to the server B for performing the function test. In the server a, the function test is performed on the multiple network cards at the same time, and the network card 1 is tested, the network card 2 is waited, the network card 3 is waited continuously, and the like, until all the network cards under the server a have tested the current function, the server can be restarted. However, in the process of testing and waiting, all network cards under all servers need to be traversed and searched, human intervention needs to be performed, collective waiting is performed, and in the process of waiting and setting, a central server needs to check which network card is and which server corresponds to which server to perform function control. The whole traversal searching process takes more time and even longer than the function test time, so that the overall test efficiency is reduced.
In the FCT detection scheme, the states of the test host and the test device are all single-point interconnection, fig. 2 is a schematic diagram of single-point interconnection between the test host and the test device in the conventional technical scheme, as shown in fig. 2, the state of the opposite end needs to be continuously confirmed in the test process to perform the next verification, and if a certain device has a starting abnormality, the manual intervention is needed. In order to improve the production efficiency, in a one-to-two test process, fig. 3 is a one-to-two interconnection schematic diagram between a test host and test equipment in a conventional technical scheme, as shown in fig. 3, the test host must be continuously tested under the condition that all DPU states are normal, and abnormal software and hardware of individual equipment can cause the test to be unable to be continuously performed, and under the condition that the test yield is generally low in the research and development stage, the test passing rate is very low and the productivity is very poor.
The service function testing method provided by the application can solve the technical problems.
The application provides a service function testing method, which is applied to a service function testing device and comprises a controller, a plurality of test hosts and a plurality of test equipment, wherein the plurality of test hosts and the plurality of test equipment are connected with the controller, and target test hosts of the plurality of test hosts and at least one target test equipment of the plurality of test equipment are positioned in the same local area network, and fig. 4 is a flow chart of the service function testing method provided by the embodiment of the application, as shown in fig. 4, the method comprises the following steps:
s11, determining a target test host and target test equipment in a current local area network;
S12, when the control target test host finishes the function test on one of the target test devices, searching and waiting for the function test of other target test devices in the same local area network;
S13, restarting the target test host and the target test equipment in the same local area network after the test of the target test equipment in the current local area network is completed, and performing the next functional test.
Specifically, the target test host and the target test device in the current local area network are determined, and it is to be noted that the step is that the target test host and the target test device which are in communication connection in the local area network are already defined on the basis of the local area network establishment. Firstly, after the device is started, the configuration information of the current device is firstly read, and mainly comprises a read control instruction, the number of test hosts and test equipment, and information of Input/Output Port (IO Port) equipment, and a local area network function. The bit status of the test host and test equipment needs to be detected to complete initialization.
In step S12, when performing the current functional test, the target test host may perform synchronous functional test on all target test devices directly connected to the communication device, if there is one target test device that has completed the functional test, that is, after the first target test device appears, it needs to check whether other target test devices also complete the functional test, where the check is just to check the progress of the target test device in the current local area network, and if there is a target test device that has not completed the current functional test, it needs to wait. The checking here needs to be judged by checking the device serial number of the completed target test device. And after the testing of all the target testing devices in the current local area network is finished, restarting the target testing host and the target testing devices to perform the next functional test. In the restarting process, the target test host needs to be restarted first, and after the restart is successful, the target test device is restarted.
According to the application, as the plurality of test hosts and the plurality of test devices in the plurality of groups of test jigs are connected with the central server in the conventional scheme, one test device is tested, and the test device can be restarted after the test devices in the same group are searched in all the test devices and wait for the test, more time is occupied in the search process, and the test efficiency is reduced. In the first aspect, the application is applied to the service function testing device, the plurality of test hosts and the plurality of test equipment are connected with the controller, the target test host and at least one target test equipment are positioned in the same local area network, and the target test host is directly connected with the at least one target test equipment in a communication way, so that the test is performed aiming at the target test host and the at least one target test equipment in the same local area network in the function testing process, only the test progress of the target test equipment in the local area network is required to be focused, and the searching waiting range is reduced. Compared with the conventional method that all test hosts and all test devices are required to be searched and waited through the central server when being connected with the central server, the method increases the traversal searching process of all the test devices, and only the traversal searching is required to be performed in the local area network. In a second aspect, the target test host among the plurality of test hosts and at least one target test device of the plurality of test devices are located in the same local area network, so that a flexible dividing process of the test host and the test devices is realized, and by isolating division in the local area network, the flexibility and diversity of the test can be improved under different functional tests. In the third aspect, since there are multiple local area networks, the controller can realize the function test in the multiple local area networks, and can also realize the search parallel processing in each local area network for the target test equipment in the respective local area network. And after the target test equipment in the current local area network is tested, restarting the target test host and the corresponding target test equipment, wherein the target test host and the corresponding target test equipment can only perform the searching process of one test equipment in the same time in the conventional scheme.
Therefore, the technical problem that the test efficiency is reduced because the test hosts and the test devices in the multiple groups of test jigs are all connected with the central server and the test hosts and the test devices are not connected in a communication way can be solved, the technical effect that the test efficiency is reduced because the test hosts and the test devices of the multiple test hosts in one local area network are directly connected in a communication way is achieved, the test progress of the target test devices in the local area network only needs to be focused, the search waiting range is reduced, the search parallel processing of the target test devices in the local area network is realized, and the test efficiency is improved.
In some embodiments, the port expander further comprises a port expander and a logic device, wherein the port expander comprises a plurality of switches, the switches are sequentially connected to realize communication between the switches, a plurality of test hosts and a plurality of test devices are connected with ports of the switches respectively corresponding to the switches, a target test host of the plurality of test hosts and at least one target test device of the plurality of test devices are connected with ports of the switches providing the same local area network, the logic device is connected with the plurality of test hosts and the plurality of test devices, the logic device is connected with a controller, and before the control target test host finishes functional test on one of the target test devices, the port expander further comprises the following components:
Determining equipment information of target test equipment and configuration information of a target test host;
Under the condition that the equipment information is matched with the configuration information, determining that the equipment information meets the test conditions, and issuing a starting instruction to a target test host to finish starting of the target test host;
And under the condition that the equipment information is not matched with the configuration information, determining that the equipment state of the equipment information of the target test host is abnormal, controlling the equipment state corresponding to the logic device to display the abnormality, and stopping the function test in the current local area network.
Specifically, before performing the functional test, it is necessary to check whether the device states of the target test host and the target test device are normal, and the functional test can be performed only under normal conditions. Device information and configuration information of the target test device are first determined, where the device information may be a performance parameter of the target test device. The configuration information is the configuration performance corresponding to the target test host, such as internet protocol address (Internet Protocol Address, IP) information, subnet mask, gateway, etc.
If the equipment information is matched with the configuration information, determining that the equipment information meets the test conditions, and sending a starting instruction to the target test host to start the target test host. If there is no match, then it is necessary to determine that the device state of the target test host is abnormal. At this time, the logic device needs to be controlled to display abnormality corresponding to the device state, specifically, the abnormality can be displayed through a light emitting Diode (LIGHT EMITTING Diode, LED), and the function test in the current local area network needs to be stopped so as to be convenient for the current replacement of the target test host.
Before performing the functional test, the initialization of the target test host and the satisfaction of the test conditions of the target test device are completed after the normal equipment state of the target test host are required to be ensured, so that the guarantee is provided for the subsequent functional test.
In some embodiments, after completing the powering up of the target test host, further comprising:
issuing a starting instruction to target test equipment, and starting the target test equipment;
In the starting-up process, if the equipment state of the target test equipment is abnormal, controlling the equipment state corresponding to the logic device to display abnormality, and stopping the function test in the current local area network;
if the equipment state of the target test equipment is normal, the method enters a step of controlling the target test host to complete functional test on one of the target test equipment.
Specifically, after the target test host is started, a start-up instruction needs to be issued to start up corresponding to the target test device. If the equipment state of the target test equipment is abnormal, the equipment state corresponding to the logic device needs to be controlled to display the abnormality, and the function test is stopped. If the equipment is in a normal state, performing subsequent functional tests.
After the target test host completes the startup, the startup test is performed on the target test equipment, so that the equipment state of the target test equipment is ensured to be subjected to the subsequent functional test under normal conditions.
In some embodiments, a partitioning process between a target test host of a plurality of test hosts and at least one target test device of the plurality of test devices, comprises:
determining a service function and/or a product type corresponding to the function test;
taking test equipment corresponding to the same service function and/or the same product type as target test equipment;
screening out the test host with highest comprehensive capacity from the multiple test hosts according to service functions and/or product types to serve as a target test host;
the target test equipment and the target test host are divided into the same local area network.
It should be noted that, the matching of the device information of the target test device and the configuration information of the target test host in the above embodiment corresponds to the adaptation situation between the target test device and the target test host. The current partitioning process is directed to partitioning within the same local area network to determine the number of target test devices within the local area network. The division basis can be the business capability, the product type, or the comprehensive consideration of the business capability and the product type.
The test equipment corresponding to the same service function and/or the same product type is used as target test equipment, on the basis, the test host with the highest comprehensive capacity is screened out based on the factors and used as the target test host, and the screening process is based on the screening in the test host set on which the target test equipment can be matched. And dividing the target test equipment and the target test host into the same local area network to finish the dividing process.
The division process provided by the embodiment adopts the service function and/or the product type as the basis for division, so that the flexible division processing of the test host and the test equipment is realized in the same local area network, and the decoupling function of the function test is improved.
In some embodiments, searching for and waiting for other target test devices within the same local area network to perform a functional test includes:
the method comprises the steps that functional test constraint conditions of a target test host and a plurality of target test devices in a current local area network are mapped in an instruction set mode in advance;
the method comprises the steps that the starting operation of a target test host in a current local area network is set and processed by a host starting instruction, and the host starting instruction is set with an instruction sequence number;
determining device serial numbers corresponding to the target test host and the plurality of target test devices respectively;
setting the dependency condition of the device serial numbers of a plurality of target test devices as the instruction serial number of a host starting instruction;
After a target test host is started through a host starting instruction, starting operation is performed on a plurality of target test devices according to the dependent conditions so as to perform current function test;
taking one of the target test devices as a first target test device and the other target test devices as second target test devices;
Receiving a device serial number fed back by the target test host to the second target test device under the condition that the current function test is completed in the second target test device;
And if the equipment serial numbers fed back by the second target test equipment are the same as the equipment serial numbers recorded by the second target test equipment, determining that the plurality of second target test equipment complete the current functional test.
Specifically, during the seek waiting period, various common cooperative instruction functions can be provided, and only the service itself needs to be concerned. And mapping the functional test constraint conditions of the target test host and the plurality of target test devices in the current local area network in an instruction set mode in advance. The functional test constraint here corresponds to that the target test device can be restarted after the target test host is restarted.
The starting operation of the target test host is to map the target test host with instructions, namely, the host starting instructions are set as instruction serial numbers. And determining the device serial numbers corresponding to the target test host and the target test devices respectively.
Setting the dependent conditions of the device serial numbers of the plurality of target test devices as the instruction serial numbers corresponding to the host starting instructions, and after the test host is started, starting the plurality of target test devices according to the dependent conditions corresponding to the instruction serial numbers to complete the current function test.
And when one second target test device completes the current function test, receiving the device serial numbers fed back to the second target test device, judging whether the device serial numbers are the same as the recorded device serial numbers, and if so, indicating that all the test devices of the second target test device complete the current function test. Table 1 is a table of instruction functions, as shown in Table 1, with the sequence being a numerical sequence of instructions, uniquely represented, providing a lookup for a subsequent dependency. Instruction Identifier (ID) is an Identifier of the execution, and the instruction is called in cooperation with the system work instruction ID. The instruction set is a combination of instructions in the Linux system, and can be a plurality of instructions. Dependency condition-by dependency setting the condition that must be met before the current instruction is executed, if the dependency value is not null, the instruction sequence in the dependency must be executed first before the instruction is executed. The device 1) represents a test host, and 2) represents a test device.
TABLE 1
Taking a test host and a test device as an example, for example, the test device finishes firmware upgrade, and needs to perform restarting operation, the service requires that all the test devices complete restarting operation, the test host can restart, and then the service test is performed after restarting is completed, at this time, the configuration instruction sequences (3) and (4) can be completed, and the test device must complete restarting (3) to continue the service test when the main device restarts (4).
The starting-up cooperative control mode and the function test mode between the test host and the test equipment provided by the embodiment are completed through the instruction function, so that the complexity of control operation is simplified, and meanwhile, the execution efficiency is improved.
In some embodiments, restarting the target test host and the target test device within the same local area network for a next functional test includes:
The method comprises the steps that a restarting operation of a target test host in a current local area network is processed by setting a host restarting instruction, and the host restarting instruction is set with an instruction sequence number;
Setting a restarting dependent condition of device serial numbers of a plurality of target test devices as an instruction serial number of a host restarting instruction;
After restarting the target test host through the host restarting instruction, restarting the plurality of target test devices according to the restarting dependent conditions so as to perform the next functional test.
As shown in table 1, in the case of completing the current functional test, a restart operation is performed on the target test host and the target test device before the next functional test is required, and the restart operation is performed by a host restart instruction setting process, such as a Power cycle. The host restart instruction is set to the instruction sequence number, such as the sequence number (7). Setting the restart dependent condition of the device serial numbers of the plurality of target test devices as the instruction serial number executed by the host computer in a restarting way, and depending on the serial number (7) in the secondary process. After restarting the target test host through the host restarting instruction, restarting the plurality of target test devices according to the restarting dependent conditions so as to perform the next functional test.
After the current function test is completed and before the next function is switched to be tested, the target test host and the target test equipment in the current local area network are required to be restarted, the restarting operation process is limited by restarting dependent conditions, only the service is concerned, and the execution efficiency is improved through instruction execution.
In some embodiments, a corresponding direct memory access configuration process at functional testing of a target test host and a plurality of target test devices includes:
setting registers of a plurality of target test devices according to a direct memory access configuration scene;
When the target test host is restarted, checking and processing the completion setting conditions of the registers of the plurality of target test devices according to a host restarting instruction of the target test host;
If the equipment state of the target test equipment is abnormal, skipping processing on the target test equipment with abnormal equipment state;
if the completion setting condition of the register of the target test equipment is not completed, setting preset time;
If the completion setting condition of the register of the target test equipment is still incomplete when the preset time is reached, determining that the equipment state of the target test equipment which is not completed and set when the preset time is reached is abnormal;
If the completion setting condition of the register of the target test equipment is not completed when the preset time is reached, the restart operation is executed on the target test host to complete the direct memory access configuration process.
Specifically, in the direct memory access scenario (Direct Memory Access Scenario, DMA) test involving a test device, the DPU needs to be informed of the setting of Field-Programmable gate array (Field-Programmable GATE ARRAY, FPGA) registers, that is, the setting process of registers of a plurality of target test devices according to the direct memory access configuration scenario. And then notifying the cooperative system that the host computer needs to be restarted, and checking the completion setting conditions of the registers of the plurality of target test devices according to a host computer restarting instruction of the target test host computer.
When the cooperative system receives a host restarting request, firstly checking whether all target test devices are set by the FPGA register, and if the target test devices which have failed abnormal test are not checked, namely, if the device state of the target test devices is abnormal, skipping the processing of the target test devices with abnormal device states.
If the target test equipment does not complete the setting, continuing to wait until the target test equipment, of which the timeout setting is not notified, tests abnormality, namely if the completion setting condition of the register of the target test equipment is still incomplete when the preset time is reached, determining that the equipment state of the target test equipment which is not complete the setting when the preset time is reached is abnormal.
If all the target test devices are set, the host starts restarting, and after restarting, the collaboration system notifies the target test devices to conduct DMA test, and the host configuration update state is completed.
The embodiment aims at the DMA scene test in the host configuration change, and after the test is completed, the data can be conveniently and rapidly transmitted in high efficiency, and the reliability of the system is enhanced. Through the test, the problem of the test equipment can be found in time, and the failure condition of the function test caused by the failure of the test equipment is avoided.
In some embodiments, the service function testing device further comprises a video image device and a network card device, the controller is connected with the video image device, the controller is connected with the network card device, and the method further comprises:
Collecting a first test log in the current function test process of a target test host;
collecting corresponding second test logs in the current function test process of the plurality of target test devices;
combining the first test log and the plurality of second test logs to obtain a third test log;
And displaying the third test log through the video image equipment, and uploading the third test log to the central server through the network card equipment.
Specifically, test logs are collected and combined in the current function test process of the target test host and the multiple target test devices, so that the test logs are displayed through the video image device and uploaded to the central server through the network card device.
Fig. 5 is a block diagram of a service function testing apparatus according to an embodiment of the present application, where, as shown in fig. 5, a device board uses a common network cable to complete interconnection between devices through an Rj45 network port commonly existing in a graphics processing unit (Graphics Processing Unit, GPU)/DPU/test host. For the equipment board easy to damage, the decoupling module design is adopted, so that the maintenance complexity and the maintenance cost are reduced. The testing device displays the progress of each device in real time through Video graphic array (Video GRAPHICS ARRAY, VGA) equipment, is convenient for a tester to observe, integrates the test log process through the network port of a virtual local area network (Virtual Local Area Network, VLAN), and uploads the test log process to a central server.
Fig. 6 is a flowchart of another service function testing method according to an embodiment of the present application, as shown in fig. 6, the steps are as follows:
1. After the collaborative system is started, the configuration information of the current DPU test machine is firstly read, including the reading control instruction, the number of target test hosts and target test equipment and the corresponding IO port equipment information, and meanwhile, all the target test equipment and the target test hosts are interconnected through the VLAN function of the switch, the in-place state of each equipment is checked according to the number, and the indicator lamp is lightened to finish initialization.
2. And the cooperative system reads the information of the target test host and the target test equipment, establishes connection between the target test host and the target test equipment, and displays the link state of each equipment on a display.
3. And the collaboration system links with the central server system to confirm the equipment information of each target test equipment and ensure that the current equipment meets the normal test conditions. And the cooperative system issues a starting instruction to the target test host to finish starting the target test host, and issues the instruction to inform the target test equipment to start after starting, if the starting is abnormal, the LED lamp corresponding to the corresponding equipment is lightened, the display displays alarm information, the current board card test failure is represented, and the flow behind the equipment corresponding to the port is not detected after the failure.
4. And issuing instructions, namely carrying out information inquiry or state setting on the target test host through the out-of-band according to the diagnosis requirements by the cooperative system, and carrying out information inquiry or state setting on all the target test devices in the normal state.
5. And after the firmware updating is completed, a wireless access controller (Access Controller, AC) instruction is issued to the corresponding target test equipment to restart until the restarting is completed, the collaborative system needs to check that all the equipment to be restarted is completed, and issues an instruction to the target test host to restart under the condition of normal state, so that the initialization operation of the server side equipment is completed.
6. And when the DMA scene test of the DPU is involved, the cooperative system firstly informs the DPU to set the FPGA register, then informs the cooperative system of the need of restarting the host, when the cooperative system receives a host restarting request, firstly checks whether all target test devices complete the FPGA register setting, the target test devices which have failed abnormal test are not checked any more, if the target test devices do not complete the setting, the cooperative system continues waiting until the target test devices which are not informed of the overtime setting are abnormal in test, if all the target test devices complete the setting, the host starts restarting, and after the restarting is completed, the cooperative system informs all the target test devices to perform the DMA test, and the host configuration updating state is completed.
7. And the cooperative system repeatedly executes the operations of the steps 4-6 on different service scenes according to the setting of the user until all the instructions are executed.
8. The collaboration system collects test logs of the target test host, then queries logs of each target test device in sequence, finally merges the logs into a completed test log, uploads the completed test log as a final test conclusion of the test device to the server system, and then outputs a test result through the VGA, and a high-speed operator tests the state of each board card.
According to the method, the system and the device, the test logs corresponding to the target test host and the target test device are recorded, the test logs are displayed through the video image device, and are uploaded to the central server through the network card device, so that the test personnel can observe and integrate the test logs conveniently, and the maintenance complexity and the maintenance cost are reduced.
Further, the application also provides a service function testing device, fig. 7 is a block diagram of another service function testing device provided by the embodiment of the application, as shown in fig. 7, the device includes a controller 1, a plurality of test hosts and a plurality of test devices;
The plurality of test hosts and the plurality of test devices are connected with the controller 1, and the target test host of the plurality of test hosts and at least one target test device of the plurality of test devices are positioned in the same local area network;
And the controller 1 is used for controlling the target test host in the current local area network to search and wait for the other target test devices in the same local area network to finish the function test when the target test host in the current local area network finishes the function test on one of the target test devices in the same local area network, and restarting the target test host and the target test devices in the same local area network to perform the next function test.
Specifically, a controller is connected to a plurality of test hosts and a plurality of test devices, where the number of the test hosts and the test devices connected to each other may be related to the number of ports that the controller can provide, the controller may directly connect the test hosts and the test devices, and may further add a port expander to reduce the number of occupied ports of the controller so as to occupy one port of the controller, where the test hosts and the test devices are connected in such a manner that they are both connected to the port expander. The present invention is not limited to this, and may be set according to actual conditions.
The target test hosts of the plurality of test hosts and at least one target test device of the plurality of test devices are located in the same local area network, and it is understood that, in the same local area network, the target test hosts and the at least one target test device support ethernet communication and the like, so that direct communication connection can be realized, that is, the at least one target test device and the target test host are directly in communication connection. In contrast to the conventional solutions, the two are not connected directly, but are connected indirectly via a central server.
It should be noted that, there may be multiple local area networks between multiple test hosts and multiple test devices, where the test hosts and the test devices between the local area networks are not occupied at the same time, and if one local area network occupies the test host or the test device, the test host or the test device will not be invoked in a subsequent local area network, that is, one test host and one test device can only be in one local area network. The plurality of test hosts and the plurality of test devices are not limited to the division corresponding to the local area network, and may be according to the same service or similar services, or the test devices under the same product, etc. The selection of the test host can correspond to the test host of which performance is required under the service or the product, the selection process is not limited, and the selection process can be set according to actual conditions.
Of course, the flexible division is not fixed after the first division, but after a batch of functional tests are finished, the flexible division can be further expanded according to the current service or product requirements, which is not limited herein.
Regarding the expansion aspects of the test host and the test device, the expansion is arbitrary as long as the number of ports can be supported. Of course, it is also necessary to properly expand according to the overall performance resource considerations of the test apparatus.
In the same local area network, there is a need for a target test host and at least one target test device to facilitate parallel service function testing in different local area networks.
The controller is used for issuing a control instruction to control a target test host in the current local area network to perform functional test on a plurality of target test devices in the same local area network, after one target test device is tested, whether other target test devices are still present or not is checked, if so, the test is needed to wait, and the check only needs to check the test devices in the current local area network, but does not need to check the information such as serial numbers and the like corresponding to the test devices in all local area networks in the same time in the conventional technical scheme so as to identify the test condition of the specific test device. In the searching process, searching and waiting are performed in a plurality of local area networks at the same time, and compared with the local area networks, the searching range is reduced, and meanwhile, the searching process and searching time are simplified.
If all the target test devices in the same local area network complete the function test, the target test host and the target test devices corresponding to the same genus need to be restarted to perform the next function test.
The service function testing device provided by the application has the same beneficial effects as the service function testing method.
In some embodiments, it is contemplated that the controller may not only issue instructions for service function testing, but may also involve monitoring of device status, transmission interactions, etc., with limited ports. If the ports of the controller are all applied to the test host and the test equipment for testing the service function, the number of the ports is tense, and other normal operations cannot be completed. Thus, also the port expander 2;
The plurality of test hosts and the plurality of test devices are connected with the port expander 2;
The controller 1 is connected to a port expander 2.
Specifically, the plurality of test hosts and the plurality of test devices are connected to a port extender, where the port extender may be an integrated circuit, or may be a network interface card, a serial port, or a network device of a switch, which is not limited herein. The port expander is connected with the controller and used for receiving the instruction issued by the controller and realizing the transmission of the instruction control of the test host and the test equipment in different subsequent local area networks.
The connection relation of the port expander provided by the embodiment saves the port burden of the controller under the condition that the controller can normally complete other operation conditions of non-industry function service test, realizes expansion and management of the port, and realizes one-to-many connection relation of the controller.
In some embodiments, the port expander comprises a plurality of switches, wherein the switches are sequentially connected to realize communication between the switches;
the plurality of test hosts and the plurality of test devices are connected with ports of the corresponding switches respectively, and the target test host of the plurality of test hosts and at least one target test device of the plurality of test devices are connected with the ports of the switches providing the same local area network;
the switches are all connected with the controller.
As shown in fig. 7, the port expander includes a plurality of switches, considering that the port expander expands not only the number of ports but also the network ports and implements data exchange. The switches are connected through respective internal ports, that is, in a sequential connection relationship.
Fig. 8 is a schematic diagram of communication interaction corresponding to two local area networks provided in an embodiment of the present application, where, as shown in fig. 8, a plurality of test hosts and a plurality of test devices are connected to ports of respective corresponding switches, and one switch provides a local area network function, that is, one switch connects a target test host and at least one target test device. The switches are all connected with the controller.
Taking fig. 8 as an example, the testing device can support multiple testing devices to control, and two products in fig. 8 each need one testing host, and each testing host supports 4 testing devices to test, and the testing devices are simultaneously connected to the testing device to test. One switch may provide 7 ports, where respective internal ports are interconnected, 6 ports are provided for the outside, and corresponding VLANs are automatically set for ports according to the number of test traffic in order to prevent transmission information between the respective devices from affecting each other.
The port expander provided in this embodiment includes a switch function, and directly supports VLAN configuration. The network administrator can accomplish port expansion and VLAN partitioning on one device without having to additionally configure a separate switch. Configuration and monitoring can be performed through a unified management interface. The administrator can easily view and manage the status, traffic statistics, and VLAN configuration of all ports.
In some embodiments, logic devices are also included;
The logic device 3 is connected with a plurality of test hosts and a plurality of test devices and is used for determining the device states of the corresponding connected test hosts or test devices;
The logic device 3 is connected to the controller 1.
The logic device may be a complex programmable logic device (Complex Programmable Logic Device, CPLD) or other devices, and is not limited herein. The logic device is connected with the test host and the test equipment and is used for determining the equipment states of the respective equipment. The device is mainly corresponding to the in-place detection of the equipment and the LED control corresponding to the equipment state, and is convenient for intuitively displaying the test results of the equipment.
The logic device provided by the embodiment monitors the state of the equipment in real time, and timely discovers whether the equipment is in place, so that system operation interruption caused by equipment deficiency or faults is effectively avoided, and the influence of the faults on the function test is reduced. Meanwhile, the device state change can be responded quickly.
In some embodiments, the ports for the plurality of test hosts, the plurality of test devices, and the corresponding switches include power pins, switch pins, and status pins;
the power supply pin of the switch is also connected with the power supply pin of the controller;
the status pins of the logic device are connected to the status pins of the switch.
Specifically, the ports are used for connecting external devices or internal components to realize data transmission and communication, and a plurality of pin settings exist in one port, and each pin is responsible for transmitting specific signals. Pins are the physical connection points of the ports for transmitting electrical signals. Pins are metal contact points, each pin corresponding to a different function. Fig. 9 is a schematic diagram of pins of a switch port according to an embodiment of the present application, as shown in fig. 9, including a Data/Command (DC) power pin, a switch pin, and a status pin. As seen in connection with fig. 7, the power pins of the switch are also connected to the power pins of the controller, and the status pins of the logic device are connected to the status pins of the switch.
The peripheral interface is most easily damaged in factory production, maintainability is provided for improving the durability of equipment, an equipment board is decoupled and developed, the equipment board is used for carrying out 3.3V power supply of a power pin through a controller and completing network information transmission through a Media-related interface (Media-DEPENDENT INTERFACE, MDI), in order to prevent the condition that an operator cannot install the equipment in place, an in-place detection signal is set, alarm information is generated if equipment information of the equipment is inconsistent with equipment information of configuration, the equipment board is provided with R, B LEDs and G3 LEDs which are used for representing different states, wherein B represents normal operation of the equipment, R represents abnormal testing, G represents complete testing of the equipment, and the setting of the LEDs can greatly facilitate the operator to know the testing state of each equipment.
The connection relation corresponding to different pins in the port provided by the embodiment meets the functions of power supply, communication of the switch and equipment in-place detection, and saves the occupied number of the port while realizing the functional diversity of the port.
In some embodiments, the system further comprises a video image device and a network card device;
the controller is connected with the video image equipment and is used for displaying a test log and a test progress of the functional test;
the controller is connected with the network card equipment and used for carrying out interactive processing with the central server through the network card equipment.
In fig. 7, regarding that the controller is further configured to connect to a video image device and a network card device, where the video image device is a VGA device, and displays a specific test log and different test schedules, so that a user can check the test log conveniently. The network card device interacts the test device with the central server in a network mode.
The connection relation among the video image equipment, the network card equipment and the controller provided by the embodiment ensures that the functional test is successfully completed, and simultaneously facilitates the user to check and interact with the central server, thereby improving the functional diversity of the testing device.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment.
The embodiment of the application also provides a service function testing device, fig. 10 is a structural diagram of the service function testing device provided by the embodiment of the application, as shown in fig. 10, the device includes:
a determining module 11, configured to determine a target test host and a target test device in a current local area network;
The searching module 12 is configured to search and wait for the other target test devices in the same lan to perform a functional test when the control target test host completes the functional test on one of the target test devices;
And the restarting module 13 is used for restarting the target test host and the target test equipment in the same local area network to perform the next functional test after the test of the target test equipment in the current local area network is completed.
The description of the features in the embodiment corresponding to the service function test device may refer to the related description of the embodiment corresponding to the service function test method, which is not described in detail herein.
The embodiment of the application also provides an electronic device comprising a memory in which a computer program is stored and a processor arranged to run the computer program to perform the steps of any of the above-described business function testing method embodiments.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is configured to perform the steps of any of the above-described business function testing method embodiments when run.
In an exemplary embodiment, the computer readable storage medium may include, but is not limited to, a U disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a removable hard disk, a magnetic disk, or an optical disk, etc. various media in which a computer program may be stored.
The embodiment of the application also provides a computer program product, which comprises a computer program, and the computer program realizes the steps in any of the service function testing method embodiments when being executed by a processor.
Embodiments of the present application also provide another computer program product comprising a non-volatile computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of any of the above-described business function testing method embodiments.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative elements and steps are described above generally in terms of functionality in order to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The service function testing device, the service function testing method, the service function testing medium and the service function testing product provided by the application are described in detail. The principles and embodiments of the present application have been described herein with reference to specific examples, the description of which is intended only to facilitate an understanding of the method of the present application and its core ideas. It should be noted that it will be apparent to those skilled in the art that the present application may be modified and practiced without departing from the spirit of the present application.
Claims (15)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202511196911.0A CN120692195B (en) | 2025-08-26 | 2025-08-26 | A business function testing method, device, medium and product |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202511196911.0A CN120692195B (en) | 2025-08-26 | 2025-08-26 | A business function testing method, device, medium and product |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN120692195A true CN120692195A (en) | 2025-09-23 |
| CN120692195B CN120692195B (en) | 2025-10-28 |
Family
ID=97078872
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202511196911.0A Active CN120692195B (en) | 2025-08-26 | 2025-08-26 | A business function testing method, device, medium and product |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN120692195B (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120929320A (en) * | 2025-10-15 | 2025-11-11 | 苏州元脑智能科技有限公司 | Memory test system |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102404162A (en) * | 2010-09-17 | 2012-04-04 | 鸿富锦精密工业(深圳)有限公司 | Test system and method for network wakeup function of computer |
| US20170013456A1 (en) * | 2015-07-10 | 2017-01-12 | Xiaomi Inc. | Method and device for testing a terminal |
| CN115509888A (en) * | 2021-06-23 | 2022-12-23 | 神讯电脑(昆山)有限公司 | A test method, device, storage medium and electronic equipment |
| CN115842759A (en) * | 2021-09-18 | 2023-03-24 | 浙江宇视科技有限公司 | Parallel test system, method, electronic equipment and storage medium |
| CN117370097A (en) * | 2023-10-27 | 2024-01-09 | 南通研祥智能科技有限公司 | Automatic test method and system for server |
| CN119851745A (en) * | 2025-03-18 | 2025-04-18 | 芯梦达半导体科技(济南)有限公司 | Automatic hard disk testing device and method for multichannel expansion |
-
2025
- 2025-08-26 CN CN202511196911.0A patent/CN120692195B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102404162A (en) * | 2010-09-17 | 2012-04-04 | 鸿富锦精密工业(深圳)有限公司 | Test system and method for network wakeup function of computer |
| US20170013456A1 (en) * | 2015-07-10 | 2017-01-12 | Xiaomi Inc. | Method and device for testing a terminal |
| CN115509888A (en) * | 2021-06-23 | 2022-12-23 | 神讯电脑(昆山)有限公司 | A test method, device, storage medium and electronic equipment |
| CN115842759A (en) * | 2021-09-18 | 2023-03-24 | 浙江宇视科技有限公司 | Parallel test system, method, electronic equipment and storage medium |
| CN117370097A (en) * | 2023-10-27 | 2024-01-09 | 南通研祥智能科技有限公司 | Automatic test method and system for server |
| CN119851745A (en) * | 2025-03-18 | 2025-04-18 | 芯梦达半导体科技(济南)有限公司 | Automatic hard disk testing device and method for multichannel expansion |
Non-Patent Citations (1)
| Title |
|---|
| 苗东亮;赵鹏;付俊;张耀东: "一种多接口测试系统设计", 电子世界, no. 24, 23 December 2017 (2017-12-23) * |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN120929320A (en) * | 2025-10-15 | 2025-11-11 | 苏州元脑智能科技有限公司 | Memory test system |
Also Published As
| Publication number | Publication date |
|---|---|
| CN120692195B (en) | 2025-10-28 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109587005B (en) | Connection detection method and device, computer equipment and readable storage medium | |
| CN120692195B (en) | A business function testing method, device, medium and product | |
| US8046627B2 (en) | Server failover control method and apparatus and computer system group | |
| CN109597399B (en) | Information control platform for informatization rocket launching | |
| JP4148931B2 (en) | Network system, monitoring server, and monitoring server program | |
| CN112436966B (en) | OpenStack platform-based cloud physical host network card binding configuration method and system | |
| US10206092B1 (en) | Automatic discovery | |
| CN114546747B (en) | BMC cold restarting pressure test system and method | |
| CN111988169B (en) | Method, system, equipment and medium for cleaning and repairing abnormal disk of cloud platform | |
| US10897502B2 (en) | Systems and methods for device migration | |
| CN109189409A (en) | Programming system, programming system server and its parallel programming management method and device | |
| CN101572724A (en) | Software version management system | |
| CN109189421A (en) | Burning management method, device and programming system based on programming system server | |
| US10997042B2 (en) | Systems and methods for configuration management | |
| CN112671586B (en) | Automatic migration and guarantee method and device for service configuration | |
| CN112463494B (en) | Large-batch node AC (alternating current) cycle test method based on intelligent PDU (protocol data Unit) | |
| CN111431749B (en) | FPGA cloud server management platform and use method thereof | |
| CN111400107B (en) | Self-starting recovery system and method for database multi-master cluster | |
| CN113722211A (en) | BMC (baseboard management controller) debugging method, device and system and embedded equipment | |
| CN118838756A (en) | Remote data backup method and device | |
| RU2678488C1 (en) | Method of configuring communication device and communication device | |
| CN118069472A (en) | A display information generation method, hard disk and BMC | |
| CN117130607A (en) | Component management method and device, nonvolatile storage medium and electronic equipment | |
| CN118869469A (en) | Method, device, server and storage medium for automatic deployment of server | |
| CN120892336A (en) | Automated testing methods and systems |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant |