CN115507050A - Fan board testing system and method - Google Patents

Fan board testing system and method Download PDF

Info

Publication number
CN115507050A
CN115507050A CN202210987161.9A CN202210987161A CN115507050A CN 115507050 A CN115507050 A CN 115507050A CN 202210987161 A CN202210987161 A CN 202210987161A CN 115507050 A CN115507050 A CN 115507050A
Authority
CN
China
Prior art keywords
fan board
tested
test
fan
module
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
CN202210987161.9A
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.)
Traffic Control Technology TCT Co Ltd
Original Assignee
Traffic Control Technology TCT 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 Traffic Control Technology TCT Co Ltd filed Critical Traffic Control Technology TCT Co Ltd
Priority to CN202210987161.9A priority Critical patent/CN115507050A/en
Publication of CN115507050A publication Critical patent/CN115507050A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D25/00Pumping installations or systems
    • F04D25/02Units comprising pumps and their driving means
    • F04D25/08Units comprising pumps and their driving means the working fluid being air, e.g. for ventilation
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D27/00Control, e.g. regulation, of pumps, pumping installations or pumping systems specially adapted for elastic fluids
    • F04D27/001Testing thereof; Determination or simulation of flow characteristics; Stall or surge detection, e.g. condition monitoring
    • FMECHANICAL ENGINEERING; LIGHTING; HEATING; WEAPONS; BLASTING
    • F04POSITIVE - DISPLACEMENT MACHINES FOR LIQUIDS; PUMPS FOR LIQUIDS OR ELASTIC FLUIDS
    • F04DNON-POSITIVE-DISPLACEMENT PUMPS
    • F04D29/00Details, component parts, or accessories
    • F04D29/002Details, component parts, or accessories especially adapted for elastic fluid pumps

Abstract

The invention provides a fan board testing system and a method, which relate to the technical field of automatic testing, and the system comprises: the system comprises an upper computer, a serial server and at least one tool plug-in box; the upper computer is connected with a serial server, and the serial server is connected with at least one tool inserting box; each tool inserting box is connected with at least one fan board to be tested through a hard wire; each tool inserting box comprises a virtualization register corresponding to each fan plate to be tested; the upper computer sends a test control instruction to a virtualization register corresponding to each fan board to be tested through a serial server; the virtualization register performs test control on each fan board to be tested according to the test control instruction, and collects switching value data and/or analog data generated by each fan board to be tested in the test control process; and the upper computer acquires the test result of the fan board to be tested according to the switching value data and/or the analog quantity data. The invention realizes the automatic batch test of various fan boards to be tested and has strong expandability.

Description

Fan board testing system and method
Technical Field
The invention relates to the technical field of automatic testing, in particular to a fan board testing system and method.
Background
In the prior art, in order to reduce the temperature inside the server and ensure the stable operation of the server, a fan is usually used to control the temperature inside the server, specifically, the fan plate monitors the temperature inside the server, and then the fan is controlled according to the temperature, so as to achieve the effect of controlling the temperature inside the server. In order to ensure the normal operation of the fan board, the fan board needs to be tested before being connected into the server.
In the prior art, the fan plate needs to be installed on the test backboard, and the test unit on the test backboard tests the fan plate. Therefore, the test of the fan board is completely supported on the test backboard, the area of the test backboard is limited, and the backboard inserting slot position is fixed, so that the number of the fan boards which can be tested at one time is small, and the expansion difficulty is high.
Disclosure of Invention
The invention provides a fan board testing system and method, which are used for solving the defects that in the prior art, the fan board testing is completely supported by a testing backboard, the area of the testing backboard is limited, and the inserting slot position of the backboard is fixed, so that the quantity of fan boards which can be tested at one time is small, and the expansion difficulty is large, realizing the batch testing of a plurality of fan boards, and improving the expandability of the fan board testing.
The invention provides a fan board test system, comprising: the system comprises an upper computer, a serial server and at least one tool plug-in box;
the upper computer is connected with the serial server, and the serial server is connected with the at least one tool inserting box; each tool inserting box is connected with at least one fan board to be tested through a hard wire;
each tool inserting box comprises a virtualization register corresponding to each fan board to be tested;
the upper computer is used for sending a test control instruction to the virtualization register corresponding to each fan board to be tested through the serial server;
the virtualization register is used for carrying out test control on each fan board to be tested according to the test control instruction and collecting switching value data and/or analog quantity data generated by each fan board to be tested in the test control process;
the upper computer is further used for acquiring switching value data and/or analog data acquired by the virtualization register and acquiring a test result of each fan board to be tested according to the switching value data and/or the analog data.
According to the fan board testing system provided by the invention, the upper computer comprises a testing module and a host computer module;
the test module comprises a test component of each fan board to be tested;
the testing component is configured in a tab corresponding to each fan board to be tested in the host module;
the test assembly is to:
under the control of the host module, sending a test control instruction to a virtualization register corresponding to each fan board to be tested according to the test item and preset test logic of each fan board to be tested;
acquiring switching value data and/or analog data acquired by the virtualization register, acquiring a test result of each fan board to be tested according to the switching value data and/or the analog data, and displaying the test result on a visual interface of the upper computer.
According to the fan board testing system provided by the invention, each testing component asynchronously and simultaneously tests the fan board to be tested corresponding to each testing component through the thread corresponding to each testing component.
According to the fan board test system provided by the invention, the test assembly is further used for:
under the condition of receiving an aging test instruction, acquiring the total test times according to the aging test instruction;
under the control of the host module, testing the fan board to be tested for multiple times according to the test item and preset test logic of each fan board to be tested until the accumulated test times reach the total test times;
and acquiring an aging test result of the fan board to be tested according to the test results of multiple rounds.
According to the fan board testing system provided by the invention, the upper computer further comprises an expansion module;
the host module is connected with the expansion module;
the expansion module is used for providing a fan board expansion interface, analyzing the fan board expansion instruction under the condition of receiving the fan board expansion instruction, obtaining a first identifier of the fan board to be expanded, and sending the first identifier to the host module;
the host module is further used for building a testing assembly of the fan plate to be expanded in the testing module according to the first identification, and establishing connection with a tool insert box connected with the fan plate to be expanded through the serial server.
According to the fan board testing system provided by the invention, the upper computer further comprises a fan board selecting module, a log module and a reporting module;
the host module is respectively connected with the fan plate selection module, the log module and the report module;
the fan board selection module is used for providing a fan board selection interface, analyzing the fan board selection instruction under the condition of receiving the fan board selection instruction to obtain a second identifier of at least one fan board to be tested, and sending the second identifier to the host module;
the host computer module is further used for carrying out asynchronous batch test on the at least one fan board to be tested according to the second identification, and under the condition that the test of any fan board to be tested is completed, the log module is triggered to output the test log of any fan board to be tested according to the second identification, and/or the report module is triggered to output the test report of any fan board to be tested according to the second identification.
According to the fan board testing system provided by the invention, the upper computer further comprises an event subscription module;
the host module is connected with the event subscription module;
the host computer module is further used for triggering the event subscription module to send the test result of any fan board to be tested to an event subscriber corresponding to any fan board to be tested under the condition that the test result of any fan board to be tested is obtained.
According to the fan board testing system provided by the invention, the upper computer is further used for acquiring the switching value data and/or the analog value data acquired by the virtualization register from the serial server by adopting an event triggering method.
According to the fan board testing system provided by the invention, the fan board to be tested comprises a plurality of control channels;
the control channels are connected with the same fan;
the control channels are tested based on the same fan.
The invention also provides a fan board testing method based on the fan board testing system, which comprises the following steps:
under the condition of receiving a fan board selection instruction, analyzing the fan board selection instruction to obtain a second identifier of at least one fan board to be tested;
according to the second identification, synchronously sending a test control instruction to a virtualization register corresponding to each fan board to be tested, so that the virtualization register can carry out asynchronous test control on each fan board to be tested according to the test control instruction, and collecting switching value data and/or analog value data generated by each fan board to be tested in the test control process;
and acquiring switching value data and/or analog data acquired by the virtualization register, and acquiring a test result of the at least one fan board to be tested according to the switching value data and/or the analog data.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program which is stored on the memory and can run on the processor, wherein the processor executes the program to realize the fan board testing method.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements a fan plate testing method as described in any one of the above.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements any of the fan board testing methods described above.
The invention provides a fan board testing system and a fan board testing method, wherein an upper computer is connected with at least one tool insert box through a serial server, each tool insert box is connected with at least one fan board to be tested through a hard wire, so that direct connection communication between the upper computer and a plurality of fan boards to be tested is realized, a testing control instruction is sent to a virtualization register corresponding to each fan board to be tested through the serial server, so that testing control is carried out on each fan board to be tested, a testing result of each fan board to be tested is obtained according to switching quantity data and/or analog quantity data acquired by the virtualization register, so that automatic batch testing of various fan boards to be tested is realized, and when the fan boards are required to be expanded, expansion of the fan boards can be conveniently and efficiently realized only by connecting the fan boards to be expanded with the tool insert boxes through the hard wires without depending on a testing backboard.
Drawings
In order to more clearly illustrate the present invention or the technical solutions in the prior art, the drawings used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram of a fan board testing system provided by the present invention;
FIG. 2 is a schematic flow chart of a fan board testing method provided by the present invention;
fig. 3 is a schematic structural diagram of an electronic device provided in the present invention.
Reference numerals:
101: an upper computer; 102: a serial server; 103: inserting a box in a tool; 104: a fan board to be tested; 105: a fan.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
In the description of the present embodiments, it should be noted that the terms "first", "second", and "third" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance.
In the description of the present embodiment, it should be noted that, unless explicitly stated or limited otherwise, the terms "connected" and "connected" should be interpreted broadly, and may be, for example, a fixed connection, a detachable connection, or an integral connection; can be mechanically or electrically connected; may be directly connected or indirectly connected through an intermediate. The specific meanings of the above terms in the present embodiment can be understood in specific cases by those of ordinary skill in the art.
The fan board testing system of the present invention is described below with reference to fig. 1, and is used for implementing automated testing of fan boards in electronic devices such as computers and servers. As shown in fig. 1, the system comprises an upper computer 101, a serial server 102 and at least one tool insert box 103;
the upper computer 101 is connected with the serial server 102, and the serial server 102 is connected with the at least one tool insertion box 103; each tool insert box 103 is in hard-line connection with at least one fan board 104 to be tested;
each tool insert box 103 comprises a virtualized register corresponding to each fan board to be tested 104;
the upper computer 101 is configured to send a test control instruction to the virtualization register corresponding to each fan board to be tested 104 through the serial server 102;
the virtualization register is used for performing test control on each fan board 104 to be tested according to the test control instruction, and acquiring switching value data and/or analog value data generated by each fan board 104 to be tested in the test control process;
the upper computer 101 is further configured to obtain switching value data and/or analog value data acquired by the virtualization register, and obtain a test result of each fan board 104 to be tested according to the switching value data and/or the analog value data.
The upper Computer 101 may be a network frame 4.5 (a cross-platform all-around repair tool) framework that uses a winform (a client application program running on a user Computer and capable of displaying information, requesting user input, and communicating with a remote Computer through a network) technology and may run in any PC (Personal Computer) equipped with a Windows operating system of the network frame 4.5 or above, and the interface is friendly and easy to understand in operation.
The upper computer 101 runs on a PC and can provide a visual interface for a user to perform various test operations and display test processes and results; the upper computer 101 instantiates a test component for each fan plate independently, is responsible for processing relevant test contents of each fan plate, and can extract public test contents of the fan plates to form a public test logic, so that when a public test item of the fan plate is tested, the public test logic is used for testing the public test item, and further code complexity and redundant codes are reduced.
The serial server 102 includes a serial interface corresponding to each fan board 104 to be tested to establish a connection path between the upper computer 101 and the fan board 104 to be tested, that is, each fan board 104 to be tested is in communication connection with the upper computer 101 through the corresponding serial interface.
The tool insert box 103 is used as an abstract chip, and can virtualize into a plurality of 32-bit virtual registers for each fan board 104 to be tested through an interface protocol with each fan board 104 to be tested to execute a test control instruction issued by the upper computer 101, and then trigger the fan board 104 to be tested to perform an action or reply data in a corresponding address (switching value/analog value generated by each fan board 104 to be tested in the test process) to the upper computer 101, so that the upper computer 101 can analyze the replied data, and test on each fan board 104 to be tested is realized.
The virtual register corresponding to each fan board to be tested 104 is equivalent to the lower computer of each fan board to be tested 104.
The number of the fan boards 104 to be tested which can be connected to each tooling plug-in box 103 can be set according to actual needs, for example, 16, and the fan boards can be expanded according to actual needs, and in the expanding process, the fan boards 104 to be tested can be quickly and effectively expanded only by increasing the rigid connection between the tooling plug-in boxes 103 and the fan boards 104 to be tested.
The fan board to be tested 104 is a fan board to be tested, and includes a generic name of various types of fan boards to be tested for availability or reliability, which are associated in electronic devices such as computers and servers.
Optionally, the upper computer 101 is connected to the serial server 102 through an ethernet port of an ethernet cable, the serial server 102 is connected to the tool insert box 103, the tool insert box 103 is hard-wired to the fan board 104 to be tested, so as to be connected to the tool insert box 103 through the serial server 102, and further connected to the fan board 104 to be tested, so that the upper computer 101 can perform read-write operation with a register simulated by the tool insert box 103 by using 422 serial communication, that is, perform information interaction with the tool insert box 103, and further realize automatic testing of the fan board 104 to be tested.
The serial server 102 comprises a plurality of serial interfaces, each serial interface corresponds to each fan board to be tested 104, when the upper computer 101 is connected with the tool insertion box 103, only one Ethernet cable is used, communication of a plurality of serial ports can be achieved, the serial cables are reduced, and then testing cost is saved.
Optionally, in the testing process, a user may select a corresponding fan board through a visual interface of the upper computer 101 to perform testing, so as to generate a test request.
The upper computer 101 generates a corresponding test control instruction according to the test request under the condition that the test request is monitored; sending a test control instruction to a virtualization register corresponding to each fan plate to be tested 104 in the tool insertion box 103 through the serial server 102 according to a preset protocol frame; the test control command comprises analog quantity control data and/or switching quantity control data.
The virtualization register performs corresponding action according to the test control instruction under the condition that the test control instruction is received, so as to trigger the corresponding fan board to be tested 104 to perform test action, realize test control on the corresponding fan board to be tested 104, and acquire switching value data and/or analog value data generated by the fan board to be tested 104 in the test control process;
the upper computer 101 reads the register device through a preset interface protocol to obtain switching value data and/or analog value data generated by the fan board 104 to be tested in the test control process. After the switching value data and/or the analog value data are obtained, expected switching value data and/or expected analog value data are compared, and according to the comparison result, the test result of the fan board 104 to be tested is determined.
The fan board testing system provided by the invention has the advantages that the upper computer is connected with at least one tool insert box through the serial server, each tool insert box is connected with at least one fan board to be tested through a hard wire, so that direct communication between the upper computer and a plurality of fan boards to be tested is realized, a testing control instruction can be sent to the corresponding virtualization register of each fan board to be tested through the serial server, so that testing control is carried out on each fan board to be tested, the testing result of each fan board to be tested is obtained according to switch quantity data and/or analog quantity data collected by the virtualization register, so that automatic batch testing of a plurality of fan boards to be tested is realized, and when the fan boards are required to be expanded, the fan boards are not dependent on the testing back board, only the fan boards to be expanded are required to be connected with the tool insert boxes through the hard wires, so that the expansion of the fan boards can be conveniently and efficiently realized, the expandability is strong, and the problems of dependence on the testing back board and large expansion difficulty are effectively solved.
In some embodiments, the upper computer 101 comprises a test module and a host module;
the testing module comprises a testing component of each fan board 104 to be tested;
the testing component is configured in the tab corresponding to each fan board 104 to be tested in the host module;
the test assembly is configured to:
under the control of the host module, sending a test control instruction to a virtualization register corresponding to each fan board 104 to be tested according to the test item and the preset test logic of each fan board 104 to be tested;
acquiring switching value data and/or analog data acquired by the virtualization register, acquiring a test result of each fan board 104 to be tested according to the switching value data and/or the analog data, and displaying the test result on a visual interface of the upper computer 101.
The upper computer 101 provides a module for providing a fan board test, and the module provides all test logics for the fan board and a User Interface (UI) Interface, and is managed by a host module of the upper computer 101.
According to different implementation functions, a plurality of modules including but not limited to a test module and a host module are integrated in the upper computer 101; according to the actual application scene, the system also comprises a user login module and a fan board selection module. Each module is connected with the host module, and the host module controls the modules to realize the test function of the fan board. That is to say, the functional modules of the upper computer 101 in this embodiment may be set according to the test requirements, which is not specifically limited in this embodiment. The different modules are subjected to test service through the interfaces, so that code coupling among the modules can be effectively reduced, and the test performance of the upper computer 101 is improved. The functional modules are mutually matched to realize the automatic test of the fan board.
The test module is used for providing fan board test logic and a UI interface. And instantiating a test component for each fan board 104 to be tested by adopting a component programming mode, and displaying each component in a tab corresponding to the corresponding fan board 104 to be tested.
Optionally, the user login module is configured to implement functions of user registration, user login, user information management, and the like, so that when a user inputs a user name and a password on the visual interface of the upper computer 101, the user identity is verified, and after the user login is successful, the user jumps to the test front-end interface.
After the user successfully logs in, the fan board selection module can provide a fan board selection interface for the user in the test front-end interface, so that the user can pull down the fan board selection interface to select a corresponding fan board for testing, and the fan board selection instruction is input into the upper computer 101 in the form of a fan board selection instruction.
Under the condition that the fan board selection module receives the fan board selection instruction, the identification of the fan board 104 to be tested is analyzed from the fan board selection instruction, and the identification is transmitted to the host module in real time.
The host module can automatically screen out test items of the fan plate 104 to be tested, which are preset in the database, according to the identification of the fan plate 104 to be tested, control the test components corresponding to the fan plate 104 to be tested, use 422 serial port communication, asynchronously read and write virtual registers corresponding to each fan plate 104 to be tested in the tool insertion box 103 according to preset test logic and test items, test the fan plate 104 to be tested, and display the test result and the test process in respective test interfaces in real time.
In the embodiment, different fan boards to be tested are tested based on different testing components, so that the independent test and independent display of each fan board to be tested can be realized, the fan boards to be tested are not interfered with each other in the testing process, and the testing reliability is improved; asynchronous batch testing of a plurality of fan plates to be tested can be achieved, and testing efficiency is improved. Therefore, the test system in the embodiment has extremely low test delay in the whole test process, and the obtained test result has high reliability.
In some embodiments, each testing component asynchronously and simultaneously tests the fan board 104 to be tested corresponding to each testing component through the thread corresponding to each testing component.
Wherein, each testing component corresponds to each thread one by one.
It should be noted that, in this embodiment, except for each component management thread, a new thread is not introduced as much as possible, so as to improve the resource utilization rate.
Optionally, in the testing process, different testing components are controlled by asynchronous threads, so that the corresponding fan boards 104 to be tested are tested asynchronously and simultaneously through the corresponding threads, thereby realizing batch testing of the plurality of fan boards 104 to be tested, and further improving the testing efficiency.
In some embodiments, the testing component is further to:
under the condition of receiving an aging test instruction, acquiring the total test times according to the aging test instruction;
under the control of the host module, testing the fan board 104 to be tested for multiple times according to the test item and the preset test logic of each fan board 104 to be tested until the accumulated test times reach the total test times;
and obtaining the aging test result of the fan plate 104 to be tested according to the test results of multiple rounds.
The aging test instruction is an instruction which is input by a user on a visual interface of the upper computer 101 and is used for aging test of the fan board 104 to be tested. The aging test instruction carries the total number of tests, the interval duration of each test turn, the identification of the fan board 104 to be tested, and the like.
Optionally, when the user needs to perform the aging test on the fan board 104 to be tested, the identifier of the fan board 104 to be tested, the interval duration of each test turn and the total test times can be input to the upper computer 101 to generate an aging test instruction;
the upper computer 101 analyzes the aging test instruction under the condition that the aging test instruction is obtained, obtains the total test times, the interval duration of each test turn and the identification of the fan plate 104 to be tested, tests the fan plate 104 to be tested corresponding to the identification in multiple turns according to the total test times, the preset safety test logic and the interval duration of each test turn, and adds one to the accumulated test times in the aging test process of each time until the accumulated test times reach the total test times, and stops testing; and generating an aging test curve of the fan board 104 to be tested according to the test results of the multiple rounds to obtain the aging test result of the fan board 104 to be tested.
It should be noted that, when the total number of times of testing is 1, the fan board 104 to be tested is subjected to a single-round test; and when the total test times are more than the preset times, performing aging test.
In this embodiment, the visual interface is friendly, can supply the user to input various test instructions, and can realize carrying out the function of singly examining and aging testing to the fan board in batches through the adjustment test total number of times, and not only simple understandable, and convenient operation, and can realize the diversified test to fan board 104 that awaits measuring, effectively improve the comprehensiveness of test.
In some embodiments, the upper computer 101 further comprises an expansion module;
the host module is connected with the expansion module;
the expansion module is used for providing a fan board expansion interface, analyzing the fan board expansion instruction under the condition of receiving the fan board expansion instruction, obtaining a first identifier of the fan board to be expanded, and sending the first identifier to the host module;
the host module is further configured to newly build a test component of the fan plate to be expanded in the test module according to the first identifier, and establish connection with the tool insert box 103 connected to the fan plate to be expanded through the serial server 102.
Wherein, host computer 101 still integrates to expand the module, expands the module and is connected with the host computer module.
The expansion module is used for expanding the fan board to be expanded to the fan board to be tested 104 under the control of the host module, so as to realize the automatic test of the fan board to be expanded.
Optionally, the expansion module may provide a fan board expansion interface for a user in the test front-end interface, so that the user can pull down the fan board expansion interface to select a corresponding fan board for testing, and input the fan board expansion instruction to the expansion module.
The expansion module analyzes the fan board expansion instruction under the condition of acquiring the fan board expansion instruction so as to acquire a first identifier of the fan board to be expanded, and sends the first identifier to the host module. The first identification may be a serial number or name, etc.
The host computer module can be according to the first sign of waiting to expand the fan board, newly-built the test assembly who waits to expand the fan board in test module to establish to be connected based on serial servers 102 and the frock subrack 103 that waits to expand the fan board and be connected, and then establish host computer 101 and wait to expand the connecting channel between the fan board, treat the test of expanding the fan board with the realization through the passageway.
The fan board extension in this embodiment does not rely on holding in the palm in the test backplate, treats that the extension fan board only need establish the hardwire with the frock subrack and is connected, then inputs the fan board extension instruction at the fan board extension interface of the expansion module of host computer, can realize the extension to the fan board, not only easy operation, and scalability is strong.
In some embodiments, the upper computer 101 further comprises a fan board selection module, a log module, and a reporting module;
the host module is respectively connected with the fan plate selection module, the log module and the report module;
the fan board selection module is used for providing a fan board selection interface, analyzing the fan board selection instruction under the condition of receiving the fan board selection instruction, obtaining a second identifier of at least one fan board 104 to be tested, and sending the second identifier to the host module;
the host computer module is further configured to perform asynchronous batch testing on the at least one fan board 104 to be tested according to the second identifier, and when the testing of any one fan board 104 to be tested is completed, trigger the log module to output a test log of any one fan board 104 to be tested according to the second identifier, and/or trigger the report module to output a test report of any one fan board 104 to be tested according to the second identifier.
Optionally, the user may select the fan board 104 to be tested in the fan board selection interface in the test front-end interface, and input the second identifier of the fan board 104 to be tested, etc. to form a fan board selection instruction.
It should be noted that the fan board selection instruction may include, in addition to the second identifier, decision information about whether to print a log and report, and a test order, which is not specifically limited in this embodiment.
After the fan board selection module obtains the fan board selection instruction, the fan board selection instruction is analyzed to obtain a second identifier of at least one fan board 104 to be tested, the second identifier is transmitted to the host module in real time, the host module controls the test component of each fan board 104 to be tested according to the second identifier, and asynchronous batch test is performed on each fan board 104 to be tested according to the test turns.
In the testing process, if it is determined that any fan board 104 to be tested is tested, the host module may determine whether to pull down the selection or to select the decision that the test log or the test report of the fan board to be tested is automatically generated by the user according to the decision information whether the log and the report are printed in the fan board selection instruction. Under the condition that a decision that a user makes a pull-down selection or a check selection to automatically output a test log or a test report of the fan board to be tested is determined, a log module and/or a report module is triggered, a target report template or a target log template is called according to the second identification of the fan board to be tested, and the test log and/or the test report of the fan board to be tested is automatically output so as to print and output the test log and/or the test report of the fan board to be tested, so that the work of testers is reduced, the test efficiency is effectively improved, the labor is saved, the human error is avoided, and the quality of the fan board is guaranteed.
In conclusion, the fan board testing system in the embodiment can conveniently perform batch testing on the fan boards, and each fan board after the testing is completed independently outputs the test report, so that the fan board testing system has the characteristics of strong expansibility and high automation degree, effectively saves manpower, and improves the detection efficiency of the fan boards. The whole testing process and the report output are fully automated, and the testing result, the testing report and the testing log of each testing item can assist the tester to quickly position the fan board, so that the testing efficiency and the maintenance efficiency of the fan board are effectively improved.
In some embodiments, the upper computer 101 further comprises an event subscription module;
the host module is connected with the event subscription module;
the host module is further configured to, when a test result of any fan board 104 to be tested is obtained, trigger the event subscription module to send the test result of any fan board 104 to be tested to an event subscriber corresponding to any fan board 104 to be tested.
Optionally, the upper computer 101 further integrates an event subscription module.
The event subscription module is used for pushing corresponding subscription information for an event subscriber under the control of the host module.
Optionally, after obtaining the test result of any fan board 104 to be tested, the host module may trigger the event subscription module to push the test result of the fan board to be tested to an event subscriber who subscribes the test result of the fan board to be tested in advance.
It should be noted that the event subscription module may further provide a function of canceling subscription, so that the user cancels subscription at any time, and deletes the user from the event subscriber list when the user submits a request for canceling subscription, and does not send a test result to the user any more.
In the embodiment, the event subscription module is triggered by adopting an event notification mode to send the test result to the event subscriber in the form of serial port message, and a plurality of event subscribers are triggered in sequence by adopting the mode, so that the number of communication threads is reduced, the occupation of software memory and computing resources is optimized, and the resources of a test system are saved; and through the mode of event triggering, event subscription and subscription cancellation, low-delay and high-reliability communication management can be realized, the operation stability is greatly improved, the millisecond-level test speed can be finally realized, and the test efficiency is effectively improved.
In some embodiments, the upper computer 101 is further configured to obtain, by using an event triggering method, switching value data and/or analog value data acquired by the virtualization register from the serial server 102.
Optionally, when the upper computer 101 receives the switching amount data and/or the analog amount data collected by the virtualization register from the serial server 102, a trigger mode of triggering a serial port _ data received event by a serial port receiving data in the serial port servial port may be adopted, and the serial port data (i.e., the switching amount data and/or the analog amount data collected by the virtualization register) in the serial server 102 is received, so that in the process of receiving the serial port data, a delay is added to ensure that an indefinite number of serial port data can be completely buffered before reading the buffered serial port data, and a problem that the data received by the serial port receiving event is truncated is solved through logic, so as to ensure that the switching amount data and/or the analog amount data collected by the virtualization register are accurately and completely obtained, so that low-delay serial port data processing is realized, and memory occupation of the test system is reduced.
In some embodiments, the fan plate 104 to be tested includes a plurality of control channels;
the plurality of control channels are connected with the same fan 105;
the multiple control channels are tested based on the same fan 105.
Each fan board 104 to be tested includes a plurality of control channels, and the specific number may be set according to actual requirements, such as 6. Wherein different control channels are used to control different fans 105.
In the testing process, the control channels of each fan board to be tested 104 can be connected to one fan 105, so that the same fan 105 is controlled by adopting the control channels, the testing of the control channels of each fan board to be tested is realized, the required number of the fans in the testing process of the fan board can be effectively saved, and the testing cost is effectively saved.
The fan board testing method provided by the invention is described below, and the fan board testing method described below and the fan board testing system described above can be referred to correspondingly.
As shown in fig. 2, the present embodiment provides a fan board testing method based on a fan board testing system, the method includes:
step 201, under the condition that a fan board selection instruction is received, analyzing the fan board selection instruction to obtain a second identifier of at least one fan board to be tested;
the fan board selection instruction is an instruction which is input by a user on the upper computer and used for selectively testing the fan board to be tested, and the fan board selection instruction comprises a second identification of the fan board to be tested.
Optionally, when the fan board test is required, a fan board selection instruction for performing a selection test on the fan board to be tested is input by a user on the upper computer; and under the condition that the upper computer receives the fan board selection instruction, resolving the fan board selection instruction to obtain a second identifier of the fan board to be tested. The second identification may be a serial number or name, etc.
Step 202, according to the second identification, a test control instruction is synchronously sent to a virtualization register corresponding to each fan board to be tested, so that the virtualization register can carry out asynchronous test control on each fan board to be tested according to the test control instruction, and switching value data and/or analog value data generated by each fan board to be tested in the test control process are/is collected;
optionally, the upper computer analyzes and obtains the second identifier of the fan board to be tested, and can automatically screen out the test items of the fan board to be tested, which are preset in the database; and determining a virtualized register corresponding to each fan board to be tested according to the second identifier, sending a test control instruction to the virtualized register corresponding to each fan board to be tested according to a preset test logic and a test item, so that the virtualized register performs corresponding action according to the test control instruction under the condition of receiving the test control instruction, triggering the corresponding fan board to be tested to perform test action, realizing test control on the corresponding fan board to be tested, and acquiring switching value data and/or analog value data generated by the fan board to be tested in the test control process.
Step 203, acquiring switching value data and/or analog value data acquired by the virtualization register, and acquiring a test result of the at least one fan board to be tested according to the switching value data and/or the analog value data.
Optionally, the upper computer reads the register device through a preset interface protocol to obtain switching value data and/or analog value data generated by the fan board to be tested in the test control process. And after the switching value data and/or the analog value data are obtained, comparing expected switching value data and/or expected analog value data, and determining the test result of the fan board to be tested according to the comparison result.
The invention provides a fan board testing method, wherein an upper computer is connected with at least one tool insert box through a serial server, each tool insert box is connected with at least one fan board to be tested through a hard wire, so that direct communication between the upper computer and a plurality of fan boards to be tested is realized, a testing control instruction is sent to a virtualization register corresponding to each fan board to be tested through the serial server, so that testing control is carried out on each fan board to be tested, a testing result of each fan board to be tested is obtained according to switching value data and/or analog value data acquired by the virtualization register, so that automatic batch testing of the plurality of fan boards to be tested is realized, and when the fan boards are required to be expanded, the fan boards to be expanded are not dependent on a testing back board, only the fan boards to be expanded are required to be connected with the tool insert boxes through hard wires, so that expansion of the fan boards can be conveniently and efficiently realized, the fan board testing method has strong expandability, and effectively solves the problems of dependence on the testing back board and large expansion difficulty.
Fig. 3 illustrates a physical structure diagram of an electronic device, which may include, as shown in fig. 3: a processor (processor) 301, a communication Interface (communication Interface) 302, a memory (memory) 303 and a communication bus 304, wherein the processor 301, the communication Interface 302 and the memory 303 complete communication with each other through the communication bus 304. Processor 301 may call logic instructions in memory 303 to perform a fan board test method comprising: under the condition of receiving a fan board selection instruction, analyzing the fan board selection instruction to obtain a second identifier of at least one fan board to be tested; according to the second identification, synchronously sending a test control instruction to a virtualization register corresponding to each fan board to be tested, so that the virtualization register can carry out asynchronous test control on each fan board to be tested according to the test control instruction, and collecting switching value data and/or analog value data generated by each fan board to be tested in the test control process; and acquiring switching value data and/or analog data acquired by the virtualization register, and acquiring a test result of the at least one fan board to be tested according to the switching value data and/or the analog data.
In addition, the logic instructions in the memory 303 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products. Based on such understanding, the technical solution of the present invention or a part thereof which substantially contributes 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 steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product including a computer program, the computer program being stored on a non-transitory computer readable storage medium, the computer program being capable of executing the fan board testing method provided by the above methods when executed by a processor, the method including: under the condition that a fan board selection instruction is received, analyzing the fan board selection instruction to obtain at least one second identifier of the fan board to be tested; according to the second identification, synchronously sending a test control instruction to a virtualization register corresponding to each fan board to be tested, so that the virtualization register can carry out asynchronous test control on each fan board to be tested according to the test control instruction, and collecting switching value data and/or analog value data generated by each fan board to be tested in the test control process; and acquiring switching value data and/or analog data acquired by the virtualization register, and acquiring a test result of the at least one fan board to be tested according to the switching value data and/or the analog data.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a fan board testing method provided by the above methods, the method comprising: under the condition of receiving a fan board selection instruction, analyzing the fan board selection instruction to obtain a second identifier of at least one fan board to be tested; according to the second identification, synchronously sending a test control instruction to a virtualization register corresponding to each fan board to be tested, so that the virtualization register can carry out asynchronous test control on each fan board to be tested according to the test control instruction, and collecting switching value data and/or analog value data generated by each fan board to be tested in the test control process; and acquiring switching value data and/or analog data acquired by the virtualization register, and acquiring a test result of the at least one fan board to be tested according to the switching value data and/or the analog data.
The above-described embodiments of the apparatus are merely illustrative, and 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, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A fan board testing system, comprising: the system comprises an upper computer, a serial server and at least one tool plug-in box;
the upper computer is connected with the serial server, and the serial server is connected with the at least one tool inserting box; each tool inserting box is connected with at least one fan board to be tested through a hard wire;
each tool inserting box comprises a virtualization register corresponding to each fan board to be tested;
the upper computer is used for sending a test control instruction to the virtualization register corresponding to each fan board to be tested through the serial server;
the virtualization register is used for testing and controlling each fan board to be tested according to the test control instruction and collecting switching value data and/or analog data generated by each fan board to be tested in the test control process;
the upper computer is further used for acquiring switching value data and/or analog data acquired by the virtualization register and acquiring a test result of each fan board to be tested according to the switching value data and/or the analog data.
2. The fan board test system of claim 1, wherein the host computer comprises a test module and a host computer module;
the test module comprises a test component of each fan board to be tested;
the testing component is configured in a tab corresponding to each fan board to be tested in the host module;
the test assembly is configured to:
under the control of the host module, sending a test control instruction to a virtualization register corresponding to each fan board to be tested according to the test item and the preset test logic of each fan board to be tested;
acquiring switching value data and/or analog data acquired by the virtualization register, acquiring a test result of each fan board to be tested according to the switching value data and/or the analog data, and displaying the test result on a visual interface of the upper computer.
3. The fan board testing system of claim 2, wherein each testing component performs asynchronous simultaneous testing on the fan board to be tested corresponding to each testing component through the thread corresponding to each testing component.
4. The fan board testing system of claim 2, wherein the testing component is further configured to:
under the condition of receiving an aging test instruction, acquiring the total test times according to the aging test instruction;
under the control of the host module, testing the fan boards to be tested for multiple times according to the test items and preset test logic of each fan board to be tested until the accumulated test times reach the total test times;
and acquiring an aging test result of the fan board to be tested according to the test results of multiple rounds.
5. The fan board test system of claim 2, wherein the host computer further comprises an expansion module;
the host module is connected with the expansion module;
the expansion module is used for providing a fan board expansion interface, analyzing the fan board expansion instruction under the condition of receiving the fan board expansion instruction, obtaining a first identifier of the fan board to be expanded, and sending the first identifier to the host module;
the host module is further used for building a testing assembly of the fan plate to be expanded in the testing module according to the first identification, and establishing connection with a tool insert box connected with the fan plate to be expanded through the serial server.
6. The fan plate testing system of claim 2, wherein the host computer further comprises a fan plate selection module, a log module, and a reporting module;
the host module is respectively connected with the fan plate selection module, the log module and the report module;
the fan board selection module is used for providing a fan board selection interface, analyzing the fan board selection instruction under the condition of receiving the fan board selection instruction to obtain a second identifier of at least one fan board to be tested, and sending the second identifier to the host module;
the host computer module is further configured to perform asynchronous batch testing on the at least one fan board to be tested according to the second identifier, and when the testing of any fan board to be tested is completed, trigger the log module to output a test log of any fan board to be tested according to the second identifier, and/or trigger the report module to output a test report of any fan board to be tested according to the second identifier.
7. The fan board testing system of claim 2, wherein the host computer further comprises an event subscription module;
the host module is connected with the event subscription module;
the host computer module is further used for triggering the event subscription module to send the test result of any fan board to be tested to an event subscriber corresponding to any fan board to be tested under the condition that the test result of any fan board to be tested is obtained.
8. The fan board test system according to any one of claims 1 to 7, wherein the upper computer is further configured to obtain switching value data and/or analog value data collected by the virtualization register from the serial server by using an event triggering method.
9. The fan board testing system of any one of claims 1-7, wherein the fan board to be tested includes a plurality of control channels;
the control channels are connected with the same fan;
the plurality of control channels are tested based on the same fan.
10. A fan board testing method based on the fan board testing system according to any one of claims 1 to 9, comprising:
under the condition that a fan board selection instruction is received, analyzing the fan board selection instruction to obtain at least one second identifier of the fan board to be tested;
according to the second identification, synchronously sending a test control instruction to a virtualization register corresponding to each fan board to be tested, so that the virtualization register can carry out asynchronous test control on each fan board to be tested according to the test control instruction, and collecting switching value data and/or analog value data generated by each fan board to be tested in the test control process;
and acquiring switching value data and/or analog data acquired by the virtualization register, and acquiring a test result of the at least one fan board to be tested according to the switching value data and/or the analog data.
CN202210987161.9A 2022-08-17 2022-08-17 Fan board testing system and method Pending CN115507050A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210987161.9A CN115507050A (en) 2022-08-17 2022-08-17 Fan board testing system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210987161.9A CN115507050A (en) 2022-08-17 2022-08-17 Fan board testing system and method

Publications (1)

Publication Number Publication Date
CN115507050A true CN115507050A (en) 2022-12-23

Family

ID=84501313

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210987161.9A Pending CN115507050A (en) 2022-08-17 2022-08-17 Fan board testing system and method

Country Status (1)

Country Link
CN (1) CN115507050A (en)

Similar Documents

Publication Publication Date Title
CN108399114B (en) System performance testing method and device and storage medium
CN107402880B (en) Test method and electronic equipment
CN108959068B (en) Software interface testing method, device and storage medium
WO2018184361A1 (en) Application test method, server, terminal, and storage media
CN107040535B (en) Method, device and system for monitoring login of mobile application channel and storage medium
CN109525461B (en) Network equipment testing method, device, equipment and storage medium
CN108241580B (en) Client program testing method and terminal
CN104717337A (en) Method for testing mobile application in batch and equipment used in method
CN109977012B (en) Joint debugging test method, device, equipment and computer readable storage medium of system
CN110708214B (en) Service data display method, device, equipment and computer readable storage medium
CN109522181B (en) Performance test method, device and equipment of distributed storage system
CN110865944A (en) Data analysis method and device for test case, storage medium and test equipment
CN107168844B (en) Performance monitoring method and device
CN111769979A (en) Cloud resource arranging method, system, terminal and storage medium
WO2022100075A1 (en) Method and apparatus for performance test, electronic device and computer-readable medium
CN113238935A (en) Application testing method, system, device, medium, and computer program product
CN117493188A (en) Interface testing method and device, electronic equipment and storage medium
CN113127356A (en) Pressure measurement method and device, electronic equipment and storage medium
CN115507050A (en) Fan board testing system and method
CN112199273A (en) Virtual machine pressure/performance testing method and system
CN111367810A (en) Test environment generation method, device and system, electronic equipment and readable medium
CN113918459A (en) Self-detection method for script performance test
CN114741273A (en) Remote real mobile terminal testing method, device, storage medium and equipment
US10671442B2 (en) Dynamic preparation of a new network environment, and subsequent monitoring thereof
CN107220092B (en) Method for deploying software, control server, readable medium and storage controller

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