A method for one-key testing of a terminal product
Through a one-click test method for terminal products, simple configuration and management of testing steps are realized, the problem of dependence on technicians in the existing technology is solved, and production efficiency and autonomous capabilities are improved.
Patent Information
- Application Number
- CN202110676972.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-18
- Publication Date
- 2025-06-10
- Estimated Expiration
- 2041-06-18
AI Technical Summary
In the prior art, the testing software for terminal products requires frequent modifications by the technical department, resulting in high dependence on professional and technical personnel, cumbersome operation and low efficiency.
A one-click test method for terminal products is adopted. By simply configuring and saving the test steps, the steps are added, deleted, modified and sequentially replaced, and the dependence on technicians are separated and production efficiency is improved.
It realizes flexible configuration and management of test steps, reduces dependence on technicians, and improves the autonomous capabilities and work efficiency of the production test team.
Smart Images

Figure CN113342666B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of factory testing of products, and particularly to a method for one-key testing of terminal products. Background Art
[0002] Currently, for the test software of terminal products in manufacturing enterprises, generally, the host computer is customized and developed for terminal products. With the continuous iteration of product firmware, the addition, deletion, modification, and sequence adjustment of the test sequence of the device all require the technical department to continuously track and modify the host computer software to meet the changing requirements. However, the direct tracking and modification of the host computer by the technical department has a relatively high dependence on technology, and the operation by professional personnel is a cumbersome and time-consuming task. Therefore, how to achieve simplified operation and reduce the dependence on professional technical personnel is a technical problem that urgently needs to be solved. Summary of the Invention
[0003] The object of the present invention is to provide a method for one-key testing of terminal products, which enables users to complete the requirements such as addition, deletion, modification, and sequence adjustment of test steps by simply configuring and saving the test steps. The production test group can complete it by themselves, getting rid of the dependence on technical personnel and improving production efficiency.
[0004] The technical solution adopted by the present invention is as follows:
[0005] A method for one-key testing of terminal products, comprising the following steps:
[0006] First, start three timers t1, t2, and t3; t1 is used to receive the message data of the product, t2 is used to judge the reception timeout, and t3 is used to judge the step delay and enter the next step after the step is completed;
[0007] Convert the issued message defined in the step into a message recognizable by the device and send it to the device under test through the serial port;
[0008] After receiving the correct return message of the device and parsing it, check whether the current step needs to be judged;
[0009] If judgment is required, according to the starting sequence number and ending sequence number of the judgment criterion defined in the step, obtain the corresponding data in the message, and check whether the judgment condition is a number or text. If it is a number, judge whether it meets the requirements according to the upper and lower limits of the numbers in the step. If it is text, judge whether it meets the requirements according to the text comparison;
[0010] If it meets the requirements, judge whether a pause operation is required. If so, pause and wait for the user to intervene and confirm, then enter the next step. If there is no pause, judge whether there is a delay configuration. If there is a delay, enter the next step after the delay;
[0011] If it is already the last step, directly output the qualified result and exit the test; if the step does not meet the defined conditions, directly give an unqualified result and exit the test.
[0012] The content format of each step in the described test step file is as follows:
[0013] 1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|
[0014] Specifically: 1. Step name; 2. Issued content, i.e., text; 3. Judgment criterion: 0 - not judged, 1 - judged, 2 - manually judged; 4. Judgment content format, 0 - number, 1 - text; 5. Starting sequence number of the criterion; 6. Ending sequence number of the criterion;
[0015] 7. Upper limit of the number: valid when the judgment content format is 0; 8. Lower limit of the number: valid when the judgment content format is 0; 9. Judgment content format of text data is valid when it is 1; 10. Delay seconds; 11. Whether to pause the prompt message; 12. Prompt message; 13. Whether to extract and store information; 14. Starting character of the extracted information; 15. Ending character of the extracted information.
[0016] The present invention integrates the process information of production testing, and then can conveniently implement the modification and debugging of each module by editing the test message, that is, integrates the calculation processes requiring technical principles, and only conveys and verifies the changes and important parameters in the form of the message, so that the modification and call of the entire test process can be conveniently realized, and the complex test process can be intuitively known, judged and modified by the operator through the form of process judgment and selection, so that the user can complete the requirements such as addition, deletion, modification and sequence swapping of test steps by simply configuring and saving the test steps, and the production test group can complete it by itself, getting rid of the dependence on technical personnel and improving production efficiency. Brief Description of the Drawings
[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the drawings required to be used in the description of the embodiments or the prior art. Obviously, the following drawings are only some embodiments of the present invention, and those of ordinary skill in the art can obtain other drawings without creative efforts based on these drawings.
[0018] Figure 1 It is the flowchart of the present invention. Detailed Embodiments
[0019] Next, the technical solutions in the embodiments of the present invention will be clearly and completely described in conjunction with the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present invention without creative efforts shall fall within the protection scope of the present invention.
[0020] As Figure 1 shown, the present invention includes a method for one-key testing of terminal products, which includes the following steps:
[0021] First, start three timers t1, t2, and t3; t1 is used to receive the message data of the product, t2 is used to judge the reception timeout, and t3 is used to judge the step delay and enter the next step after the step is completed;
[0022] Convert the issued message defined in the step into a message recognizable by the device and send it to the device under test through the serial port;
[0023] After receiving the correct return message of the device and parsing it, check whether the current step needs to be judged;
[0024] If judgment is required, according to the starting sequence number and ending sequence number of the judgment criteria defined in the step, obtain the corresponding data in the message, and check whether the judgment condition is a number or text. If it is a number, judge whether it is satisfied according to the upper and lower limits of the number in the step. If it is text, judge whether it is satisfied according to the text comparison;
[0025] If it is satisfied, judge whether a pause operation is required. If so, pause and wait for the user to intervene and confirm, then enter the next step. If there is no pause, judge whether there is a delay configuration. If there is a delay, enter the next step after the delay;
[0026] If it is already the last step, directly output a qualified result and exit the test; if the step does not meet the defined conditions, directly give an unqualified result and exit the test.
[0027] The content format of each step of the test step file is as follows:
[0028] 1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|
[0029] Specifically: 1. Step name; 2. Issued content, i.e., text; 3. Judgment criterion: 0 - not judge, 1 - judge, 2 - manual judgment; 4. Judgment content format, 0 - number, 1 - text; 5. Starting sequence number of the judgment criterion; 6. Ending sequence number of the judgment criterion;
[0030] 7. Upper Limit of Number: The judgment content format is valid when it is 0; 8. Lower Limit of Number: The judgment content format is valid when it is 0; 9. Text Data: The judgment content format is valid when it is 1; 10. Delay Seconds; 11. Whether to Pause the Prompt Message; 12. Prompt Message; 13. Whether to Extract and Store Information; 14. Starting Character of the Extracted Information; 15. Ending Character of the Extracted Information.
[0031] The general operation process of the production test department is as follows:
[0032] 1. Send a read or set command and wait for a response;
[0033] 2. Judge whether the information in the response message meets the standard or whether the response is correct;
[0034] 3. Judge whether to pause according to the importance level and make a manual judgment (such as lights, sounds, etc.)
[0035] 4. Some steps require delay operations (such as electrical parameter calibration, etc.)
[0036] The abstracted model is as follows:
[0037] The content format of each step in the test step file is as follows:
[0038] 1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|
[0039] Instructions:
[0040] 1. Step Name
[0041] 2. Sent Content (Text)
[0042] 3. Judgment Standard (0 - Do not judge, 1 - Judge, 2 - Manual Judgment)
[0043] 4. Judgment Content Format (0 - Number, 1 - Text)
[0044] 5. Starting Sequence Number of the Criterion
[0045] 6. Ending Sequence Number of the Criterion
[0046] 7. Upper Limit of Number (valid when the judgment content format is 0)
[0047] 8. Lower Limit of Number (valid when the judgment content format is 0)
[0048] 9. Text Data (valid when the judgment content format is 1)
[0049] 10. Delay Seconds
[0050] 11. Whether to Pause the Prompt Message
[0051] 12. Prompt message.
[0052] 13. Whether to extract stored information
[0053] 14. Starting character of the extracted information
[0054] 15. Ending character of the extracted information
[0055] For the sent messages of each step, special codes are used to represent elements in special formats. For example, %s represents the input product number, %c represents the check digit of the sent message, and %t represents the current time.
[0056] Test step description:
[0057] (1) Write a test step file according to the product's test process and import it into the one-key test software;
[0058] (2) Run the one-key test software, read the step file and display it in the list;
[0059] (3) Scan the code or obtain the product number from the platform and input it into the one-key test software;
[0060] (4) Conduct one-key testing and display the process and results;
[0061] After the one-key test starts, three timers t1, t2, and t3 are started. t1 is used to receive the message data of the product, t2 is used to judge the reception timeout, and t3 is used to judge the step delay and enter the next step after the step is completed.
[0062] When starting the test, first, convert the sent message defined in the step into a message recognizable by the device and send it to the device under test through the serial port.
[0063] After receiving and parsing the correct return message from the device, check whether the current step needs to be judged. If judgment is required, according to the starting sequence number and ending sequence number of the judgment criteria defined in the step, obtain the corresponding data in the message, and check whether the judgment condition is a number or text. If it is a number, judge whether it meets the requirements according to the upper and lower limits of the numbers in the step. If it is text, judge whether it meets the requirements according to the text comparison. If it meets, judge whether a pause operation is required. If so, pause and wait for the user to intervene and confirm, then enter the next step. If there is no pause, judge whether there is a delay configuration. If there is a delay, enter the next step after the delay. If it is already the last step, directly give a qualified result and exit the test. If the step does not meet the defined conditions, directly give an unqualified result and exit the test.
[0064] The present invention integrates the process information of production testing, and then conveniently realizes the modification and call of each module by editing the test message form, enabling the complex test process to be intuitively known, judged, and modified by the operator in the form of process judgment and selection. Thus, the user can complete the requirements such as adding, deleting, modifying test steps and swapping their orders by simply configuring and saving the test steps, and the production test group can complete it by itself, getting rid of the dependence on technical personnel and improving production efficiency.
[0065] In the description of the present invention, it should be noted that for orientation terms, such as the terms "center", "horizontal", "vertical", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", etc., the indicated orientation and positional relationship are based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and should not be construed as limiting the specific protection scope of the present invention.
[0066] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances for the embodiments of the present application described herein. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product or device comprising a series of steps or units does not necessarily have to be limited to those steps or units clearly listed, but may include other steps or units not clearly listed or inherent to these processes, methods, products or devices.
[0067]
[0068] Note that the above is only the preferred embodiment of the present invention and the application of technical principles. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, re-adjustments, and substitutions can be made by those skilled in the art without departing from the protection scope of the present invention. Therefore, although the present invention is described in detail through the above embodiments, the present invention is not limited to the specific embodiments described herein. Without departing from the concept of the present invention, more other effective embodiments can be included, and the scope of the present invention is determined by the scope of the appended claims.
Claims
1. A method for one - key testing of terminal products, characterized in that: It includes the following steps: First, start three timers t1, t2, and t3; t1 is used to receive the message data of the product, and t2 is used to judge the reception timeout; t3 is used to judge the step delay and enter the next step after the step is completed; Convert the issued message defined in the step into a message recognizable by the device and send it to the device under test through the serial port; After receiving the correct return message from the device and parsing it, check whether the current step needs to be judged; If judgment is required, according to the starting sequence number and ending sequence number of the judgment criterion defined in the step, obtain the corresponding data in the message, and check whether the judgment condition is a number or text. If it is a number, judge whether it is satisfied according to the upper and lower limits of the numbers in the step. If it is text, judge whether it is satisfied according to the text comparison; If it is satisfied, judge whether a pause operation is required. If so, pause and wait for the user to intervene and confirm, then enter the next step. If there is no pause, judge whether there is a delay configuration. If there is a delay, enter the next step after the delay; If it is already the last step, directly output a qualified result and exit the test; If the step does not meet the defined conditions, directly give an unqualified result and exit the test.
2. The method for one - key testing of terminal products according to claim 1, characterized in that: The content format of each step of the test step file is as follows: 1|2|3|4|5|6|7|8|9|10|11|12|13|14|15| Specifically:
1. Step name; 2. Issued content, i.e., text; 3. Judgment criterion: 0 - not judge, 1 - judge, 2 - manual judge; 4. Judgment content format, 0 - number, 1 - text; 5. Starting sequence number of the judgment criterion; 6. Ending sequence number of the judgment criterion; 7. Upper limit of the number: valid when the judgment content format is 0; 8. Lower limit of the number: valid when the judgment content format is 0; 9. Text data judgment content format is valid when it is 1; 10. Delay seconds; 11. Whether to pause and prompt information; 12. Prompt information; 13. Whether to extract and store information; 14. Starting character of the extracted information; 15. Ending character of the extracted information.
Citation Information
Patent Citations
Function testing system and function testing method for automotive parts
CN105652850A
LabVIEW based automatic testing method for battery pack
CN108363014A