A terminal quality bottom line detection method and system

By using a fault case association matrix and an optimized test mode switching mechanism, the problem of insufficient coverage in the quality baseline testing of terminal equipment in the power industry has been solved, achieving efficient and accurate quality testing.

CN123138044APending Publication Date: 2026-11-20NANJING LINYANG POWER TECH +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611307083.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-26
Publication Date
2026-11-20

AI Technical Summary

Technical Problem

Existing technologies are insufficient to systematically guarantee the quality baseline of terminal equipment in the power industry. Inadequate test coverage and a lack of flexible test mode switching mechanisms affect test efficiency and coverage.

Method used

It adopts a fault test case association matrix to achieve many-to-many mapping, dynamically expands test case filtering, optimizes priority sorting by combining fault frequency and sudden increase weight, supports switching between fast and normal test modes, transmits runtime status data through the parameter context management module, and provides judgment mechanisms such as hash comparison and multi-point APP process ID comparison.

Benefits of technology

It improved the intelligence and automation of test case management, optimized the allocation of test resources, and significantly improved testing efficiency and the accuracy of test results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123138044A_ABST
    Figure CN123138044A_ABST
Patent Text Reader

Abstract

The application discloses a terminal quality bottom line detection method and system, and belongs to the field of electric power automation testing. The method comprises the following steps: obtaining fault data of a terminal to be tested, extracting all test cases corresponding to the fault data according to a fault case correlation matrix, and determining a target test case set; determining the execution priority of each test case and sorting the test cases according to the fault frequency and the sudden increase weight; obtaining running state data and expected values of detection results through a parameter context management module, testing the sorted test case set according to a preset test mode, and determining a quality bottom line detection result according to the test execution result. The application supports dynamic expansion of the fault case correlation matrix, realizes the priority execution of high-frequency and sudden increase faults on test cases through a priority formula, supports the switching between a fast test mode and a normal test mode, shortens the self-recovery waiting time from the 4-hour level to the minute level in the fast test mode, significantly improves the test efficiency, and has high practical value and popularization significance.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of power automation testing and quality inspection, specifically relating to a method and system for detecting the quality baseline of power industry terminals. Background Technology

[0002] During the on-site operation of power industry terminal equipment (such as intelligent converged terminals, energy controllers, special transformer type III, concentrators, etc.), certain quality baselines need to be guaranteed to ensure stable and reliable operation of the equipment.

[0003] With the increasing number of terminal types and the integration of functions, existing testing methods are insufficient to systematically guarantee the baseline quality of terminals in field operation.

[0004] First, current testing primarily covers functional and performance testing, with significant shortcomings in coverage of baseline terminal quality testing. Key aspects of baseline terminal quality testing include configuration file checks, app and system restart strategies, automatic backup of files in primary and backup zones, and fault self-recovery. Second, existing testing methodologies have limitations in test case scalability and execution priority, failing to meet current testing requirements. Finally, testing strategies mainly employ regression testing and typical scenario testing, lacking a flexible mode switching mechanism. Particularly when testing involves terminal self-recovery mechanisms, the system is forced to wait for extended periods, severely impacting testing efficiency.

[0005] Therefore, there is an urgent need to design a systematic terminal quality baseline testing solution that can comprehensively cover various quality baseline testing scenarios, realize dynamic screening and expansion of test cases, optimize execution priority sorting, and support flexible switching between fast test mode and normal test mode to improve testing efficiency and coverage. Summary of the Invention

[0006] The purpose of this invention is to address the technical problems in existing technologies, such as inadequate coverage of terminal quality baseline testing, imperfect test case management mechanisms, and a single testing mode, by proposing a terminal quality baseline detection method and system.

[0007] The technical solution of this invention is: In a first aspect, the present invention provides a method for detecting the baseline quality of a terminal, comprising: S1. Obtain the fault data of the terminal under test, extract all test cases corresponding to the fault types related to the fault data according to the fault test case association matrix, and determine the target test case set; S2. Based on the fault frequency and surge weight in the fault data, determine the execution priority of each test case in the target test case set, and sort the target test case set according to the execution priority; S3. Obtain the running status data and expected test result value of the terminal under test through the parameter context management module. Based on the running status data and the preset test mode, execute the test on the sorted target test case set to obtain the test execution result. The test mode includes at least a fast test mode and a normal test mode. S4. Based on the test execution results, determine the quality baseline test result of the terminal under test.

[0008] Furthermore, in S1, the fault test case association matrix adopts a many-to-many mapping structure, where the rows of the matrix correspond to fault types and the columns correspond to test cases. One fault type can be associated with multiple test cases, and one test case can also be associated with multiple fault types.

[0009] Furthermore, in S1, the fault use case association matrix can be expanded to include: S11. Obtain fault samples and normal samples for the newly added fault type; S12. Execute the candidate test cases on the faulty sample and the normal sample respectively to obtain the first execution result and the second execution result; If the first execution result is unqualified and the second execution result is qualified, the candidate test case is determined to be a valid test case; S13. Update the association between the newly added fault types and valid test cases to the fault test case association matrix, and determine the target test case set based on the updated fault test case association matrix.

[0010] Furthermore, S2 includes: S21. Obtain the weekly fault frequency F_week and monthly fault frequency F_month for the corresponding fault type from the fault data; S22. If F_week > F_month × R, where R represents the preset ratio coefficient, then set the sudden increase weight W_extra = F_week; otherwise, set the sudden increase weight W_extra = 0. S23. Based on the basic priority P0 of the test cases, the execution priority P of each test case is obtained using the following formula: P = P0 + F_month + W_extra. S24. If a test case is associated with multiple fault types, determine the priority of each fault type and set the highest priority as the final execution priority of the test case.

[0011] Furthermore, in S3, based on the running status data and the preset test mode, the sorted target test case set is executed to obtain the test execution results, including: S31. Execute the test case, apply the exception triggering condition to the terminal under test, and wait for the preset scan time RESTORE_TIME; S32. If the test terminal generates a delay flag delay_flag; In normal test mode, after waiting for the preset self-recovery time of 4 hours, the subsequent verification operation is performed to obtain the normal test execution result; In the fast test mode, the delay flag delay_flag is deleted, and a reset flag reset_flag is created inside the terminal under test to trigger the terminal under test to restart. After the terminal under test restarts, subsequent verification operations are performed to obtain the fast test execution results. S33. Determine the results of ordinary test execution or rapid test execution as the test execution result.

[0012] Furthermore, in S3, the operating status data and expected detection results of the terminal under test are obtained through the parameter context management module, including: When executing the preceding test cases, the initial running parameters of the terminal under test are read and stored in the parameter context management module; When executing subsequent test cases, the initial running parameters are extracted from the parameter context management module and used as input parameters for the subsequent test cases to obtain running status data and expected values ​​of detection results.

[0013] Furthermore, S4 includes: when a hash comparison is involved in a test case, performing the following processing on the test execution results: Obtain the first hash value of the terminal under test before it performs self-recovery; Obtain the second hash value of the terminal under test after performing self-recovery; If the first hash value matches the second hash value, the quality baseline test result of the terminal under test is deemed qualified.

[0014] Furthermore, S4 includes: when a test case involves a multi-point decision strategy, the following processing is performed on the test execution result: Before applying abnormal triggering conditions to the terminal under test, record the initial APP process IDs of multiple target APP processes in the terminal under test. Modify the threshold parameter in the configuration file of the terminal under test, restart the terminal, and make the terminal reload the modified configuration file; After detecting that the terminal under test has restarted, obtain the current process ID of multiple target APP processes; Compare the initial APP process ID with the current APP process ID to determine the number of target APP processes whose APP process ID has changed; If the number of target APP processes whose APP process ID changes is greater than or equal to a preset threshold of 2, the self-recovery strategy of the terminal under test is determined to have been successfully executed, and a quality baseline detection result is generated.

[0015] Furthermore, S4 includes: when the test case involves key field matching, the following processing is performed on the test execution results: supporting the exclusion of some fields or matching and comparing only the key fields.

[0016] Secondly, the present invention provides a terminal quality baseline detection system, comprising: The test case filtering module is used to obtain fault data of the terminal under test, extract all test cases corresponding to the fault types related to the fault data according to the fault case association matrix, and determine the target test case set. The priority sorting module is used to determine the execution priority of each test case in the target test case set based on the fault frequency and surge weight in the fault data, and sort the target test case set according to the execution priority. The test execution module is used to obtain the running status data and expected test results of the terminal under test through the parameter context management module, and to execute the test on the sorted target test case set according to the running status data and the preset test mode to obtain the test execution results; wherein, the test mode includes at least a fast test mode and a normal test mode; The quality baseline determination module is used to determine the quality baseline detection result of the terminal under test based on the test execution results.

[0017] The beneficial effects of this invention are: This invention achieves automatic many-to-many association between fault types and test cases through a fault test case association matrix, supports dynamic expansion of the matrix, and uses a comparison testing mechanism between fault samples of newly added fault types and normal samples to filter out valid test cases that fail to perform on fault samples but succeed on normal samples and update them to the matrix, thereby improving the intelligence and automation level of test case management.

[0018] This invention optimizes the execution logic of test cases corresponding to faults by comprehensively considering basic priority, monthly fault frequency, and recent surge weight through a priority formula, thus tilting test resources towards currently high-incidence faults. By supporting switching between fast test mode and normal test mode, and deleting delay flags and creating reset flags to trigger terminal restart in fast test mode, the self-recovery waiting time is shortened from the preset 4 hours to minutes, significantly improving test efficiency. At the same time, the parameter context management module enables the transfer and reuse of running status parameters and expected values ​​of detection results between test cases.

[0019] This invention provides multiple quality baseline judgment mechanisms, such as hash comparison for precise verification, multi-point APP process ID comparison to determine the success or failure of the self-recovery strategy, and flexible matching of key fields. These mechanisms solve the problem of misjudgment that may occur in single-point judgment and improve the accuracy and reliability of the detection results.

[0020] Other features and advantages of the present invention will be described in detail in the following detailed description section. Attached Figure Description

[0021] The above and other objects, features and advantages of the present invention will become more apparent from the more detailed description of exemplary embodiments of the invention in conjunction with the accompanying drawings, wherein the same reference numerals generally represent the same components in the exemplary embodiments of the invention.

[0022] Figure 1 A flowchart of a terminal quality baseline detection method according to an embodiment of the present invention is shown.

[0023] Figure 2 A flowchart illustrating the determination of test case execution priority according to an embodiment of the present invention is shown.

[0024] Figure 3 A flowchart of test mode switching according to an embodiment of the present invention is shown. Detailed Implementation

[0025] Preferred embodiments of the invention will now be described in more detail with reference to the accompanying drawings. While preferred embodiments of the invention are shown in the drawings, it should be understood that the invention can be implemented in various forms and should not be limited to the embodiments set forth herein.

[0026] This embodiment provides a method for detecting the baseline quality of a terminal, including the following steps: S1. Obtain the fault data of the terminal under test, extract all test cases corresponding to the fault types related to the fault data according to the fault test case association matrix, and determine the target test case set.

[0027] The fault test case association matrix adopts a many-to-many mapping structure, where rows correspond to fault types and columns correspond to test cases. One fault type can be associated with multiple test cases, and one test case can also be associated with multiple fault types.

[0028] In S1, there are three methods based on the source of the test requirements: Method 1: Pull quality baseline faults from the defect management platform, use the fault-test case association matrix to filter out the test cases associated with the fault, if there are no test cases corresponding to the fault type, prompt the testers to expand the test cases and update the fault-test case association matrix; Method 2: Testers specify the set of test cases to be executed this time according to the baseline quality test specifications; Method 3: When adding a new terminal type, it is possible to support testing more terminal types by modifying the system configuration file.

[0029] The fault test case association matrix can be extended to include: obtaining fault samples and normal samples of the newly added fault type; executing candidate test cases on the fault samples and normal samples respectively to obtain a first execution result and a second execution result; if the first execution result is unqualified and the second execution result is qualified, the candidate test case is determined to be a valid test case; updating the association relationship between the newly added fault type and the valid test cases to the fault test case association matrix, and determining the target test case set based on the updated fault test case association matrix.

[0030] Specifically, the expansion of the fault-use case association matrix is ​​as follows: When a new fault type occurs, the system pulls the quality baseline faults reported on-site from the defect management platform, compares the fault samples with normal samples for testing, and, in conjunction with the result processing module, filters valid use cases, associates the fault type with the valid use cases and writes them into the matrix, adding corresponding rows to the matrix; if the current fault-use case association matrix cannot meet the testing requirements of the current fault type, the testers manually expand the new use cases, adding corresponding rows and columns to the matrix; When adding a new terminal type, the system configuration file can be modified to support testing of more terminal types. For example, when checking the terminal configuration file, since the APP name and APP launch method are different in different terminal configuration files, a fixed preset value cannot meet the extended testing needs of multiple terminals. The system is designed to retain an expansion margin of 20 terminal types, so that when the terminal type is added, the system configuration file can be modified to support testing of more terminal types.

[0031] The screening process is as follows: Initial screening: Regardless of whether the test case is tested on a faulty sample or a normal sample, test cases that fail to meet the requirements are directly eliminated; if the failure is due to environmental configuration issues, the tester is prompted to check and adjust the test environment before retesting; if a test case fails on a faulty sample due to a terminal issue but passes on a normal sample, it is considered valid and added to the set of valid test cases.

[0032] Multiple valid test case selection: When there are multiple valid test cases in the valid test case set: If the test cases cover different fault dimensions, test cases with complementary dimensions are selected first; if the coverage dimensions are the same, the test case with the shortest execution time is selected first; if the coverage dimensions and execution time of multiple test cases are similar, they are pushed to manual review, and finally a valid test case is selected.

[0033] S2. Based on the fault frequency and surge weight in the fault data, determine the execution priority of each test case in the target test case set, and sort the target test case set according to the execution priority.

[0034] S21. Sort the selected test cases according to the priority formula P = P0 + F_month + W_extra, where P is the final priority, and the higher the priority, the earlier it is executed. P0 is the basic priority preset by the tester. F_month is the fault frequency of a certain fault type obtained from the defect management platform in the past 30 days. F_week is the fault frequency of this fault type in the past 7 days. W_extra is the recent surge weight value of this fault type. R is the proportion coefficient preset by the tester (the value ranges from 0% to 100%, and R=40% in the example). When F_week>F_month × R, W_extra = F_week, otherwise W_extra = 0.

[0035] S22. When a test case corresponds to multiple fault types, the priority calculation method is as follows: P = max(P1,P2……Pn), where P1, P2, and Pn represent the priorities calculated for each fault type; Tables 1 and 2 are examples of many-to-many association priority P value calculation. When multiple test cases have the same P value, the execution order is sorted according to the default test case ID.

[0036] Table 1 Calculation of F_month and W_extra for each fault type. Table 2 Priority of each associated use case S3. Obtain the running status data and expected test result value of the terminal under test through the parameter context management module. Based on the running status data and the preset test mode, execute the sorted target test case set to obtain the test execution result. The test mode includes at least a fast test mode and a normal test mode.

[0037] When the quality baseline simulation terminal experiences a fault self-recovery mechanism, it will wait for 4 hours before restarting after recognizing the fault-triggered abnormality flag. This is to prevent the terminal from becoming unusable due to frequent restarts.

[0038] In normal testing mode, the system does not interfere with the terminal's self-recovery mechanism and maintains a 4-hour wait to verify the terminal's self-recovery behavior in real-world scenarios. However, because multiple test cases in the baseline quality test suite will test the terminal's self-recovery mechanism, waiting 4 hours for each would make the testing time insufficient for some test scenarios. Therefore, the system provides a fast testing mode: When the system detects a fault triggering anomaly flag within the terminal, it rewrites the terminal's internal files, setting the terminal reset flag to 1. This causes the terminal to restart after the scan cycle configured in its configuration file, significantly reducing test time. Testers can choose between a fast test mode or a normal test mode based on their specific test time and strategy.

[0039] Taking the "CPU overload" verification system restart strategy of a smart converged terminal as an example, the difference between the two modes is explained: When a terminal reaches the abnormal trigger condition after continuous pressure (or configuration file modification), the system waits for RESTORE_TIME and then checks whether the delay flag delay_flag exists in the specified path. According to the on-site operation requirements, after the delay_flag appears, the terminal starts timing. After the timing reaches 4 hours, a reset flag reset_flag will be created in the internal storage path. After the reset flag is generated, the terminal will perform a restart operation. At this time, the system determines whether the terminal has restarted by checking the terminal's startup time. On the other hand, it monitors the message interaction between apps via MQTT and captures the restart flag from the app interaction messages. It simultaneously determines whether the terminal has executed the self-recovery mechanism from two levels: terminal running status and app message interaction. RESTORE_TIME = period × duration, which is dynamically adjusted according to the scanning cycle of the terminal configuration file. period is the monitoring cycle (unit: seconds); that is, CPU utilization data is counted every N seconds. duration is the delay period; that is, an abnormality is only considered if there are abnormalities for a consecutive duration periods.

[0040] In normal testing mode, the system does not interfere with the terminal's self-recovery mechanism. When the terminal reaches the abnormal trigger condition after continuous stress (or configuration file modification), the system waits for RESTORE_TIME. After detecting the delay_flag flag, the system waits synchronously for 4 hours before performing subsequent verification operations. This mode is used to verify the terminal's self-recovery behavior in field operation mode. In fast testing mode, when the terminal reaches the abnormal trigger condition after continuous stress (or configuration file modification), the system waits for RESTORE_TIME. After detecting the appearance of the delay_flag flag, the system no longer waits 4 hours, directly deletes the flag, creates a reset flag internally on the terminal, and then performs subsequent verification operations. This directly shortens the test time by 4 hours.

[0041] In S3, the operating status data and expected detection results of the terminal under test are obtained through the parameter context management module, including: S31. During the execution of test cases, the parameters configured by the tester and the parameters or status data of the terminal obtained during the execution process need to be used as important parameters in the execution process of the test cases (the core is to determine the running parameters and how to run subsequent tests based on the execution results of the previous test cases). For example, the terminal's wireless public network communication parameters are dynamically stored in the test case parameter context management module for the system to use in opening the communication channel; the meter combination status words are read and dynamically stored in the test case parameter context management module for the terminal to be configured with the meter combination status words during subsequent tests, etc.

[0042] S32. After the test cases are executed, the result processing module will process the results based on the expected values ​​and the actual values ​​obtained during the test case execution, and then determine whether the terminal's quality baseline is acceptable. The expected values ​​are obtained both by pre-setting them in the test cases and by acquiring them during test case execution, dynamically storing them in the test case parameter context management module for use in result processing. For example, the MD5 values ​​of the terminal's primary and backup area files are dynamically stored in the test case parameter context management module for use by the result processing module for hash comparison; the terminal's built-in configuration parameters (which cannot be deleted during testing) are also dynamically stored in the test case parameter context management module for use by the result processing module, preventing the result processing module from making misjudgments based on fixed expected values.

[0043] S4. Based on the test execution results, determine the quality baseline test result of the terminal under test.

[0044] When a test case involves hash comparison, the test execution result is processed as follows: obtain the first hash value of the terminal under test before self-recovery; obtain the second hash value of the terminal under test after self-recovery; if the first hash value and the second hash value are consistent, the quality baseline test result of the terminal under test is determined to be qualified.

[0045] For example, when testing the automatic backup of program files in the primary and backup areas of the terminal, the MD5 value of the file before the corruption is recorded. After the terminal self-recovers, the MD5 value of the same file is obtained and the two are compared precisely. If they match, the test is considered successful; otherwise, the test is considered unsuccessful. In scenarios where the terminal communication parameters, some meter reading data, service components, etc., need to be completely consistent before and after the self-recovery strategy is executed, this unit is required to process the results.

[0046] When test cases involve matching key fields, the following processing is performed on the test execution results: it supports excluding some fields or matching only key fields.

[0047] For example, during baseline quality testing, it supports ignoring some fields and only matching key fields. For instance, during partition full self-recovery strategy testing, when determining if a file exists, only newly created or deleted files are considered; when verifying whether important parameters of historical data have changed, it is necessary to be compatible with both terminal empty return and append empty record modes without modifying the terminal configuration, based on the terminal's running status. In result processing, regardless of whether the terminal returns empty ([]) or appends empty records (e.g., ['05000000000001';'20200301000000';NULL;'20200301000000';['NULL'|'NULL']), specifically meaning the meter address, collection start time, collection start time (filled with NULL), collection storage time, and data filled with NULL, then only the meter address, collection start time, and collection storage time need to be matched, while other fields are NULL, to determine if the result is qualified.

[0048] When a test case involves a multi-point judgment strategy, the test execution results are processed as follows: Before applying the abnormal triggering condition to the terminal under test, the initial APP process IDs of multiple target APP processes in the terminal under test are recorded; the threshold parameter in the configuration file of the terminal under test is modified, and the terminal is restarted to reload the modified configuration file; after the terminal under test is detected to have restarted, the current APP process IDs of multiple target APP processes are obtained; the initial APP process IDs are compared with the current APP process IDs to determine the number of target APP processes whose APP process IDs have changed; if the number of target APP processes whose APP process IDs have changed is greater than or equal to a preset threshold of 2, the self-recovery strategy of the terminal under test is determined to have been successfully executed, and a quality baseline detection result is generated.

[0049] For example, when testing the APP restart strategy, the system modifies the threshold in the terminal configuration file to trigger the terminal to handle exceptions. For some APPs, even if the threshold is modified, the actual operating environment of the terminal still cannot meet the conditions for triggering an exception. When testing the APP restart strategy, it is necessary to determine whether multiple APPs execute the restart strategy. At this time, a multi-point judgment strategy is required: for example, to verify the self-recovery strategy through excessively high CPU load, a plurality of APPs such as dbCenter, taskManager, and stAmr are selected for testing when verifying APP restart. On the one hand, even if the configuration file is modified, the terminal still cannot reach the exception trigger condition; on the other hand, after the APP restarts, the process number itself may remain unchanged (although the probability is extremely low, this situation has actually occurred several times). In this case, the multi-point judgment strategy is needed to determine that the APP restart strategy has been executed. When two or more APPs among the multiple APPs have changed process numbers, the test is judged to be qualified. Similarly, the same judgment method is used when verifying the self-recovery strategy through RAM exhaustion self-recovery. The multi-point judgment strategy is applied in multiple result processing processes of this system.

[0050] Taking the intelligent converged terminal as an example, the implementation details of multi-point judgment in verifying the self-recovery strategy through excessively high CPU load are described as follows: First, record the initial process numbers of APPs such as dbCenter, ccoRouter, comScheduler, and puAmr, and obtain the configuration file cpu_config.json from the terminal. On the one hand, make a backup in the specified test path to restore the terminal configuration file after the test is completed; at the same time, directly modify the copied configuration file to change the threshold to 1, where the threshold is the CPU occupancy rate (%), and 1 means 1%. After the modification is completed, transfer the configuration file back to the terminal. Restart the bottom tool management APP in the terminal to make the terminal reload the modified parameters. After the system detects the reset identifier, it delays for a preset time and then reads the process numbers of the APPs such as dbCenter, ccoRouter, comScheduler, and puAmr again, and compares them with the initially recorded process numbers. As long as two or more APPs among the multiple APPs have changed process numbers, the self-recovery strategy is judged to be successful.

[0051] An embodiment of the present invention further provides a terminal quality bottom line detection system, including: A test case screening module, configured to acquire fault data of a terminal under test, extract all test cases corresponding to the fault type related to the fault data according to a fault use case association matrix, and determine a target test case set; The priority sorting module is used to determine the execution priority of each test case in the target test case set based on the fault frequency and surge weight in the fault data, and sort the target test case set according to the execution priority. The test execution module is used to obtain the running status data and expected test results of the terminal under test through the parameter context management module, and to execute the test on the sorted target test case set according to the running status data and the preset test mode to obtain the test execution results; wherein, the test mode includes at least a fast test mode and a normal test mode; The quality baseline determination module is used to determine the quality baseline detection result of the terminal under test based on the test execution results.

[0052] The various embodiments of the present invention have been described above. These descriptions are exemplary and not exhaustive, nor are they limited to the disclosed embodiments. Many modifications and variations will be apparent to those skilled in the art without departing from the scope and spirit of the described embodiments.

Claims

1. A method for detecting the baseline quality of a terminal, characterized in that, include: S1. Obtain the fault data of the terminal under test, extract all test cases corresponding to the fault types related to the fault data according to the fault test case association matrix, and determine the target test case set; S2. Based on the fault frequency and surge weight in the fault data, determine the execution priority of each test case in the target test case set, and sort the target test case set according to the execution priority; S3. Obtain the running status data and expected test result value of the terminal under test through the parameter context management module. Based on the running status data and the preset test mode, execute the test on the sorted target test case set to obtain the test execution result. The test mode includes at least a fast test mode and a normal test mode. S4. Based on the test execution results, determine the quality baseline test result of the terminal under test.

2. The terminal quality baseline detection method as described in claim 1, characterized in that... In S1, the fault test case association matrix adopts a many-to-many mapping structure. The rows of the matrix correspond to the fault types, and the columns correspond to the test cases. One fault type can be associated with multiple test cases, and one test case can also be associated with multiple fault types.

3. The terminal quality baseline detection method as described in claim 1, characterized in that... In S1, the fault use case association matrix can be expanded to include: S11. Obtain fault samples and normal samples for the newly added fault type; S12. Execute the candidate test cases on the faulty sample and the normal sample respectively to obtain the first execution result and the second execution result; If the first execution result is unqualified and the second execution result is qualified, the candidate test case is determined to be a valid test case; S13. Update the association between the newly added fault types and valid test cases to the fault test case association matrix, and determine the target test case set based on the updated fault test case association matrix.

4. The terminal quality baseline detection method as described in claim 1, characterized in that S2 include: S21. Obtain the weekly fault frequency F_week and monthly fault frequency F_month for the corresponding fault type from the fault data; S22. If F_week > F_month × R, where R represents the preset ratio coefficient, then set the sudden increase weight W_extra = F_week; otherwise, set the sudden increase weight W_extra = 0. S23. Based on the basic priority P0 of the test cases, the execution priority P of each test case is obtained using the following formula: P = P0 + F_month + W_extra. S24. If a test case is associated with multiple fault types, determine the priority of each fault type and set the highest priority as the final execution priority of the test case.

5. The terminal quality baseline detection method as described in claim 1, characterized in that... In S3, based on the running status data and the preset test mode, the sorted target test case set is executed, and the test execution results include: S31. Execute the test case, apply the exception triggering condition to the terminal under test, and wait for the preset scan time RESTORE_TIME; S32. If the test terminal generates a delay flag delay_flag; In normal test mode, after waiting for the preset self-recovery time of 4 hours, the subsequent verification operation is performed to obtain the normal test execution result; In the fast test mode, the delay flag delay_flag is deleted, and a reset flag reset_flag is created inside the terminal under test to trigger the terminal under test to restart. After the terminal under test restarts, subsequent verification operations are performed to obtain the fast test execution results. S33. Determine the results of ordinary test execution or rapid test execution as the test execution result.

6. The terminal quality baseline detection method as described in claim 5, characterized in that... In S3, the operating status data and expected detection results of the terminal under test are obtained through the parameter context management module, including: When executing the preceding test cases, the initial running parameters of the terminal under test are read and stored in the parameter context management module; When executing subsequent test cases, the initial running parameters are extracted from the parameter context management module and used as input parameters for the subsequent test cases to obtain running status data and expected values ​​of detection results.

7. The terminal quality baseline detection method as described in claim 1, characterized in that... S4 includes: When a test case involves hash comparison, the following processing is performed on the test execution results: Obtain the first hash value of the terminal under test before it performs self-recovery; Obtain the second hash value of the terminal under test after performing self-recovery; If the first hash value matches the second hash value, the quality baseline test result of the terminal under test is deemed qualified.

8. The terminal quality baseline detection method as described in claim 1, characterized in that... S4 includes: When a test case involves a multi-point decision strategy, the following processing is performed on the test execution results: Before applying abnormal triggering conditions to the terminal under test, record the initial APP process IDs of multiple target APP processes in the terminal under test. Modify the threshold parameter in the configuration file of the terminal under test, restart the terminal, and make the terminal reload the modified configuration file; After detecting that the terminal under test has restarted, obtain the current process ID of multiple target APP processes; Compare the initial APP process ID with the current APP process ID to determine the number of target APP processes whose APP process ID has changed; If the number of target APP processes whose APP process ID changes is greater than or equal to a preset threshold of 2, the self-recovery strategy of the terminal under test is determined to have been successfully executed, and a quality baseline detection result is generated.

9. The terminal quality baseline detection method as described in claim 1, characterized in that... S4 includes: When test cases involve matching key fields, the following processing is performed on the test execution results: it supports excluding some fields or matching only key fields.

10. A terminal quality baseline detection system, characterized in that, include: The test case filtering module is used to obtain fault data of the terminal under test, extract all test cases corresponding to the fault types related to the fault data according to the fault case association matrix, and determine the target test case set. The priority sorting module is used to determine the execution priority of each test case in the target test case set based on the fault frequency and surge weight in the fault data, and sort the target test case set according to the execution priority. The test execution module is used to obtain the running status data and expected test results of the terminal under test through the parameter context management module, and to execute the test on the sorted target test case set according to the running status data and the preset test mode to obtain the test execution results; wherein, the test mode includes at least a fast test mode and a normal test mode; The quality baseline determination module is used to determine the quality baseline detection result of the terminal under test based on the test execution results.