CN116820864A - Board card multifunctional test method and device, electronic equipment and storage medium - Google Patents
Board card multifunctional test method and device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN116820864A CN116820864A CN202310842501.3A CN202310842501A CN116820864A CN 116820864 A CN116820864 A CN 116820864A CN 202310842501 A CN202310842501 A CN 202310842501A CN 116820864 A CN116820864 A CN 116820864A
- Authority
- CN
- China
- Prior art keywords
- test
- array
- client
- board
- testing
- 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
- 238000010998 test method Methods 0.000 title claims abstract description 16
- 238000012360 testing method Methods 0.000 claims abstract description 390
- 230000006870 function Effects 0.000 claims abstract description 84
- 238000000034 method Methods 0.000 claims abstract description 47
- 238000004891 communication Methods 0.000 claims abstract description 39
- 238000003491 array Methods 0.000 claims description 12
- 238000011990 functional testing Methods 0.000 claims description 6
- 238000012544 monitoring process Methods 0.000 claims description 5
- 238000001514 detection method Methods 0.000 abstract description 9
- 238000010586 diagram Methods 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000006467 substitution reaction Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000012790 confirmation Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000013112 stability test Methods 0.000 description 1
Classifications
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
- Y02D10/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Test And Diagnosis Of Digital Computers (AREA)
Abstract
The invention provides a board multifunctional test method, a device, electronic equipment and a storage medium, which relate to the technical field of automatic test and are applied to a server, wherein the server is in communication connection with a client, and the method comprises the following steps: acquiring a test request sent by a client, determining a plurality of function names to be tested, which are respectively corresponding to a plurality of boards included in the test request, and storing the test request into a message array; determining a test mode of the board card based on the function name to be tested; if the test mode is a mutual test mode, determining respective slot numbers of a plurality of boards; mutually testing a plurality of board cards based on the slot position numbers to obtain a test result; and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can analyze the spliced array to obtain the test result. In this mode, realized the test to a plurality of functions of board, reduced the consumption of human cost, improved the detection efficiency and the accuracy of test of board.
Description
Technical Field
The present invention relates to the field of automatic testing technologies, and in particular, to a board multifunctional testing method, a device, an electronic device, and a storage medium.
Background
The board card is one kind of printed circuit board and may be inserted into the slot of the main circuit board of computer to control the operation of hardware and to realize corresponding hardware function after installing driver. The general computer board card can be used as a whole board to realize computer service.
When the board card leaves the factory, a plurality of functions of the board card are required to be tested, and because of a plurality of test items and a complex flow, whether each test is qualified or not is required to be judged manually, not only is the accuracy of the test low, but also a large amount of labor cost is consumed, and the detection efficiency of the board card is affected.
Disclosure of Invention
Accordingly, the present invention is directed to a board multifunctional testing method, device, electronic equipment and storage medium, which perform respective corresponding tests on a plurality of function names to be tested on a board according to a testing request sent by a client through communication connection between the client and a server, so as to realize testing of a plurality of functions of the board, reduce the consumption of labor cost, and improve the testing efficiency and the testing accuracy of the board.
In a first aspect, an embodiment of the present invention provides a board multifunctional testing method, applied to a server, where the server is in communication connection with a client, including: acquiring a test request sent by a client, determining a plurality of function names to be tested, which are respectively corresponding to a plurality of boards included in the test request, and storing the test request into a message array; determining a test mode of the board card based on the function name to be tested; if the test mode is a mutual test mode, determining respective slot numbers of a plurality of boards; mutually testing a plurality of board cards based on the slot position numbers to obtain a test result; and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can analyze the spliced array to obtain the test result.
In a preferred embodiment of the present invention, the determining the test mode of the board card based on the function name to be tested includes: determining a plurality of test modes corresponding to the function names to be tested respectively based on the preset corresponding relation between the function names to be tested and the test modes; and determining the test mode of the board card based on the test modes respectively corresponding to the multiple function names to be tested.
In a preferred embodiment of the present invention, the performing mutual testing on the plurality of boards based on the slot number to obtain a test result includes: dividing each two boards into a group based on the slot number; and carrying out mutual testing on the two boards in the same group to obtain a test result.
In a preferred embodiment of the present invention, the splicing the test result and the message array to obtain a spliced array includes: judging whether the test result meets the test requirement or not based on a preset result threshold value to obtain a judgment result; and splicing the judging result, the testing result and the message array to obtain a spliced array.
In a preferred embodiment of the present invention, the sending the spliced array to the client includes: determining the array length of a spliced array; if the array length is greater than the preset length threshold, splitting the spliced array into a plurality of arrays with the length smaller than the length threshold, and respectively sending the arrays to the client.
In a preferred embodiment of the present invention, after the foregoing splicing the test result and the message array to obtain the spliced array, the method further includes: if the test mode is a single test mode, testing a plurality of boards based on the function name to be tested to obtain a test result; and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can judge whether the test result meets the test requirement.
In a preferred embodiment of the present invention, before the obtaining the test request sent by the client, the method further includes: establishing a communication interface for communicating with a client; monitoring the communication interface to determine that the client is connected with the communication interface; after the client is connected to the communication interface, a buffer is created.
In a second aspect, an embodiment of the present invention further provides a board multifunctional testing device, which is applied to a server, where the server is in communication connection with a client, and includes: the test request acquisition module is used for acquiring a test request sent by the client, determining a plurality of function names to be tested, which are respectively corresponding to a plurality of boards included in the test request, and storing the test request into the message array; the test mode determining module is used for determining the test mode of the board card based on the name of the function to be tested; the slot number determining module is used for determining the slot number of each of the plurality of boards if the test mode is a mutual test mode; the board card testing module is used for mutually testing a plurality of board cards based on the slot position numbers to obtain a testing result; and the splicing array sending module is used for splicing the test result and the message array to obtain a splicing array, and sending the splicing array to the client so that the client can analyze the splicing array to obtain the test result.
In a third aspect, an embodiment of the present invention further provides an electronic device, including a processor and a memory, where the memory stores computer executable instructions that can be executed by the processor, and the processor executes the computer executable instructions to implement the board card multi-functional testing method of the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where computer executable instructions are stored, where the computer executable instructions, when invoked and executed by a processor, cause the processor to implement the board card multi-function test method of the first aspect.
The embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a multi-functional test method, a device, electronic equipment and a storage medium for a board card, which are characterized in that a test request sent by a client is obtained, a plurality of function names to be tested, which are respectively corresponding to a plurality of board cards and are included in the test request, are determined, the test request is stored in a message array, then a test mode of the board card is determined based on the function names to be tested, under the condition that the test mode is a mutual test mode, the respective slot number of the plurality of board cards is determined, the plurality of board cards are mutually tested based on the slot number to obtain a test result, the test result and the message array are spliced to obtain a spliced array, and the spliced array is sent to the client for the client to analyze the spliced array to obtain the test result. The test of a plurality of functions of the board card is realized, the consumption of labor cost is reduced, and the detection efficiency and the test accuracy of the board card are improved.
Additional features and advantages of the disclosure will be set forth in the description which follows, or in part will be obvious from the description, or may be learned by practice of the techniques of the disclosure.
The foregoing objects, features and advantages of the disclosure will be more readily apparent from the following detailed description of the preferred embodiments taken in conjunction with the accompanying drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flowchart of a board card multifunctional test method applied to a server according to an embodiment of the present invention;
FIG. 2 is a flowchart of another board card multifunctional test method applied to a server according to an embodiment of the present invention;
FIG. 3 is a flowchart of a method for testing board card functionality applied to a client according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a board multifunctional testing device applied to a server according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a board multifunctional testing device applied to a client according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The board card is one kind of printed circuit board and may be inserted into the slot of the main circuit board of computer to control the operation of hardware and to realize corresponding hardware function after installing driver. The general computer board card can be used as a whole board to realize computer service.
When the board card leaves the factory, a plurality of functions of the board card are required to be tested, and because of a plurality of test items and a complex flow, whether each test is qualified or not is required to be judged manually, not only is the accuracy of the test low, but also a large amount of labor cost is consumed, and the detection efficiency of the board card is affected.
Based on the above, the multi-functional test method, device, electronic equipment and storage medium for the board card provided by the embodiments of the present invention can determine a plurality of function names to be tested, which are respectively corresponding to a plurality of board cards and included in a test request, by obtaining the test request sent by a client, store the test request into a message array, then determine a test mode of the board card based on the function names to be tested, determine respective slot numbers of the plurality of board cards when the test mode is a mutual test mode, mutually test the plurality of board cards based on the slot numbers to obtain a test result, splice the test result with the message array to obtain a spliced array, and send the spliced array to the client for the client to analyze the spliced array to obtain the test result. The test of a plurality of functions of the board card is realized, the consumption of labor cost is reduced, and the detection efficiency and the test accuracy of the board card are improved.
For the convenience of understanding the present embodiment, a detailed description will be given of a board multifunctional testing method disclosed in the embodiment of the present invention.
Example 1
An embodiment of the invention provides a board multifunctional testing method, and fig. 1 is a flow chart of the board multifunctional testing method applied to a server. As shown in fig. 1, the method for testing the board card multifunctional is applied to a server, the server is in communication connection with a client, and the method for testing the board card multifunctional can comprise the following steps:
step S101, a test request sent by a client is obtained, a plurality of function names to be tested, which correspond to a plurality of boards and included in the test request, are determined, and the test request is stored in a message array.
The server side is deployed on the board, the server side can comprise test software for testing the board, the client side can be a program written by using an application program development framework and installed on the mobile terminal, and the mobile terminal can be a notebook computer, a tablet computer, a desktop computer, a mobile phone and the like. The client can send a test request to the server through the client, so that the corresponding function test is carried out on the control board card of the server, a message protocol exists between the server and the client, information is transmitted through the message protocol, and the information is the test request and the like.
The test request can include a board card to be tested and a function name to be tested corresponding to the board card, wherein the function name to be tested can be one or more, namely, one function test can be performed on the board card, and the multi-function test can be performed on the board card.
After the test request sent by the client is obtained, a test thread is created and used for testing the board card, and when one test is not finished, if a new test request sent by the client is received, a test thread can be created again and used for testing the board card which needs to be tested and is included in the new test request. After the test thread is created, analysis and judgment of the CRC check code are carried out according to the message protocol so as to obtain the correct test request content.
The test request is stored in the message array and then can be sent to the client side for convenient subsequent viewing.
Step S102, determining the test mode of the board card based on the name of the function to be tested.
The function name to be tested may be IP (Internet Protocol ) test, LED (LightEmitting Diode, light emitting diode) lamp test, acquisition box number and slot number, stream test, fio test, fast ping test, memory read-write consistency test, stability test, ping (Packet Internet Groper, internet packet explorer) test, linpack (Linear system package, linear system software package) test, RS232 serial port communication test, RS485 serial port communication test, GPIO (General-purpose input/output) read-write test, system version information check test, usb identification, gigabit socket tcp (Transmission Control Protocol ) bandwidth test, gigabit socket udp (User Datagram Protocol ) bandwidth test, and megaweb socket tcp bandwidth test.
The corresponding test software can be called for testing through the function name to be tested.
The test mode may be a mutual test mode, a single test mode and a mixed mode. The hybrid mode is a single test mode and a mutual test mode.
Specifically, determining the test mode of the board card based on the function name to be tested may include: determining a plurality of test modes corresponding to the function names to be tested respectively based on the preset corresponding relation between the function names to be tested and the test modes; and determining the test mode of the board card based on the test modes respectively corresponding to the multiple function names to be tested.
The preset corresponding relation between the function name to be tested and the test mode is that the function name to be tested is gigabit network port tcp bandwidth test, gigabit network port udp bandwidth test and gigabit network port tcp bandwidth test, and the test is that the mutual test mode is utilized for testing. The test corresponding to the rest of the function names to be tested is to use a single-side mode for testing.
And if the test request includes the test of the function name to be tested by using the mutual test mode and the test of the single test mode, the test request is in the mixed mode.
Step S103, if the test mode is the mutual test mode, determining the respective slot numbers of the plurality of boards.
The board card can be inserted into the clamping grooves of the test case, the test case is provided with a plurality of clamping grooves, and each clamping groove is provided with a corresponding groove position number. The slot number may be obtained using a get slot id function.
And step S104, carrying out mutual testing on the plurality of board cards based on the slot position numbers to obtain a test result.
Specifically, performing mutual testing on the plurality of boards based on the slot number, and obtaining the test result may include: dividing each two boards into a group based on the slot number; and carrying out mutual testing on the two boards in the same group to obtain a test result.
For example, the test case includes four slots, the slot numbers are 1, 2, 3 and 4, the four boards are inserted into the four slots, the boards corresponding to the odd slot numbers can be divided into a group, the boards corresponding to the even slot numbers are divided into a group, and the two boards in each group are mutually tested to obtain the test result. It should be noted that the inclusion of four slots in the test chassis is merely exemplary, and the specific number of slots and the board-card grouping method are not limited herein.
Specifically, the board cards can be tested by using a testing tool, for example, the testing tool comprises a first end and a second end, the first end is connected with one board card in the same group, the second end is connected with the other board card in the same group, a first test result is obtained after testing, the board card exchange positions connected with the two ends of the testing tool are tested, a second test result is obtained after testing, and the first test result and the second test result are the testing results.
Step S105, the test result and the message array are spliced to obtain a spliced array, and the spliced array is sent to the client side so that the client side can analyze the spliced array to obtain the test result.
The test result may be a test parameter obtained after the board card performs a test corresponding to the name of the function to be tested.
As an implementation manner, after the test result is spliced with the message array to obtain the spliced array, the method may further include:
if the test mode is a single test mode, testing a plurality of boards based on the function name to be tested to obtain a test result; and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can judge whether the test result meets the test requirement.
When the test mode is a single test mode, the corresponding function software can be called based on the function name to be tested to test the plurality of boards, so that a test result is obtained; and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can judge whether the test result meets the test requirement.
When the test mode is a mixed mode, the corresponding function software can be called according to the function name to be tested to test the board in a single test mode and a mutual test mode, so that a test result is obtained; and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can judge whether the test result meets the test requirement.
It should be noted that, after performing multiple functional tests on the board card, multiple test results are obtained, and the multiple test results can be spliced with the message array to obtain a spliced array, and the spliced array is sent to the client.
As an implementation way, the message header and the CRC check code can be added into the spliced array, so that the client can read the test result conveniently and the integrity of the information is ensured.
Specifically, before acquiring the test request sent by the client, the method may further include: establishing a communication interface for communicating with a client; monitoring the communication interface to determine that the client is connected with the communication interface; after the client is connected to the communication interface, a buffer is created.
The method comprises the steps of establishing a TCP communication interface with a client through a Socket, monitoring the communication interface, and creating a buffer zone when the client is monitored to be connected with the communication interface, wherein a test request sent by the client can be monitored through the buffer zone.
According to the board card multifunctional test method provided by the embodiment of the invention, the test request sent by the client can be obtained, the multiple function names to be tested, which are respectively corresponding to the multiple board cards and included in the test request, are determined, the test request is stored in the message array, then the test mode of the board card is determined based on the function names to be tested, under the condition that the test mode is the inter-test mode, the respective slot numbers of the multiple board cards are determined, the multiple board cards are inter-tested based on the slot numbers, the test result is obtained, the test result and the message array are spliced to obtain the spliced array, and the spliced array is sent to the client for the client to analyze the spliced array to obtain the test result. The test of a plurality of functions of the board card is realized, the consumption of labor cost is reduced, and the detection efficiency and the test accuracy of the board card are improved.
Example 2
The embodiment of the invention also provides another board multifunctional test method; the method is realized on the basis of the method of the embodiment; the method focuses on describing a specific implementation mode of splicing the test result and the message array to obtain a spliced array.
Fig. 2 is a flowchart of another board multifunctional testing method according to an embodiment of the present invention, and as shown in fig. 2, the board multifunctional testing method may include the following steps:
step S201, judging whether the test result meets the test requirement or not based on a preset result threshold value, and obtaining a judgment result.
The preset result threshold is a qualified parameter range of the function of the board card, and when the test result is within the preset result threshold, the function of the board card can be considered to meet the test requirement.
The judging result can be that a certain function of the board card is qualified or unqualified.
And step S202, splicing the judging result, the testing result and the message array to obtain a spliced array.
The judgment result, the test result and the message array can be spliced to obtain a spliced array, so that a tester is assisted to quickly determine whether the board card is qualified. It should be noted that, the tester can perform secondary confirmation on the unqualified function of the board, and can determine whether the unqualified function can not affect the use of the board by virtue of own experience.
Specifically, splicing the judgment result, the test result and the message array to obtain a spliced array may include: determining the array length of a spliced array; if the array length is greater than the preset length threshold, splitting the spliced array into a plurality of arrays with the length smaller than the length threshold, and respectively sending the arrays to the client.
When the length of the spliced array is too long, the problem that the client receives incomplete information may be caused, so that when the length of the array is greater than a preset length threshold, the spliced array can be split into a plurality of arrays with the length smaller than the length threshold and sent to the client respectively.
The multi-functional test method of the board card provided by the embodiment of the invention can splice the judgment result, the test result and the message array of whether the test result meets the test requirement after the test result is obtained to obtain the spliced array, and split the spliced array into a plurality of arrays with the length smaller than the length threshold value and respectively send the plurality of arrays to the client when the length of the array is larger than the preset length threshold value, thereby avoiding the problem that the information received by the client is incomplete.
Example 3
The embodiment of the invention provides a board multifunctional testing method, and fig. 3 is a flow chart of the board multifunctional testing method applied to a client. As shown in fig. 3, the method for testing the board card multifunctional is applied to a client, the client is in communication connection with a server, and the method can comprise the following steps:
step S301, a test request is sent to a server.
The server side is used for acquiring a test request sent by the client side, determining a plurality of function names to be tested, which are respectively corresponding to a plurality of boards included in the test request, and storing the test request into the message array; determining a test mode of the board card based on the function name to be tested; if the test mode is a mutual test mode, determining respective slot numbers of a plurality of boards; mutually testing a plurality of board cards based on the slot position numbers to obtain a test result; and splicing the test result and the message array to obtain a spliced array.
Step S302, receiving a spliced array sent by a server.
And step S303, analyzing the spliced array to obtain a test result.
According to the board card multifunctional test method provided by the embodiment of the invention, the test request sent by the client can be obtained, the multiple function names to be tested, which are respectively corresponding to the multiple board cards and included in the test request, are determined, the test request is stored in the message array, then the test mode of the board card is determined based on the function names to be tested, under the condition that the test mode is the inter-test mode, the respective slot numbers of the multiple board cards are determined, the multiple board cards are inter-tested based on the slot numbers, the test result is obtained, the test result and the message array are spliced to obtain the spliced array, and the spliced array is sent to the client for the client to analyze the spliced array to obtain the test result. The test of a plurality of functions of the board card is realized, the consumption of labor cost is reduced, and the detection efficiency and the test accuracy of the board card are improved.
Example 4
Corresponding to the above method embodiment, the embodiment of the present invention provides a board card multifunctional testing device, and fig. 4 is a schematic structural diagram of the board card multifunctional testing device applied to a server, as shown in fig. 4, where the server is applied to a server, and the server is in communication connection with a client, and the board card multifunctional testing device may include:
the test request obtaining module 401 is configured to obtain a test request sent by a client, determine a plurality of function names to be tested corresponding to a plurality of boards included in the test request, and store the test request in a message array.
The test mode determining module 402 is configured to determine a test mode of the board card based on the name of the function to be tested.
The slot number determining module 403 is configured to determine the slot number of each of the plurality of boards if the test mode is a mutual test mode.
The board card testing module 404 is configured to perform mutual testing on a plurality of board cards based on the slot number, so as to obtain a testing result.
And the splice array sending module 405 is configured to splice the test result and the message array to obtain a splice array, and send the splice array to the client, so that the client can parse the splice array to obtain the test result.
According to the board card multifunctional testing device provided by the embodiment of the invention, the testing request sent by the client can be obtained, the multiple function names to be tested, which are respectively corresponding to the multiple board cards and included in the testing request, are determined, the testing request is stored in the message array, then the testing mode of the board card is determined based on the function names to be tested, under the condition that the testing mode is the inter-testing mode, the respective slot numbers of the multiple board cards are determined, the multiple board cards are tested with each other based on the slot numbers, the testing result is obtained, the testing result and the message array are spliced to obtain the spliced array, and the spliced array is sent to the client for the client to analyze the spliced array to obtain the testing result. The test of a plurality of functions of the board card is realized, the consumption of labor cost is reduced, and the detection efficiency and the test accuracy of the board card are improved.
In some embodiments, the test mode determining module is further configured to determine a test mode corresponding to each of the plurality of function names to be tested based on a preset correspondence between the function names to be tested and the test modes; and determining the test mode of the board card based on the test modes respectively corresponding to the multiple function names to be tested.
In some embodiments, the board card testing module is further configured to divide each two board cards into a group based on the slot number; and carrying out mutual testing on the two boards in the same group to obtain a test result.
In some embodiments, the spliced array sending module is further configured to determine whether the test result meets the test requirement based on a preset result threshold, so as to obtain a determination result; and splicing the judging result, the testing result and the message array to obtain a spliced array.
In some embodiments, the splice array sending module is further configured to determine an array length of the splice array; if the array length is greater than the preset length threshold, splitting the spliced array into a plurality of arrays with the length smaller than the length threshold, and respectively sending the arrays to the client.
In some embodiments, the board card testing module is further configured to test the plurality of board cards based on the function name to be tested if the testing mode is a single testing mode, so as to obtain a testing result; and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can judge whether the test result meets the test requirement.
In some embodiments, the multi-functional test device of the board card further comprises a communication establishing module for establishing a communication interface for communicating with the client; monitoring the communication interface to determine that the client is connected with the communication interface; after the client is connected to the communication interface, a buffer is created.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
Example 5
Corresponding to the above method embodiment, the embodiment of the present invention provides a board card multifunctional testing device, and fig. 5 is a schematic structural diagram of the board card multifunctional testing device applied to a client, as shown in fig. 5, where the client is applied to the client, and the client is in communication connection with a server, and the board card multifunctional testing device may include:
the test request sending module 501 is configured to send a test request to a server.
And the spliced array receiving module 502 is used for receiving the spliced array sent by the server.
And the spliced array analysis module 503 analyzes the spliced array to obtain a test result.
According to the board card multifunctional testing device provided by the embodiment of the invention, the testing request sent by the client can be obtained, the multiple function names to be tested, which are respectively corresponding to the multiple board cards and included in the testing request, are determined, the testing request is stored in the message array, then the testing mode of the board card is determined based on the function names to be tested, under the condition that the testing mode is the inter-testing mode, the respective slot numbers of the multiple board cards are determined, the multiple board cards are tested with each other based on the slot numbers, the testing result is obtained, the testing result and the message array are spliced to obtain the spliced array, and the spliced array is sent to the client for the client to analyze the spliced array to obtain the testing result. The test of a plurality of functions of the board card is realized, the consumption of labor cost is reduced, and the detection efficiency and the test accuracy of the board card are improved.
The device provided by the embodiment of the present invention has the same implementation principle and technical effects as those of the foregoing method embodiment, and for the sake of brevity, reference may be made to the corresponding content in the foregoing method embodiment where the device embodiment is not mentioned.
Example 6
The embodiment of the invention also provides electronic equipment for running the board card multifunctional test method; referring to fig. 6, an electronic device includes a memory 600 and a processor 601, where the memory 600 is configured to store one or more computer instructions, and the one or more computer instructions are executed by the processor 601 to implement the board multifunctional test method described above.
Further, the electronic device shown in fig. 6 further includes a bus 602 and a communication interface 603, and the processor 601, the communication interface 603, and the memory 600 are connected through the bus 602.
The memory 600 may include a high-speed random access memory (RAM, random Access Memory), and may further include a non-volatile memory (non-volatile memory), such as at least one magnetic disk memory. The communication connection between the system network element and at least one other network element is implemented via at least one communication interface 603 (which may be wired or wireless), which may use the internet, a wide area network, a local network, a metropolitan area network, etc. Bus 602 may be an ISA bus, a PCI bus, an EISA bus, or the like. The buses may be divided into address buses, data buses, control buses, etc. For ease of illustration, only one bi-directional arrow is shown in FIG. 4, but not only one bus or type of bus.
The processor 601 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 601 or instructions in the form of software. The processor 601 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU for short), a network processor (Network Processor, NP for short), etc.; but also digital signal processors (Digital Signal Processor, DSP for short), application specific integrated circuits (Application Specific Integrated Circuit, ASIC for short), field-programmable gate arrays (Field-Programmable Gate Array, FPGA for short) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps, and logic blocks in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be embodied directly in the execution of a hardware decoding processor, or in the execution of a combination of hardware and software modules in a decoding processor. The software modules may be located in a random access memory, flash memory, read only memory, programmable read only memory, or electrically erasable programmable memory, registers, etc. as well known in the art. The storage medium is located in the memory 600 and the processor 601 reads the information in the memory 600 and in combination with its hardware performs the steps of the method of the previous embodiment.
The embodiment of the invention also provides a computer readable storage medium, which stores computer executable instructions that, when being called and executed by a processor, cause the processor to implement the above board card multifunctional test method, and the specific implementation can be referred to the method embodiment and will not be described herein.
The computer program product for performing the board multifunctional test method provided by the embodiment of the invention comprises a computer readable storage medium storing non-volatile program codes executable by a processor, wherein the instructions included in the program codes can be used for executing the method described in the method embodiment, and specific implementation can be seen in the method embodiment and will not be repeated here.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, and are not repeated herein.
In the several embodiments provided by the present invention, it should be understood that the disclosed systems, devices, and methods may be implemented in other manners. The above-described apparatus embodiments are merely illustrative, for example, the division of the units is merely a logical function division, and there may be other manners of division in actual implementation, and for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be through some communication interface, device or unit indirect coupling or communication connection, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a non-volatile computer readable storage medium executable by a processor. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform 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, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Finally, it should be noted that: the above examples are only specific embodiments of the present invention, and are not intended to limit the scope of the present invention, but it should be understood by those skilled in the art that the present invention is not limited thereto, and that the present invention is described in detail with reference to the foregoing examples: any person skilled in the art may modify or easily conceive of the technical solution described in the foregoing embodiments, or perform equivalent substitution of some of the technical features, while remaining within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.
Claims (10)
1. The multi-functional test method of the board card is characterized by being applied to a server, wherein the server is in communication connection with a client, and the method comprises the following steps:
acquiring a test request sent by the client, determining a plurality of function names to be tested, which are respectively corresponding to a plurality of board cards and included in the test request, and storing the test request into a message array;
determining a test mode of the board card based on the function name to be tested;
if the test mode is a mutual test mode, determining respective slot numbers of a plurality of board cards;
mutually testing a plurality of board cards based on the slot position numbers to obtain test results;
and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can analyze the spliced array to obtain the test result.
2. The method for testing the board card according to claim 1, wherein the determining the test mode of the board card based on the function name to be tested comprises:
determining a plurality of test modes respectively corresponding to the function names to be tested based on the preset corresponding relation between the function names to be tested and the test modes;
and determining the test mode of the board card based on the test modes respectively corresponding to the to-be-tested function names.
3. The method for testing multiple board cards according to claim 1, wherein the step of mutually testing the plurality of board cards based on the slot number to obtain a test result includes:
dividing each two boards into a group based on the slot number;
and carrying out mutual testing on the two boards in the same group to obtain a test result.
4. The method for testing board card functionality according to claim 1, wherein the splicing the test result and the message array to obtain a spliced array comprises:
judging whether the test result meets the test requirement or not based on a preset result threshold value to obtain a judgment result;
and splicing the judging result, the testing result and the message array to obtain a spliced array.
5. The method of claim 4, wherein the sending the splice array to the client comprises:
determining the array length of the spliced array;
if the array length is greater than a preset length threshold, splitting the spliced array into a plurality of arrays with the length smaller than the length threshold, and respectively sending the arrays to the client.
6. The method for testing multiple functions of a board card according to claim 1, wherein after the step of splicing the test result and the message array to obtain a spliced array, the method further comprises:
if the test mode is a single test mode, testing a plurality of board cards based on the function name to be tested to obtain a test result;
and splicing the test result and the message array to obtain a spliced array, and sending the spliced array to the client so that the client can judge whether the test result meets the test requirement.
7. The board multifunctional test method according to claim 1, wherein before the obtaining the test request sent by the client, the method further comprises:
establishing a communication interface for communicating with the client;
monitoring the communication interface to determine that the client is connected with the communication interface;
after the client is connected with the communication interface, a buffer is created.
8. The utility model provides a multi-functional testing arrangement of integrated circuit board, its characterized in that is applied to the server, server and customer end communication connection, the device includes:
the test request acquisition module is used for acquiring a test request sent by the client, determining a plurality of function names to be tested, which are respectively corresponding to a plurality of board cards and included in the test request, and storing the test request into a message array;
the test mode determining module is used for determining the test mode of the board card based on the function name to be tested;
the slot number determining module is used for determining the slot number of each of the plurality of board cards if the test mode is a mutual test mode;
the board card testing module is used for carrying out mutual testing on a plurality of board cards based on the slot position numbers to obtain a testing result;
and the splicing array sending module is used for splicing the test result and the message array to obtain a splicing array, and sending the splicing array to the client so that the client can analyze the splicing array to obtain the test result.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to implement the board card multi-function test method of any one of claims 1 to 7.
10. A computer readable storage medium storing computer executable instructions which, when invoked and executed by a processor, cause the processor to implement the board card multi-function test method of any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310842501.3A CN116820864B (en) | 2023-07-10 | 2023-07-10 | Board card multifunctional test method and device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310842501.3A CN116820864B (en) | 2023-07-10 | 2023-07-10 | Board card multifunctional test method and device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN116820864A true CN116820864A (en) | 2023-09-29 |
CN116820864B CN116820864B (en) | 2024-05-17 |
Family
ID=88112531
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310842501.3A Active CN116820864B (en) | 2023-07-10 | 2023-07-10 | Board card multifunctional test method and device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116820864B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109143019A (en) * | 2017-06-16 | 2019-01-04 | 许继集团有限公司 | A kind of protective relaying device board Auto-Test System |
CN113157508A (en) * | 2021-04-21 | 2021-07-23 | 浪潮(北京)电子信息产业有限公司 | Test method, system, device, equipment and storage medium of embedded system |
CN113848850A (en) * | 2021-09-24 | 2021-12-28 | 北京德为智慧科技有限公司 | BSP board bus interface test method, device and storage medium |
CN114385431A (en) * | 2022-01-13 | 2022-04-22 | 北京全路通信信号研究设计院集团有限公司 | Board card testing method and device, electronic equipment and storage medium |
-
2023
- 2023-07-10 CN CN202310842501.3A patent/CN116820864B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109143019A (en) * | 2017-06-16 | 2019-01-04 | 许继集团有限公司 | A kind of protective relaying device board Auto-Test System |
CN113157508A (en) * | 2021-04-21 | 2021-07-23 | 浪潮(北京)电子信息产业有限公司 | Test method, system, device, equipment and storage medium of embedded system |
CN113848850A (en) * | 2021-09-24 | 2021-12-28 | 北京德为智慧科技有限公司 | BSP board bus interface test method, device and storage medium |
CN114385431A (en) * | 2022-01-13 | 2022-04-22 | 北京全路通信信号研究设计院集团有限公司 | Board card testing method and device, electronic equipment and storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN116820864B (en) | 2024-05-17 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108255701B (en) | Scene testing method and mobile terminal | |
CN105991358B (en) | Method, device, test board and system for testing interface board flow | |
CN111786854B (en) | Network card testing method and device, electronic equipment and readable storage medium | |
CN107193699A (en) | One kind tests the wide time-delay method of HCA cassette tapes automatically by RDMA modes | |
CN108647131B (en) | Output system of running log | |
CN115600532A (en) | Method and device for checking out ability of IP (Internet protocol) core | |
CN111813622A (en) | Equipment monitoring method and device | |
CN116820864B (en) | Board card multifunctional test method and device, electronic equipment and storage medium | |
US8391162B2 (en) | Apparatus and method for testing SMNP cards | |
CN112422485B (en) | Communication method and device of transmission control protocol | |
CN106257257B (en) | A kind of method, apparatus and virtual vector analyzer detecting optical module planisphere | |
CN116319320A (en) | Network performance optimization method, system, electronic equipment and medium | |
CN115827410A (en) | Test method and device of performance evaluation tool, test equipment and storage medium | |
CN109472012A (en) | A kind of management method and device of electronization test report | |
CN114301991B (en) | Communication method, device, system and computer readable storage medium | |
CN113645052B (en) | Firmware debugging method and related equipment | |
WO2021128936A1 (en) | Message processing method and apparatus | |
CN110401576B (en) | Network interaction testing method and device | |
CN114500688B (en) | Method, device, terminal and storage medium for identifying equipment protocol | |
CN112698995B (en) | Serial port information positioning method, device and system | |
CN118353972A (en) | Onboard equipment network card and onboard equipment communication system | |
CN115687065A (en) | Test script generation method and device, storage medium and electronic device | |
CN118450014A (en) | Onboard equipment network card and onboard equipment communication system | |
CN116028339A (en) | Method, device and system for testing graphic library of train terminal equipment | |
CN111929615A (en) | Performance detection device and method of magnetic suspension control line and electronic equipment |
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 |