Automated testing system, method and storage medium based on virtual placement machine simulation system
Through an automated testing system based on the virtual patch machine simulation system, the inefficiency problem caused by the functional testing of traditional patch machine software is solved, automated testing and rapid problem positioning are realized, and testing efficiency is improved.
Patent Information
- Application Number
- CN202411882189.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-19
- Publication Date
- 2025-04-18
- Estimated Expiration
- 2044-12-19
AI Technical Summary
Functional testing of traditional patch machine software requires occupancy of physical equipment, resulting in inefficient testing progress and efficiency, and the inability to automatically locate and analyze test problems.
An automated testing system based on the virtual patch machine simulation system is adopted, including the main control board module and the monitoring instruction module. The virtual simulation system does not require physical equipment to be occupied for testing, and the monitoring instruction module is used to record and analyze the instruction execution status to locate and analyze the test exceptions.
It realizes that the patch machine software functional testing can be carried out without occupancy of physical patch machine equipment, improves the testing efficiency and automation level, can quickly locate and analyze test problems, and reduces the time for problem investigation.
Smart Images

Figure CN119322727B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of chip mounter electronic technology, and in particular to an automated testing system, method and storage medium based on a virtual chip mounter simulation system. Background Art
[0002] When using traditional SMT equipment to perform functional testing of SMT software, it is necessary to run the SMT software on the SMT equipment to perform software functional testing, which brings the following problems. On the one hand, the use of SMT equipment by testers will occupy the production tasks and plans scheduled by production personnel to use the SMT equipment. At the same time, there will also be the problem of coordinating time when sharing a device with other R&D personnel, which seriously affects the progress of testers in performing SMT software functional testing. The efficiency will be very low, which will bring great time costs. On the other hand, testers use traditional software testing methods to perform functional testing on SMT software, and some problems existing in the functional testing of SMT software cannot be automatically located and analyzed. The low testing efficiency affects the progress of the project.
[0003] Therefore, the prior art lacks a solution that can perform SMT software function testing without occupying SMT equipment and can automatically test, quickly locate and analyze test problems, and meet the needs of automated testing. Summary of the invention
[0004] The purpose of the present invention is to overcome the problems existing in the prior art. The present invention proposes an automated testing system, method and storage medium based on a virtual placement machine simulation system, which can not only perform placement machine software function testing without occupying placement machine equipment, but also can automatically test, quickly locate and analyze test problems, and meet the needs of automated testing.
[0005] In order to achieve the above-mentioned object, the first aspect of the present invention provides a virtual placement machine simulation system, including a main control board module and a monitoring instruction module;
[0006] The main control board module is used to receive instructions from the host computer to implement the test function of the virtual placement machine simulation system;
[0007] The monitoring instruction module is used to record the execution status of the instructions sent by the host computer to the main control board module, and locate and analyze abnormal situations in the test according to the execution status of the instructions.
[0008] The second aspect of the present invention provides an automated testing system based on a virtual placement machine simulation system, comprising a host computer, a test creation system and the virtual placement machine simulation system.
[0009] The test creation system is used to start the batch test script, start the host computer to perform automated testing, and parse the report results of each test case script according to the test results, and retrieve the test case script corresponding to the failed execution result;
[0010] The host computer is used to start the batch test script to run the placement machine software, and send the relevant instructions of the placement machine software to the virtual placement machine simulation system;
[0011] The virtual placement machine simulation system is used to record the execution status of instructions through the monitoring instruction module, locate and analyze abnormal situations in the test according to the test case script and instruction execution status corresponding to the failed execution result, and feed back the located and analyzed abnormal situations to the test creation system.
[0012] The third aspect of the present invention provides an automated testing method based on a virtual placement machine simulation system, comprising the following process:
[0013] The test creation system starts the batch test script, starts the host computer for automated testing, automatically generates a test report corresponding to each test case script, and parses the generated test reports. If the test report execution results are all passed, it means the test is passed; if the test report execution result is failed, the test case script corresponding to the test report with the failed execution result is retrieved, and the time corresponding to the operation steps where the test case script execution failed is checked in turn;
[0014] The host computer performs automated testing and sends relevant instructions of the batch test script to the virtual placement machine simulation system. At the same time, the virtual placement machine simulation system records the execution status of the instructions through the monitoring instruction module. According to the time corresponding to the operation steps where the test case script fails to execute, the monitoring instruction module filters out all instructions of the corresponding time, and uses the instruction filtering function unit to filter the instructions based on the instruction information for positioning and analysis.
[0015] A fourth aspect of the present invention provides a computer storage medium, comprising:
[0016] a memory having a computer program stored thereon;
[0017] A processor is used to execute the computer program in the memory to implement the steps of the above-mentioned automated testing method based on the virtual placement machine simulation system.
[0018] Through the above technical scheme, the batch script is executed to perform automated testing on the placement machine software, and the test effect of the placement machine software on the physical placement machine equipment can be obtained, which greatly improves the test efficiency; at the same time, the monitoring instruction module of the virtual placement machine simulation system records the monitoring instructions sent by the placement machine software to the main control board, which is convenient for locating and analyzing abnormal problems in the test, reducing the problem troubleshooting time, and realizing the location analysis of the instructions with failed execution results for each test case script, thereby realizing automated testing and location analysis of batch scripts, effectively improving the test efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 The main structure and information interaction diagram of the automated test system based on the virtual placement machine simulation system of the present invention is shown in FIG. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0021] A first aspect of an embodiment of the present invention provides a virtual placement machine simulation system, including a main control board module and a monitoring instruction module;
[0022] The main control board module is used to receive instructions from the host computer to implement the test function of the virtual placement machine simulation system;
[0023] The monitoring instruction module is used to record the execution of instructions sent by the host computer to the main control board module, and locate and analyze abnormal situations in the test according to the execution of instructions.
[0024] Furthermore, the monitoring instruction module includes an instruction information function unit, an instruction filtering function unit and an instruction processing function unit.
[0025] The instruction information functional unit is used to record instruction information, which includes instruction name, instruction execution status, instruction start time and end time, and instruction object representing the simulation system submodule to which the instruction belongs. The instruction name refers to the name of each instruction sent by the host computer to the main control board module recorded by the monitoring instruction module. Each instruction name contains a variable name and a variable value. The variable name is the instruction parameter and timestamp of the instruction name, and the variable value is the attribute value corresponding to the instruction parameter and timestamp of the instruction name; the instruction filtering functional unit filters instructions based on the instruction name to locate the specific information of the query instruction without viewing the code. The instruction status refers to the execution status of each instruction sent by the SMT software (i.e., the host computer) to the main control board module. There are 6 states: not yet started, waiting to start, executing, completed, timed out, and timestamp exception; the instruction start time refers to the execution start time of each instruction sent by the SMT software to the main control board module; the instruction end time refers to the execution end time of each instruction sent by the SMT software to the main control board module; the instruction execution time is the difference between the execution end time and the execution start time; the instruction object refers to the module to which each instruction sent by the SMT software to the main control board module belongs, that is, the module included in the system submodule mentioned above;
[0026] The instruction filtering function unit is used to perform the filtering function when an abnormality occurs in the test function, and to filter instructions based on the instruction information for positioning and analysis, including keyword filtering, instruction execution status filtering, instruction object filtering, time filtering, and module filtering. Keyword filtering is to filter the currently recorded instruction information according to the keyword; the instruction object filtering is to filter according to the object to which the instruction belongs, including the transmission module, automatic tray module, peripheral module, identification module, feeder module, XY motion module, placement head module, XY axis, Z1-Z10 axis, PU axis, W axis, AH axis, AZ axis, flying camera 1-5, R axis; the instruction execution status refers to the execution status of each instruction sent by the host computer to the main control board module, including not yet started, waiting to start, executing, completed, timeout and timestamp exception; the time filtering is to filter according to the instruction start timestamp and end timestamp; the module filtering is to filter according to the module to which the instruction belongs, including the placement machine software interactive instruction module, main control board module, transmission module, automatic tray module, peripheral module, identification module, feeder module, XY motion module and placement head module;
[0027] The instruction processing functional unit is used for instruction pause, instruction clearing or instruction search; the instruction pause means that the reception of instructions sent by the upper computer to the main control board module can be paused to avoid continuous refreshing of instructions and inability to view; the instruction clearing means that all instruction information currently received can be cleared; the instruction search supports retrieval of currently recorded instruction information.
[0028] The virtual SMT simulation model is used to simulate the physical SMT equipment, which makes it easy to test the SMT software without the physical SMT equipment. By establishing communication between the host computer - the SMT software and the virtual SMT simulation model, batch scripts are used to automate the testing of the SMT software, which can obtain the test effect of the SMT software on the physical SMT equipment, greatly improving the test efficiency. In addition, the instruction data recorded by the monitoring instruction module of the virtual SMT simulation model facilitates the location and analysis of abnormal problems in the test, reducing the time for troubleshooting.
[0029] In addition, the virtual placement machine simulation system of the embodiment of the present invention also includes a main control board module, an event bus, an axis motion simulation module and a system submodule.
[0030] The main control board module is used to receive the event bus sent by the placement machine software;
[0031] System submodule, used to simulate the status of the placement machine submodule, including the conveyor module, automatic tray module, peripheral module, identification module, feeder module, XY motion module, and placement head module;
[0032] The conveying module is used to simulate the state of the conveying track of the placement machine; the automatic tray module is used to simulate the use state of each layer of the automatic tray of the placement machine; the peripheral module is used to simulate the state of the placement machine panel buttons, buzzer and three-color light; the identification module is used to simulate the state of the placement machine camera and component identification mode; the feeder module is used to simulate the use state of the placement machine feeder; the XY module is used to realize various control simulation functions of the X-axis and Y-axis; the placement head module is used to realize the simulation of the functions of sucking components, identifying components, placing components, moving each axis of the placement head, suction of the placement head nozzle, blowing of the placement head nozzle, and stopping of the placement head nozzle in the placement machine;
[0033] Axis motion simulation module, used to simulate the status of each axis of the placement machine;
[0034] The event bus includes an event receiving cache unit and an event management unit; the event receiving cache unit is used to receive control events sent by the main control board module, and task events returned by the system submodule and the axis motion simulation module; the event management unit is used to distribute the control events and task events stored in the event receiving cache unit. The control event sends the corresponding event to all subscribers who subscribe to the corresponding type of event (main control board module, system submodule, axis motion simulation module, and placement machine software) according to the event type.
[0035] Based on the same inventive concept, the second aspect of the present invention provides an automated testing system based on a virtual placement machine simulation system, such as Figure 1 As shown, it includes a host computer, a test creation system and a virtual placement machine simulation system.
[0036] The test creation system is used to start the batch test script, start the host computer to perform automated testing, and parse the report results of each test case script according to the test results, and retrieve the test case script corresponding to the failed execution result;
[0037] The host computer is used to start the batch test script to run the placement machine software, and send the relevant instructions of the placement machine software to the virtual placement machine simulation system;
[0038] The virtual placement machine simulation system is used to record the execution status of instructions through the monitoring instruction module, locate and analyze abnormal situations in the test according to the test case script corresponding to the failed execution result and the instruction execution status, specifically: according to the execution time and end time of the test case script corresponding to the failed execution result, the time filtering in the instruction filtering unit of the monitoring instruction module selects all instructions of the corresponding time, checks the instruction status of all instructions, locates the instructions with abnormal instruction status, checks the objects to which the abnormal instructions belong and the variable names and variable values contained in the instruction information for analysis, and finally feeds back the located and analyzed abnormal situations to the test creation system.
[0039] Through inter-process communication between the placement machine software and the virtual placement machine simulation model, batch scripts are executed to perform automated testing on the placement machine software. At the same time, the monitoring instruction module of the virtual placement machine simulation model records the monitoring instructions sent by the placement machine software to the main control board, so as to locate and analyze the problems of instructions with failed or erroneous execution results of each test case script, thereby realizing automated testing of batch scripts and effectively improving testing efficiency.
[0040] The third aspect of the present invention provides an automated testing method based on a virtual placement machine simulation system. Figure 1 As shown, the following process is included:
[0041] The test creation system starts the batch test script, starts the host computer for automated testing, automatically generates a test report corresponding to each test case script, and parses the generated test reports. If the test report execution results are all passed, it means the test is passed; if the test report execution result is failed, the test case script corresponding to the test report with the failed execution result is retrieved, and the time corresponding to the operation steps where the test case script execution failed is checked in turn;
[0042] The host computer performs automated testing and sends relevant instructions of the batch test script to the virtual placement machine simulation system. At the same time, the virtual placement machine simulation system records the execution status of the instructions through the monitoring instruction module. According to the time corresponding to the operation steps where the test case script fails to execute, the monitoring instruction module filters out all instructions of the corresponding time, and uses the instruction filtering function unit to filter the instructions based on the instruction information for positioning and analysis.
[0043] A fourth aspect of the present invention provides a computer storage medium, comprising:
[0044] a memory having a computer program stored thereon;
[0045] A processor is used to execute the computer program in the memory to implement the steps of the automated testing method based on the virtual placement machine simulation system.
[0046] To sum up, the technical solution of the present invention performs inter-process communication between the placement machine software and the virtual placement machine simulation model, and executes the batch script to perform automated testing on the placement machine software, so as to obtain the test effect of the placement machine software on the physical placement machine equipment, thereby greatly improving the test efficiency; at the same time, the monitoring instruction module of the virtual placement machine simulation model records the monitoring instructions sent by the placement machine software to the main control board, which is convenient for locating and analyzing abnormal problems existing in the test, reducing the problem troubleshooting time, and realizing the location analysis of the instructions with failed or erroneous execution results for each test case script, thereby realizing automated testing and location analysis of the batch script, and effectively improving the test efficiency.
[0047] The preferred embodiments of the present invention are described in detail above in conjunction with the accompanying drawings, but the present invention is not limited thereto. Within the technical concept of the present invention, the technical solution of the present invention can be subjected to a variety of simple modifications, including the combination of various specific technical features in any suitable manner. In order to avoid unnecessary repetition, the present invention will not further describe various possible combinations. However, these simple modifications and combinations should also be regarded as the contents disclosed by the present invention and belong to the protection scope of the present invention.
Claims
1. A virtual placement machine simulation system, characterized in that: Including main control board module and monitoring command module; The main control board module is used to receive instructions from the host computer to implement the test function of the virtual placement machine simulation system; The monitoring instruction module is used to record the execution of instructions sent by the host computer to the main control board module, and locate the abnormal situation in the analysis test according to the execution of the instructions; the monitoring instruction module includes an instruction information function unit and an instruction filtering function unit, and the instruction information function unit is used to record instruction information, and the instruction information includes the instruction name, instruction execution status, instruction start time and end time, and the instruction object representing the simulation system submodule to which the instruction belongs; The instruction filtering function unit is used to execute the filtering function when the test function is abnormal, and filter the instructions based on the instruction information for positioning and analysis, including keyword filtering, instruction execution status filtering, instruction object filtering, time filtering, and module filtering; the instruction object filtering is to filter according to the object to which the instruction belongs, and the objects include transmission module, automatic tray module, peripheral module, identification module, feeder module, XY motion module, placement head module, XY axis, Z axis, PU axis, W axis, AH axis, AZ axis and flying camera, R axis; the time filtering is to filter according to the instruction start execution timestamp and execution end timestamp; the module filtering is to filter according to the module to which the instruction belongs.
2. The simulation system according to claim 1, characterized in that: The instruction name refers to the name of each instruction sent by the host computer to the main control board module as recorded by the monitoring instruction module. Each instruction name contains a variable name and a variable value. The variable name is the instruction parameter and timestamp of the instruction name, and the variable value is the attribute value corresponding to the instruction parameter and timestamp of the instruction name respectively. The instruction filtering function unit filters instructions based on the instruction name to locate or query the specific information of the instruction without viewing the code.
3. The simulation system according to claim 1, characterized in that: The keyword filtering is to filter the currently recorded instruction information according to the keyword. The instruction execution status refers to the execution status of each instruction sent by the host computer to the main control board module, including not yet started, waiting to start, executing, completed, timed out, and timestamp abnormal; The module filtering is performed according to the module to which the instruction belongs, including the placement machine software interactive instruction module, the main control board module, the transmission module, the automatic tray module, the peripheral module, the identification module, the feeder module, the XY motion module and the placement head module.
4. The system according to any one of claims 1 to 3, characterized in that: The monitoring instruction module also includes an instruction processing functional unit, which is used for instruction pause, instruction clearing or instruction search; the instruction pause refers to pausing the reception of instructions sent by the upper computer to the main control board module to avoid continuous refreshing of instructions and inability to view; the instruction clearing refers to clearing all currently received instruction information; the instruction search supports retrieval of currently recorded instruction information.
5. An automated testing system based on a virtual placement machine simulation system, characterized in that: It comprises a host computer, a test creation system and a virtual placement machine simulation system as described in any one of claims 1 to 4, The test creation system is used to start the batch test script, start the host computer to perform automated testing, and parse the report results of each test case script according to the test results, and retrieve the test case script corresponding to the failed execution result; The host computer is used to start the batch test script to run the placement machine software, and send the relevant instructions of the placement machine software to the virtual placement machine simulation system; The virtual placement machine simulation system is used to record the execution status of instructions through the monitoring instruction module, locate and analyze abnormal situations in the test according to the test case script and instruction execution status corresponding to the failed execution result, and feed back the located and analyzed abnormal situations to the test creation system.
6. The automated testing system according to claim 5, characterized in that: The virtual placement machine simulation system is used to record the execution of instructions through the monitoring instruction module, and locate and analyze abnormal situations in the test according to the test case script corresponding to the failed execution result and the instruction execution situation, specifically: According to the execution time and end time of the test case script corresponding to the failed execution result, the time filter in the instruction filtering unit of the monitoring instruction module selects all instructions of the corresponding time, checks the instruction status of all instructions, locates the instructions with abnormal instruction status, checks the object to which the abnormal instructions belong and the variable name and variable value contained in the instruction information for analysis.
7. The automated testing system according to claim 5 or 6, characterized in that: The host computer includes a main process module, an interface reading module, an identification module, an initialization module, a status monitoring module, a picture receiving module, and a production module. The main process module is used for process management and resource allocation; The interface reading module is used to obtain the interface information of the submodules in the virtual placement machine simulation system; The recognition module is used to recognize component images taken by the bottom mirror camera and the flying camera in the production process; The initialization module is used to initialize the component status information of the virtual placement machine simulation system submodule; The state monitoring module is used to monitor the component state information of the submodules in the virtual placement machine simulation system in real time; The image receiving module is used to obtain images taken by the bottom mirror camera and the flying camera; The production module is used to control the virtual placement machine simulation system to perform a production process after the host computer establishes communication with the virtual placement machine simulation system, thereby simulating the actual placement machine equipment production process.
8. An automated testing method based on a virtual placement machine simulation system, characterized in that: The process includes: The test creation system starts the batch test script, starts the host computer for automated testing, automatically generates a test report corresponding to each test case script, and parses the generated test reports. If the test report execution results are all passed, the test is passed; If the test report execution result is failure, then retrieve the test case script corresponding to the test report with the failed execution result, and check the time corresponding to the operation steps of the test case script execution failure in turn; The upper computer performs automated testing and sends related instructions of the batch test script to the virtual placement machine simulation system. At the same time, the virtual placement machine simulation system records the execution of instructions through the monitoring instruction module. According to the time corresponding to the operation steps where the test case script fails to execute, the monitoring instruction module filters out all instructions of the corresponding time, and uses the instruction filtering function unit to filter instructions based on the instruction information for positioning and analysis; the monitoring instruction module includes an instruction information function unit and an instruction filtering function unit, and the instruction information function unit is used to record instruction information, and the instruction information includes an instruction name, an instruction execution status, an instruction start time and an end time, and an instruction characterizing the simulation system submodule to which the instruction belongs. The instruction object; the instruction filtering function unit is used to perform the filtering function when an abnormality occurs in the test, and filter the instructions based on the instruction information for positioning and analysis, including keyword filtering, instruction execution status filtering, instruction object filtering, time filtering, and module filtering; the instruction object filtering is to filter according to the object to which the instruction belongs, and the objects include transmission module, automatic tray module, peripheral module, identification module, feeder module, XY motion module, placement head module, XY axis, Z axis, PU axis, W axis, AH axis, AZ axis and flying camera, R axis; the time filtering is to filter according to the instruction start execution timestamp and execution end timestamp; the module filtering is to filter according to the module to which the instruction belongs.
9. A computer storage medium, characterized in that include: a memory having a computer program stored thereon; A processor, configured to execute the computer program in the memory to implement the steps of the method according to claim 8.
Citation Information
Patent Citations
Virtual chip mounter simulation system and method and storage medium
CN116108707A
Test system, method, equipment and medium
CN117992326A