Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic terminal structure diagram of a hardware operating environment according to an embodiment of the present invention.
The terminal in the embodiment of the present invention is a product testing device, and the product testing device may be a terminal device having a processing function, such as a PC (personal computer), a microcomputer, a notebook computer, and a server.
As shown in fig. 1, the terminal may include: a processor 1001, such as a CPU (Central Processing Unit), a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device separate from the processor 1001.
Those skilled in the art will appreciate that the terminal structure shown in fig. 1 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a product test program.
In the terminal shown in fig. 1, the product testing device includes an auxiliary testing box, a testing fixture and an upper computer, the auxiliary testing box is respectively in communication connection with the testing fixture and the upper computer, the testing fixture is in communication connection with a product to be tested, and the processor 1001 can be used for calling a product testing program stored in the memory 1005 and executing the following operations:
testing the product to be tested through the auxiliary test box to obtain a first test result;
sending the first test result from the auxiliary test box to the upper computer;
and processing the first test result through the upper computer to obtain first test information.
Further, the processor 1001 may be configured to invoke a product test program stored in the memory 1005, and further perform the following operations:
testing the universal port of the product to be tested through the auxiliary test box to obtain a universal port test result;
testing the special port of the product to be tested through the auxiliary test box to obtain a special port test result;
and determining a first test result of the product to be tested based on the universal port test result and the special port test result.
Further, the auxiliary test cartridge comprises an auxiliary test card, and the processor 1001 may be configured to call the product test program stored in the memory 1005, and further perform the following operations:
performing function test on the universal input port of the product to be tested through the auxiliary test card to obtain a test result of the universal input port;
performing function test on the universal output port of the product to be tested through the auxiliary test card to obtain a universal output port test result;
and determining the universal port test result of the product to be tested based on the universal input port test result and the universal output port test result.
Further, the auxiliary test box includes several controller area network CAN modules, and the processor 1001 may be configured to call the product test program stored in the memory 1005, and further perform the following operations:
through the CAN modules, performing function test on the special input port of the product to be tested to obtain a test result of the special input port;
through the CAN modules, performing function test on the special output port of the product to be tested to obtain a test result of the special output port;
and determining the special port test result of the product to be tested based on the special input port test result and the special output port test result.
Further, the processor 1001 may be configured to invoke a product test program stored in the memory 1005, and further perform the following operations:
testing the product to be tested through the test fixture to obtain a second test result;
sending the second test result from the test fixture to the upper computer;
and processing the second test result through the upper computer to obtain second test information, and displaying the second test information.
Further, the processor 1001 may be configured to invoke a product test program stored in the memory 1005, and further perform the following operations:
testing the pulse signal of the product to be tested through the test fixture to obtain a pulse test result;
testing the encoder of the product to be tested through the test fixture to obtain an encoder test result;
testing the CAN connection function of the product to be tested through the test fixture to obtain a CAN test result;
and determining a second test result of the product to be tested based on the pulse test result, the encoder test result and the CAN test result.
Further, the test fixture includes a CAN connection test module, and the processor 1001 may be configured to call a product test program stored in the memory 1005, and further perform the following operations:
and testing the CAN connection function of the product to be tested by the CAN connection test module to obtain a CAN test result.
Based on the hardware structure, various embodiments of the product testing method are provided.
The invention provides a product testing method.
Referring to fig. 2, fig. 2 is a flowchart illustrating a first embodiment of a product testing method according to the present invention.
In this embodiment, the product testing method is applied to product testing equipment, the product testing equipment includes an auxiliary testing box, a testing fixture and an upper computer, the auxiliary testing box is respectively in communication connection with the testing fixture and the upper computer, the testing fixture is in communication connection with a product to be tested, and the product testing method includes:
step S10, testing the product to be tested through the auxiliary test box to obtain a first test result;
in this embodiment, the product to be tested is a product to be tested, such as a motion control card, a terminal board, and the like, the motion control card may be an MCC800P control card, an MCC400P control card, and the terminal board may be an ACC800 terminal board, an ACC400 terminal board, and the like. The test fixture is used for fixing and connecting the product to be tested so as to be in communication connection with the product to be tested; the auxiliary test box is used for testing the products to be tested, the auxiliary test box can test various products to be tested, therefore, the auxiliary test box can be fixed and unchanged, and the auxiliary test box can comprise at least one of the following components: an auxiliary test card, a plurality of CAN (Controller Area Network) modules, and the like, wherein the auxiliary test card CAN be a control card such as an MCN420 control card; the host computer is used for right the test result of the product that awaits measuring demonstrates, and this host computer still is used for handling the test result to the test result after the show is handled, this host computer can include following at least one: a terminal device having a processing function, such as a PC (personal computer), a microcomputer, a notebook computer, and a server.
In an embodiment, each of the test fixtures corresponds to one of the products to be tested, that is, one type of the product to be tested corresponds to one of the test fixtures, so that each time a product is tested, only the corresponding test fixture needs to be selected according to the type of the current product to be tested, that is, the test fixture is replaceable, so that the product to be tested can be quickly replaced.
In another embodiment, each of the test fixtures corresponds to a plurality of products to be tested, that is, the test fixture can correspond to one or more types of products to be tested, and the test fixture can be compatible with a plurality of types of products to be tested, so that the product test can be performed without replacing the test fixture.
In this embodiment, the auxiliary test box is used to test the product to be tested to obtain a first test result. Specifically, the auxiliary test box is in communication connection with the test fixture, and the test fixture is in communication connection with the product to be tested, so that the auxiliary test box can be in communication connection with the product to be tested, and further the auxiliary test box can acquire a port signal of the product to be tested, thereby testing the product to be tested.
In one embodiment, the step S10 includes:
and testing the port signal of the product to be tested through the auxiliary test box to obtain a port test result. The ports include a general port and a dedicated port, and specific execution flows may refer to the second embodiment described below, which is not described in detail herein.
In another embodiment, the step S10 includes:
and testing the hand wheel function of the product to be tested through the auxiliary test box. Specifically, the auxiliary test box comprises an auxiliary test card, and the auxiliary test card is used for testing the hand wheel function of the product to be tested. The auxiliary test card can be a control card such as an MCN420 control card.
Step S20, sending the first test result from the auxiliary test box to the upper computer;
in this embodiment, the first test result is sent to the upper computer from the auxiliary test box, so that the upper computer processes the first test result to obtain first test information, and the first test information is displayed.
And step S30, processing the first test result through the upper computer to obtain first test information.
In this embodiment, the first test result is processed by the upper computer to obtain first test information. Specifically, the upper computer comprises test software, and the test software is used for displaying the test result of the product to be tested.
It should be noted that after the first test information is obtained, the first test information is displayed through the upper computer.
In one embodiment, the test software comprises a test interface, a test query interface, a test configuration interface and a test management interface; the test interface is used for displaying the current test items; the test query interface is used for querying the product to be tested; the test configuration interface is used for configuring the product to be tested; and the test management interface is used for setting the authority of the tester.
Furthermore, the test software also comprises a test management item and a communication state; the test management item is used for switching the interface of the test software so as to switch among the test interface, the test query interface, the test configuration interface and the test management interface; the communication state is used for identifying whether each component in the test equipment is in normal communication.
In some embodiments, the test interface comprises a test item display area, a product number, a test key area and a test information printing area; the test item display area is used for displaying the current test item; the product code is used for identifying the product to be detected; the test key area is used for controlling the test process of the product to be tested; and the test information printing area is used for displaying the test information of the product to be tested.
Further, the test item display area may include at least one of: selection options, test steps, function names, test criteria (lower limit), test criteria (upper limit), test values, test displays, signals under test, test principles, and the like.
Further, the product number may be a test card barcode, such as 12345.
Further, the test key area at least comprises one of the following: start test, terminate test, power up, power down, automatic test, etc.
In some embodiments, the test query interface includes product query conditions, test data summary, and product test information; the product query condition is used for providing a condition query function; the test data summarization is used for displaying the test data; and the product test information is used for displaying the test information of the product to be tested.
Further, the summary of test data includes at least one of: serial number, test time, bar code, tester, test result, additional storage option, etc.
Further, the product test information includes at least one of: the test method comprises the steps of testing the product to be tested, type information (product type, firmware version, hardware version, dynamic library version and the like) of the product to be tested, test results (pass and fail) of the product to be tested, whether the current test is finished or not and the like.
In some embodiments, the test configuration interface includes a product parameter configuration area, a configuration file loading area; the product parameter configuration area is used for configuring the product parameters of the product to be tested; and the configuration file loading area is used for loading a configuration file.
Further, the product parameter configuration area at least comprises one of the following: steps, parameters, values, minimum values, maximum values, remarks and the like.
In some embodiments, the test management interface includes a user permission display and a user permission setting; the user permission display is used for displaying the permission of the user; and the user permission setting is used for setting the permission of the user.
Further, the user rights display includes at least one of: serial number, user name, test authority, query authority, management authority, test configuration authority, deletion and the like.
Further, the user authority setting includes at least one of: user name, password, test authority, inquiry authority, management authority, test configuration authority and the like.
The embodiment of the invention provides a product testing method, which is applied to product testing equipment, wherein the product testing equipment comprises an auxiliary testing box, a testing clamp and an upper computer, the auxiliary testing box is respectively in communication connection with the testing clamp and the upper computer, the testing clamp is in communication connection with a product to be tested, and the product to be tested is tested through the auxiliary testing box to obtain a first testing result; sending the first test result from the auxiliary test box to an upper computer; and processing the first test result through the upper computer to obtain first test information. By the mode, the software and the hardware are combined to automatically test the functional items of the product to be tested, so that the test result is automatically judged and output, and the product test efficiency is improved. Meanwhile, the conditions of missing test and few test can be avoided, and the product test quality is improved. In addition, through the auxiliary test box, can test different products that await measuring, need not to build different test environment according to the product of difference to avoid appearing broken string, contact failure scheduling problem, and then further improve product efficiency of software testing and product test quality.
Further, based on the above first embodiment, a second embodiment of the product testing method of the present invention is proposed.
In this embodiment, the step S10 includes:
step A11, testing the universal port of the product to be tested through the auxiliary test box to obtain a universal port test result;
in this embodiment, the auxiliary test box is used to test the universal port of the product to be tested, so as to obtain a universal port test result. Specifically, the function test is carried out on the universal input port of the product to be tested through the auxiliary test box, and a universal input port test result is obtained; and performing function test on the universal output port of the product to be tested through the auxiliary test box to obtain a universal output port test result.
It should be noted that the universal port test result may include a high level and a low level.
In one embodiment, the assistant test box includes an assistant test card, and the step a11 includes:
step A111, performing a function test on the universal input port of the product to be tested through the auxiliary test card to obtain a universal input port test result;
step A112, performing a function test on the universal output port of the product to be tested through the auxiliary test card to obtain a universal output port test result;
step A113, determining a universal port test result of the product to be tested based on the universal input port test result and the universal output port test result.
In this embodiment, the auxiliary test card is used to perform a function test on the universal input port of the product to be tested, so as to obtain a test result of the universal input port; performing function test on the universal output port of the product to be tested through the auxiliary test card to obtain a universal output port test result; and finally, determining the universal port test result of the product to be tested based on the universal input port test result and the universal output port test result.
In some embodiments, the auxiliary test card is an MCN420 control card, and the step a111 includes:
and performing function test on the universal input port of the product to be tested through the MCN420 control card to obtain a universal input port test result.
In some embodiments, the auxiliary test card is an MCN420 control card, and the step a112 includes:
and performing function test on the universal output port of the product to be tested through the MCN420 control card to obtain a universal output port test result.
Step A12, testing the special port of the product to be tested through the auxiliary test box to obtain a special port test result;
in this embodiment, the special port of the product to be tested is tested by the auxiliary test box to obtain a special port test result. Specifically, the special input port of the product to be tested is subjected to function test through the auxiliary test box, and a test result of the special input port is obtained; and performing function test on the special output port of the product to be tested through the auxiliary test box to obtain a test result of the special output port.
It should be noted that the dedicated port test result may include a high level and a low level.
In one embodiment, the auxiliary test box includes a plurality of controller area network CAN modules, and the step a12 includes:
step A121, performing function test on the special input port of the product to be tested through the plurality of CAN modules to obtain a test result of the special input port;
step A122, performing function test on the special output port of the product to be tested through the plurality of CAN modules to obtain a test result of the special output port;
step A123, determining the special port test result of the product to be tested based on the special input port test result and the special output port test result.
In this embodiment, the function test is performed on the special input port of the product to be tested through the plurality of CAN modules to obtain a test result of the special input port; the special output port of the product to be tested is subjected to function test through the plurality of CAN modules to obtain a special output port test result; and finally, determining the special port test result of the product to be tested based on the special input port test result and the special output port test result.
It should be noted that, a plurality of CAN modules may be set according to actual needs, and specifically, may be determined according to the number of axes of the product to be measured, for example, 4 CAN modules, 2 CAN modules, and the like. The CAN module may be the MCM 1616D.
In some embodiments, the plurality of CAN modules includes 4 CAN modules, and the step a121 includes:
and performing function test on the special input port of the product to be tested through the 4 CAN modules to obtain a test result of the special input port.
Further, the product to be tested is an MCC800P control card or an ACC800 terminal board, and the step a121 includes:
and performing function test on the special input port of the product to be tested through the 4 CAN modules to obtain a test result of the special input port.
In some embodiments, the plurality of CAN modules includes 2 CAN modules, and the step a122 includes:
and performing function test on the special output port of the product to be tested through the 2 CAN modules to obtain a test result of the special output port.
Further, the product to be tested is an MCC400P control card or an ACC400 terminal board, and the step a121 includes:
and performing function test on the special output port of the product to be tested through the 2 CAN modules to obtain a test result of the special output port.
Step A13, determining a first test result of the product to be tested based on the universal port test result and the special port test result.
In this embodiment, the first test result of the product to be tested is determined based on the universal port test result and the dedicated port test result, so that the first test result includes the universal port test result and the dedicated port test result.
In this embodiment, the auxiliary test box is used to test the ports (the universal port and the dedicated port) of the product to be tested, so as to detect whether the input/output function of the product to be tested is normal, thereby further improving the product test efficiency and the product test quality.
Further, based on the first embodiment described above, a third embodiment of the product testing method of the present invention is proposed.
Referring to fig. 3, fig. 3 is a flow chart of a third embodiment of the product testing method of the present invention.
In this embodiment, the test fixture is in communication connection with the upper computer, and the product testing method further includes:
step S40, testing the product to be tested through the test fixture to obtain a second test result;
in this embodiment, the product to be tested is tested by the test fixture to obtain a second test result. Specifically, the pulse signal and/or the encoder and/or the CAN connection function of the product to be tested are tested through the test fixture, and a second test result is obtained.
In one embodiment, the step S40 includes:
and testing the pulse signal of the product to be tested through the test fixture to obtain a pulse test result. The pulse test result may be a pulse output value.
In another embodiment, the step S40 includes:
and testing the encoder of the product to be tested through the test fixture to obtain an encoder test result. The encoder test result may be an encoder count value.
In another embodiment, the step S40 includes:
and testing the CAN connection function of the product to be tested through the test fixture to obtain a CAN test result. The CAN test result comprises normal CAN function and abnormal CAN function. Specifically, the test fixture comprises a CAN connection test module, and the CAN connection test module is used for testing the CAN connection function of the product to be tested to obtain a CAN test result.
In another embodiment, the step S40 includes:
step A41, testing the pulse signal of the product to be tested through the test fixture to obtain a pulse test result;
step A42, testing the encoder of the product to be tested through the test fixture to obtain an encoder test result;
step A43, testing the CAN connection function of the product to be tested through the test fixture to obtain a CAN test result;
step A44, determining a second test result of the product to be tested based on the pulse test result, the encoder test result and the CAN test result.
In this embodiment, the test fixture is used to test the pulse signal of the product to be tested to obtain a pulse test result; testing the encoder of the product to be tested through the test fixture to obtain an encoder test result; testing the CAN connection function of the product to be tested through the test fixture to obtain a CAN test result; and finally, determining a second test result of the product to be tested based on the pulse test result, the encoder test result and the CAN test result.
In one embodiment, the test fixture includes a CAN connection test module, and the step a43 includes:
and step A431, testing the CAN connection function of the product to be tested through the CAN connection test module to obtain a CAN test result.
In this embodiment, the test module is connected through the CAN, and the CAN connection function of the product to be tested is tested to obtain a CAN test result. The CAN connection test module may be the MCM 1616D.
In another embodiment, the step S40 includes:
acquiring the information to be tested of the product to be tested through the test fixture; sending the information to be tested from the test fixture to the auxiliary test box; and processing the information to be tested through the auxiliary test box to obtain a second test result. That is, the second test result is also obtained by the auxiliary test cartridge.
Step S50, sending the second test result from the test fixture to the upper computer;
in this embodiment, the second test result is sent from the test fixture to the upper computer, so that the upper computer processes the second test result to obtain second test information, and the second test information is displayed.
And step S60, processing the second test result through the upper computer to obtain second test information, and displaying the second test information.
In this embodiment, the second test result is processed by the upper computer to obtain second test information, and the second test information is displayed. Specifically, the upper computer comprises test software, and the test software is used for displaying the test result of the product to be tested.
In one embodiment, the test software comprises a test interface, a test query interface, a test configuration interface and a test management interface; the test interface is used for displaying the current test items; the test query interface is used for querying the product to be tested; the test configuration interface is used for configuring the product to be tested; and the test management interface is used for setting the authority of the tester.
Furthermore, the test software also comprises a test management item and a communication state; the test management item is used for switching the interface of the test software so as to switch among the test interface, the test query interface, the test configuration interface and the test management interface; the communication state is used for identifying whether each component in the test equipment is in normal communication.
In some embodiments, the test interface comprises a test item display area, a product number, a test key area and a test information printing area; the test item display area is used for displaying the current test item; the product code is used for identifying the product to be detected; the test key area is used for controlling the test process of the product to be tested; and the test information printing area is used for displaying the test information of the product to be tested.
Further, the test item display area may include at least one of: selection options, test steps, function names, test criteria (lower limit), test criteria (upper limit), test values, test displays, signals under test, test principles, and the like.
Further, the product number may be a test card barcode, such as 12345.
Further, the test key area at least comprises one of the following: start test, terminate test, power up, power down, automatic test, etc.
In some embodiments, the test query interface includes product query conditions, test data summary, and product test information; the product query condition is used for providing a condition query function; the test data summarization is used for displaying the test data; and the product test information is used for displaying the test information of the product to be tested.
Further, the summary of test data includes at least one of: serial number, test time, bar code, tester, test result, additional storage option, etc.
Further, the product test information includes at least one of: the test method comprises the steps of testing the product to be tested, type information (product type, firmware version, hardware version, dynamic library version and the like) of the product to be tested, test results (pass and fail) of the product to be tested, whether the current test is finished or not and the like.
In some embodiments, the test configuration interface includes a product parameter configuration area, a configuration file loading area; the product parameter configuration area is used for configuring the product parameters of the product to be tested; and the configuration file loading area is used for loading a configuration file.
Further, the product parameter configuration area at least comprises one of the following: steps, parameters, values, minimum values, maximum values, remarks and the like.
In some embodiments, the test management interface includes a user permission display and a user permission setting; the user permission display is used for displaying the permission of the user; and the user permission setting is used for setting the permission of the user.
Further, the user rights display includes at least one of: serial number, user name, test authority, query authority, management authority, test configuration authority, deletion and the like.
Further, the user authority setting includes at least one of: user name, password, test authority, inquiry authority, management authority, test configuration authority and the like.
In this embodiment, through the test fixture, the product to be tested is tested to detect whether the function of the product to be tested is normal, thereby further improving the product test efficiency and the product test quality.
The invention also provides a product testing system, which comprises an auxiliary testing box, a testing fixture and an upper computer, wherein the auxiliary testing box is respectively in communication connection with the testing fixture and the upper computer, the testing fixture is in communication connection with a product to be tested,
the auxiliary test box is used for testing the product to be tested to obtain a test result;
the upper computer is used for processing the test result to obtain test information;
the test fixture is used for fixing and connecting the product to be tested;
the product testing system further comprises: a memory, a processor and a product test program stored on the memory and executable on the processor, the product test program when executed by the processor implementing the steps of the product test method as described in any one of the above embodiments.
The specific embodiment of the product testing system of the present invention is basically the same as the embodiments of the product testing method described above, and is not described herein again.
In an embodiment, referring to fig. 4, fig. 4 is a schematic diagram of a system architecture according to an embodiment of the present invention. The auxiliary test box is in communication connection with the test fixture and the upper computer, the test fixture is in communication connection with a product to be tested, and the test fixture is in communication connection with the upper computer.
The invention also provides a computer readable storage medium having stored thereon a product testing program which, when executed by a processor, implements the steps of the product testing method as described in any one of the above embodiments.
The specific embodiment of the computer-readable storage medium of the present invention is substantially the same as the embodiments of the product testing method described above, and is not described herein again.
The invention also provides a computer program product comprising a computer program which, when executed by a processor, implements the steps of the product testing method as described in any one of the above embodiments.
The specific embodiment of the computer program product of the present invention is substantially the same as the embodiments of the product testing method described above, and is not described herein again.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) as described above and includes instructions for enabling a terminal device (e.g., a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the contents of the present specification and the accompanying drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.