Display screen performance testing method and device
Through automated testing methods and devices, the configuration data obtained by the configuration center is used to generate test cases and scripts, which solves the problem that existing testing methods rely on experience and subjective feelings, and realizes a comprehensive, accurate and objective evaluation of the screen performance of the car entertainment system, providing a scientific optimization basis.
Patent Information
- Application Number
- CN202411954682.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-27
- Publication Date
- 2025-03-18
AI Technical Summary
The existing screen testing methods for car entertainment systems rely on the empirical judgment and subjective feelings of the testers, lack objective and quantitative evaluation standards, and cannot fully and accurately reflect the actual performance of the system's sliding fluency.
It provides an automated testing method and device, by obtaining configuration data of test dimensions and test methods from the configuration center, generating test cases and test scripts, loading and executing test scripts in turn, and generating test monitoring data to objectively evaluate display performance.
It realizes a comprehensive, accurate and objective evaluation of the display performance, reduces interference from human factors, provides a scientific optimization basis, and improves the credibility and scientificity of the test results.
Smart Images

Figure CN119645747A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of testing technology, and in particular to a method and device for testing display screen performance. Background Art
[0002] With the rapid development of automobile intelligence, the in-vehicle infotainment system (IVI), as an important part of automobile intelligence, has transformed from a traditional entertainment function to a more intelligent and personalized interactive platform. The operating interface of the car entertainment system usually includes a touch screen as the main human-computer interaction method, and users interact with the system through gestures such as touch, slide, and zoom. Therefore, the response speed and sliding smoothness of the screen directly affect the user's driving experience and the overall evaluation of the car system.
[0003] However, the current screen testing methods for car entertainment systems still have many shortcomings. For example, most of the existing testing methods rely on the tester's empirical judgment and subjective feelings to determine the performance of the screen. However, this method lacks objective and quantitative evaluation criteria and cannot fully and accurately reflect the actual performance of the system's sliding smoothness. For example, testers may only evaluate the sliding effect based on their own perception of smoothness, while ignoring the various factors that affect smoothness. Therefore, this single testing method cannot provide developers with a scientific basis for optimization, making the optimization process of the car entertainment system lack of systematicity and pertinence. Summary of the invention
[0004] In view of this, the purpose of this application is to provide a method and device for testing display performance. The automated test cases and scripts in this solution can cover tests of different dimensions and methods, ensuring the comprehensiveness and accuracy of the testing process, so as to objectively evaluate the performance of the display and avoid subjective judgment based on personal experience that may exist in traditional tests, thereby providing developers with a scientific basis for optimization.
[0005] The present application provides a method for testing display performance, the method comprising:
[0006] For each interface to be tested in each application to be tested, obtaining configuration data of at least one test mode under at least one test dimension from a configuration center according to application information of the interface to be tested;
[0007] Generate at least one test case for the interface to be tested according to the acquired configuration data of at least one test mode under at least one test dimension, and extract the test script corresponding to each test case from the configuration center;
[0008] The test scripts of the interface to be tested are loaded and executed in sequence to generate test monitoring data of the interface to be tested.
[0009] Optionally, after generating the test monitoring data of the interface to be tested, the test method further includes:
[0010] Determine the interface evaluation result of each performance evaluation indicator of the interface to be tested according to the test monitoring data of the interface to be tested;
[0011] A performance test report of the target display screen is generated according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested.
[0012] Optionally, a mapping relationship between interface, test mode and script is established in the configuration center, and the test script corresponding to the test case is extracted through the following steps:
[0013] Identify configuration data for all test methods included in the test case;
[0014] For each test mode, according to the configuration data of the test mode and the mapping relationship, extracting the initial script of the test mode from the configuration center;
[0015] The initial scripts of all test methods in the test case are combined to obtain the test script of the test case.
[0016] Optionally, sequentially loading and executing the test scripts of the interface to be tested to generate test monitoring data of the interface to be tested includes:
[0017] Load the test scripts of the interface to be tested in sequence, and control the robot arm to perform test operations on the interface to be tested on the target display screen in the current test environment;
[0018] Controlling the image acquisition device to shoot the interface to be tested on the target display screen where the test operation is performed, obtaining screen display data, and simultaneously obtaining system performance parameters through a monitoring script;
[0019] When the test end condition of the interface to be tested is reached, test monitoring data of the interface to be tested is generated according to the acquired screen display data and system performance parameters.
[0020] Optionally, generating a performance test report of the target display screen according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested includes:
[0021] For each interface to be tested, all interface evaluation results of the interface to be tested are weighted to obtain an interface test result of the display screen performance when operating the interface to be tested;
[0022] Determining at least one target interface required for evaluating the performance status of the target display screen;
[0023] Based on the interface test results of all target interfaces, a performance test report of the target display screen is generated.
[0024] Optionally, the test dimension includes at least one of the following: a sliding mode dimension, a motion pattern dimension, and an environmental condition dimension.
[0025] Optionally, the performance evaluation index includes at least one of the following: an image display evaluation index and a system performance evaluation index; and the image display evaluation index and the system performance evaluation index each include at least one sub-performance evaluation index.
[0026] Optionally, the application to be tested and the interface to be tested included therein are determined through the following steps:
[0027] determining at least one candidate application supported by the target display screen;
[0028] For each candidate application, extract configuration data from the configuration center according to the application information of the candidate application;
[0029] If the configuration data is extracted, the candidate application is determined to be the application to be tested, and the interface to be tested included in the application to be tested is determined based on the extracted configuration data.
[0030] The embodiment of the present application also provides a display screen performance testing device, the testing device comprising:
[0031] An acquisition module is used to acquire configuration data of at least one test mode under at least one test dimension from a configuration center according to application information of the interface to be tested for each interface to be tested in each application to be tested;
[0032] An extraction module, configured to generate at least one test case for the interface to be tested according to the acquired configuration data of at least one test mode under at least one test dimension, and extract the test script corresponding to each test case from the configuration center;
[0033] The test module is used to sequentially load and execute the test scripts of the interface to be tested, and generate test monitoring data of the interface to be tested.
[0034] Optionally, the testing device further includes a report generating module, wherein the report generating module is used to:
[0035] Determine the interface evaluation result of each performance evaluation indicator of the interface to be tested according to the test monitoring data of the interface to be tested;
[0036] A performance test report of the target display screen is generated according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested.
[0037] Optionally, a mapping relationship between interface, test mode and script is established in the configuration center, and the extraction module is used to extract the test script corresponding to the test case through the following steps:
[0038] Identify configuration data for all test methods included in the test case;
[0039] For each test mode, according to the configuration data of the test mode and the mapping relationship, extracting the initial script of the test mode from the configuration center;
[0040] The initial scripts of all test methods in the test case are combined to obtain the test script of the test case.
[0041] Optionally, when the test module is used to sequentially load and execute the test script of the interface to be tested to generate the test monitoring data of the interface to be tested, the test module is used to:
[0042] Load the test scripts of the interface to be tested in sequence, and control the robot arm to perform test operations on the interface to be tested on the target display screen in the current test environment;
[0043] Controlling the image acquisition device to shoot the interface to be tested on the target display screen where the test operation is performed, obtaining screen display data, and simultaneously obtaining system performance parameters through a monitoring script;
[0044] When the test end condition of the interface to be tested is reached, test monitoring data of the interface to be tested is generated according to the acquired screen display data and system performance parameters.
[0045] Optionally, when the report generation module is used to generate a performance test report of the target display screen according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested, the report generation module is used to:
[0046] For each interface to be tested, all interface evaluation results of the interface to be tested are weighted to obtain an interface test result of the display screen performance when operating the interface to be tested;
[0047] Determining at least one target interface required for evaluating the performance status of the target display screen;
[0048] Based on the interface test results of all target interfaces, a performance test report of the target display screen is generated.
[0049] Optionally, the test dimension includes at least one of the following: a sliding mode dimension, a motion pattern dimension, and an environmental condition dimension.
[0050] Optionally, the performance evaluation index includes at least one of the following: an image display evaluation index and a system performance evaluation index; and the image display evaluation index and the system performance evaluation index each include at least one sub-performance evaluation index.
[0051] Optionally, the testing device further includes a second determining module, and the second determining module is used to determine the application to be tested and the interface to be tested included therein through the following steps;
[0052] determining at least one candidate application supported by the target display screen;
[0053] For each candidate application, extract configuration data from the configuration center according to the application information of the candidate application;
[0054] If the configuration data is extracted, the candidate application is determined to be the application to be tested, and the interface to be tested included in the application to be tested is determined based on the extracted configuration data.
[0055] An embodiment of the present application also provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the above-mentioned test method are performed.
[0056] An embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned test method are executed.
[0057] A method and device for testing display screen performance provided by an embodiment of the present application, the testing method comprising: for each interface to be tested in each application to be tested, obtaining configuration data of at least one test mode under at least one test dimension from a configuration center according to application information of the interface to be tested; generating at least one test case for the interface to be tested according to the obtained configuration data of at least one test mode under at least one test dimension, and extracting the test script corresponding to each test case from the configuration center; loading and executing the test scripts of the interface to be tested in sequence, and generating test monitoring data for the interface to be tested.
[0058] In this way, this solution ensures the standardization and unification of the test method by obtaining the configuration data corresponding to each interface to be tested from the configuration center. In this way, the test method no longer relies on the experience and judgment of the tester, but is tested according to the pre-set standards, reducing the interference of human factors. Test cases and test scripts are generated according to the configuration data extracted by the configuration center. The automated test cases and scripts can cover tests of different dimensions and methods, ensure the comprehensiveness and accuracy of the test process, and improve the credibility and scientificity of the test results. By controlling the robot arm to perform the test operation, the inconsistency of manual operation is eliminated, the accuracy and consistency of each test operation are ensured, and the test errors that may be caused by improper operation of the tester in the traditional method can be avoided. In addition, by analyzing the test monitoring data according to a variety of performance evaluation indicators, the performance of the display screen can be objectively evaluated, avoiding the subjective judgment based on personal experience that may exist in traditional tests. And according to the evaluation results corresponding to each evaluation indicator, a detailed performance test report of the display screen can be generated, thereby providing developers with detailed performance evaluation data and helping developers identify the specific reasons why the interface fluency does not meet the standards, thereby providing a scientific and systematic basis for subsequent optimization.
[0059] In order to make the above-mentioned objects, features and advantages of the present application more obvious and easy to understand, preferred embodiments are specifically cited below and described in detail with reference to the attached drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0060] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0061] Figure 1 A flowchart of a method for testing display screen performance provided in an embodiment of the present application;
[0062] Figure 2 One of the structural schematic diagrams of a display screen performance testing device provided in an embodiment of the present application;
[0063] Figure 3 A second structural schematic diagram of a display screen performance testing device provided in an embodiment of the present application;
[0064] Figure 4 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0065] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all of the embodiments. The components of the embodiments of the present application usually described and shown in the drawings here can be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the selected embodiments of the present application. Based on the embodiments of the present application, each other embodiment obtained by those skilled in the art without making creative work belongs to the scope of protection of the present application.
[0066] With the rapid development of automobile intelligence, the in-vehicle infotainment system (IVI), as an important part of automobile intelligence, has transformed from a traditional entertainment function to a more intelligent and personalized interactive platform. The operating interface of the car entertainment system usually includes a touch screen as the main human-computer interaction method, and users interact with the system through gestures such as touch, slide, and zoom. Therefore, the response speed and sliding smoothness of the screen directly affect the user's driving experience and the overall evaluation of the car system.
[0067] However, the current screen testing methods for car entertainment systems still have many shortcomings. For example, most of the existing testing methods rely on the tester's empirical judgment and subjective feelings to determine the performance of the screen. However, this method lacks objective and quantitative evaluation criteria and cannot fully and accurately reflect the actual performance of the system's sliding smoothness. For example, testers may only evaluate the sliding effect based on their own perception of smoothness, while ignoring the various factors that affect smoothness. Therefore, this single testing method cannot provide developers with a scientific basis for optimization, making the optimization process of the car entertainment system lack of systematicity and pertinence.
[0068] Based on this, the embodiments of the present application provide a method and device for testing the performance of a display screen, so as to comprehensively, accurately and objectively evaluate the performance of the display screen, thereby providing developers with a scientific optimization basis.
[0069] See also Figure 1 , Figure 1 This is a flow chart of a method for testing display screen performance provided by an embodiment of the present application. Figure 1 As shown in, the test method provided in the embodiment of the present application includes:
[0070] S101. For each interface to be tested in each application to be tested, obtain configuration data of at least one test mode under at least one test dimension from a configuration center according to application information of the interface to be tested.
[0071] S102: Generate at least one test case for the interface to be tested according to the acquired configuration data of at least one test mode under at least one test dimension, and extract the test script corresponding to each test case from the configuration center.
[0072] S103 . Load and execute the test scripts of the interface to be tested in sequence to generate test monitoring data of the interface to be tested.
[0073] For step S101, in this step, for each interface to be tested in each application to be tested for evaluating the performance of the target display screen, at least one configuration information related to the interface to be tested is obtained from the configuration center according to the interface testing requirements or interface related information of the interface to be tested recorded in the application information of the application to be tested.
[0074] The interface to be tested is a slidable interface; the application to be tested includes at least one interface to be tested; at least one test dimension is pre-set in the configuration center, and each test dimension includes at least one test method. The target display screen has a touch sensing function; the target display screen may be a screen of a smart device, a computer monitor, or other device with a graphical user interface. When this solution is applied to a vehicle, the target display screen may be a central control screen of the vehicle.
[0075] For example, the test dimensions may include: a sliding mode dimension, a motion mode dimension, and an environmental condition dimension.
[0076] The test methods under the sliding method dimension may include: single-finger straight line sliding, single-finger curve sliding, double-finger zoom operation, etc.
[0077] The test methods under the motion mode dimension may include: horizontal sliding, uniform speed sliding, variable speed sliding, etc.
[0078] The testing methods under the environmental condition dimension may include: high temperature environment testing, low temperature environment testing, and vibration testing, etc.
[0079] The configuration center is a system that centrally manages and stores application-related configuration data required for display screen testing.
[0080] In addition, the application to be tested is all or part of the applications displayed on the target display screen. Therefore, in order to ensure the automation and accuracy of the test, the application to be tested needs to be determined.
[0081] In an implementation manner provided by the present application, the application to be tested and the interface to be tested included therein are determined by the following steps:
[0082] S201: Determine at least one candidate application supported by the target display screen.
[0083] S202: For each candidate application, extract configuration data from the configuration center according to the application information of the candidate application.
[0084] S203: If configuration data is extracted, determine that the candidate application is an application to be tested, and determine the interface to be tested included in the application to be tested according to the extracted configuration data.
[0085] With respect to step S201, the candidate applications are understood to be all applications that can be supported and run normally by the target display screen.
[0086] Here, when determining the candidate applications that can be loaded on the target display screen, the determination can be made through interaction with the operating system or application management system of the corresponding device.
[0087] For example, in an in-vehicle infotainment system (IVI), the operating system lists all supported applications (such as navigation, music player, voice assistant, etc.) and then selects the appropriate application for display based on the hardware characteristics of the display.
[0088] When the operating system lists all supported applications (candidate applications), relevant information of all candidate applications can be manually input into the candidate applications, or automatically acquired according to predetermined application-related information.
[0089] With respect to step S202, after all candidate applications are determined, data is searched from the configuration center for each candidate application in order of priority based on the application information of the candidate application to determine whether corresponding configuration data can be extracted.
[0090] Here, the application data may generally include a variety of key information about the application, which helps determine how to perform adaptation testing on the display screen.
[0091] Regarding step S203, in this step, if the configuration data of the candidate application can be extracted in the configuration center, the candidate application is determined as the application to be tested, and at least one interface to be tested included in the application to be tested is determined based on the interface-related data in the extracted configuration data.
[0092] In this way, by determining candidate applications and extracting configuration data from the configuration center to confirm the application to be tested, manual selection and excessive testing are avoided, and unnecessary workload is reduced, making the testing work more efficient and effectively saving time and human resources.
[0093] With respect to step S102, in this step, according to a preset combination strategy, the configuration data of at least one test mode under at least one test dimension obtained for the interface to be tested are combined to obtain at least one test case for the interface to be tested. Then, for each test case, the test script corresponding to the test case is extracted from the configuration center.
[0094] Here, a test script refers to a series of automated instructions and operation steps written to execute a specific test case.
[0095] For example, assuming that the application to be tested is a multimedia application, the corresponding interface to be tested is the main interface, and the configuration data obtained includes configuration data that the test mode is single-finger linear sliding under the sliding mode dimension, configuration data that the test mode is uniform sliding under the motion mode dimension, and configuration data that the test mode is variable speed sliding under the motion mode dimension.
[0096] In this way, the test cases corresponding to the main interface include: sliding a single finger in a straight line along the vertical direction at a uniform speed (slow speed (20 pixels per second), medium speed (80 pixels per second) and high speed (200 pixels per second)), sliding a single finger in a straight line along the vertical direction at variable speeds (slow speed (20 pixels per second), medium speed (80 pixels per second) and high speed (200 pixels per second)).
[0097] It should be noted that each interface to be tested can determine at least one test case. In order to implement the test method indicated by the test case, corresponding execution script support is required.
[0098] In one implementation provided in the present application, the test script corresponding to the test case is extracted by the following steps:
[0099] S1021. Identify configuration data of all test methods included in the test case.
[0100] S1022. For each test mode, extract an initial script of the test mode from the configuration center according to the configuration data of the test mode and the mapping relationship.
[0101] S1023. Combine the initial scripts of all test methods in the test case to obtain the test script of the test case.
[0102] It should be noted that a mapping relationship between interface-test method-script is established in the configuration center.
[0103] Here, the interface usually represents the visual part of the object or system that the user will operate. The test method refers to the specific method or strategy for executing the test, which may include each test method under each test dimension. The script refers to the code or instructions for executing the test. The "mapping relationship between interface-test method-script" is a rule or relationship established in the configuration center, which is used to automatically extract and execute the corresponding test script according to the interface and test method selected by the user.
[0104] With respect to step S1021, in this step, for each test case, all test modes involved in the test case and their corresponding configuration data are analyzed and identified.
[0105] Here, each test method corresponds to a configuration data.
[0106] Regarding step S1022, in this step, for each test method identified in step S1021, the corresponding initial test script is extracted from the configuration center according to its configuration data and a predefined mapping relationship (ie, the correspondence rule between the configuration data and the script).
[0107] It should be noted that in the configuration center, each test method corresponds to a unique initial script.
[0108] With respect to step S1023, in this step, all the extracted initial scripts (scripts corresponding to each test method) are combined to form a complete test script. The test script covers all the test methods and test steps required for the test case, and finally forms an executable script containing all relevant test contents.
[0109] Regarding step S103, in this step, after obtaining all the test scripts of the interface to be tested, each test script corresponding to the test interface is automatically loaded in sequence; when the test script is loaded, the various data generated during the test process are obtained and integrated in real time to generate test monitoring data of the interface to be tested.
[0110] In an implementation manner provided by the present application, the sequentially loading and executing the test scripts of the interface to be tested to generate the test monitoring data of the interface to be tested includes:
[0111] S1031. Load the test scripts of the interface to be tested in sequence, and control the robot arm to perform test operations on the interface to be tested on the target display screen in the current test environment.
[0112] S1032, controlling the image acquisition device to shoot the interface to be tested on the target display screen where the test operation is performed, obtaining screen display data, and simultaneously obtaining system performance parameters through a monitoring script.
[0113] S1033. When the test end condition of the interface to be tested is reached, test monitoring data of the interface to be tested is generated according to the acquired screen display data and system performance parameters.
[0114] For step S1031, the robot arm may be a five-finger simulation robot arm, which can simulate gestures such as click, slide, drag, zoom, etc. on the touch screen. The robot arm will perform each operation according to the instructions in the test script to ensure that each test step can be simulated on the actual hardware.
[0115] In addition, when loading the test script, environmental simulation can also be performed, such as simulating extreme environmental conditions such as high or low temperatures, to verify the performance and stability of the display in different environments.
[0116] For steps S1032-S1033, the image acquisition device may be a high-speed camera. When acquiring screen display data, the image acquisition device may acquire screen display changes from the time the robot arm contacts the screen and starts sliding to the time the sliding ends.
[0117] The system performance parameters may include technical indicators such as CPU usage, GPU, memory usage, network latency, disk read and write, etc.
[0118] Each test case has a preset test end condition, which may be the completion of a certain operation, interface stability, a specific time limit, etc. The test end condition of each test case can be determined when the test script is loaded.
[0119] After executing step S103, in another embodiment provided in the present application, the testing method further includes:
[0120] S104, determining an interface evaluation result of each performance evaluation indicator of the interface to be tested according to the test monitoring data of the interface to be tested;
[0121] S105: Generate a performance test report of the target display screen according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested.
[0122] With respect to step S104, in this step, the test monitoring data of each test case under each interface to be tested is analyzed to determine the performance (interface evaluation result) of the target display screen displaying the interface to be tested under different performance evaluation indicators during this test.
[0123] Here, the interface evaluation result may be an evaluation value.
[0124] For example, the performance evaluation index includes at least one of the following: an image display evaluation index and a system performance evaluation index; and the image display evaluation index and the system performance evaluation index each include at least one sub-performance evaluation index.
[0125] The image display evaluation index may include: image displacement deviation degree, image blur degree, and image tearing frame.
[0126] The degree of image displacement deviation can be determined by values such as average value, standard deviation and maximum value.
[0127] The image blur degree can be determined by counting the occurrence frequency and the number of continuous frames of abnormal image blur events.
[0128] The image tearing frames may specifically be the total number of image tearing frames.
[0129] The system performance parameters may include: CPU impact, memory impact, GPU impact, image frame change information, etc.
[0130] The CPU influence degree may specifically refer to the influence degree of CPU performance on screen display effect.
[0131] The memory impact may specifically refer to the impact of memory resources on the smoothness of screen interaction.
[0132] The GPU impact degree may refer to the impact degree of the GPU impact degree usage rate in screen graphics processing.
[0133] The image frame change information may be the average frame rate and the maximum continuous frame loss during the test.
[0134] Among them, different performance evaluation indicators can set corresponding weights according to actual conditions.
[0135] With respect to step S105, in this step, when the report generation node is reached, a performance test report of the target display screen is generated based on the interface evaluation results of all performance evaluation indicators of the interface to be tested in a specified time period.
[0136] Here, the performance test report may list in detail the performance of the interface in each dimension (performance evaluation index).
[0137] For example, the performance test report may include emphasizing key fluency issues that affect user experience and proposing preliminary improvement suggestions, such as optimizing software algorithms, adjusting system resource allocation strategies, improving hardware heat dissipation design, etc.
[0138] The performance test report of the display screen may be determined based on all evaluation results of one interface, or may be determined based on all evaluation results of all interfaces.
[0139] For example, in one embodiment provided in the present application, generating a performance test report of the target display screen according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested includes:
[0140] S1051. For each interface to be tested, weighted processing is performed on all interface evaluation results of the interface to be tested to obtain an interface test result of the display screen performance when operating the interface to be tested.
[0141] S1052: Determine at least one target interface required for evaluating the performance of the target display screen.
[0142] S1053: Generate a performance test report of the target display screen according to the interface test results of the display screen performance when operating all target interfaces.
[0143] For step S1051, for each interface to be tested, all interface evaluation results corresponding to each test case under the interface to be tested are weighted to obtain a comprehensive test result (interface test result) of the display screen performance when operating the interface to be tested.
[0144] For step S1052, at least one target interface is determined according to a preset selection strategy for evaluating the performance of the entire target display screen, wherein the target interface is all interfaces to be tested or part of the interfaces to be tested.
[0145] With respect to step S1053, in this step, the interface test results corresponding to all target interfaces are weighted and integrated to generate a performance test report of the target display screen.
[0146] In this way, this solution ensures the standardization and unification of the test method by obtaining the configuration data corresponding to each interface to be tested from the configuration center. In this way, the test method no longer relies on the experience and judgment of the tester, but is tested according to the pre-set standards, reducing the interference of human factors. Test cases and test scripts are generated according to the configuration data extracted by the configuration center. The automated test cases and scripts can cover tests of different dimensions and methods, ensure the comprehensiveness and accuracy of the test process, and improve the credibility and scientificity of the test results. By controlling the robot arm to perform the test operation, the inconsistency of manual operation is eliminated, the accuracy and consistency of each test operation are ensured, and the test errors that may be caused by improper operation of the tester in the traditional method can be avoided. In addition, by analyzing the test monitoring data according to a variety of performance evaluation indicators, the performance of the display screen can be objectively evaluated, avoiding the subjective judgment based on personal experience that may exist in traditional tests. And according to the evaluation results corresponding to each evaluation indicator, a detailed performance test report of the display screen can be generated, thereby providing developers with detailed performance evaluation data and helping developers identify the specific reasons why the interface fluency does not meet the standards, thereby providing a scientific and systematic basis for subsequent optimization.
[0147] Based on the same inventive concept, a testing device corresponding to the testing method is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to the above-mentioned testing method in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be repeated.
[0148] See also Figure 2 , Figure 3 , Figure 2 This is one of the structural schematic diagrams of a display screen performance testing device provided in an embodiment of the present application. Figure 3 This is a second structural diagram of a display screen performance testing device provided in an embodiment of the present application. Figure 2 As shown in , the testing device 200 comprises:
[0149] The acquisition module 210 is used to acquire, for each interface to be tested in each application to be tested, configuration data of at least one test mode under at least one test dimension from the configuration center according to application information of the interface to be tested;
[0150] An extraction module 220 is used to generate at least one test case of the interface to be tested according to the configuration data of at least one test mode under at least one test dimension obtained, and extract the test script corresponding to each test case from the configuration center;
[0151] The test module 230 is used to sequentially load and execute the test script of the interface to be tested, and generate the test monitoring data of the interface to be tested.
[0152] Optionally, the testing device 200 further includes a report generating module 240, and the report generating module 240 is used to:
[0153] Determine the interface evaluation result of each performance evaluation indicator of the interface to be tested according to the test monitoring data of the interface to be tested;
[0154] A performance test report of the target display screen is generated according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested.
[0155] Optionally, a mapping relationship between interface, test mode and script is established in the configuration center, and the extraction module 220 is used to extract the test script corresponding to the test case through the following steps:
[0156] Identify configuration data for all test methods included in the test case;
[0157] For each test mode, according to the configuration data of the test mode and the mapping relationship, extracting the initial script of the test mode from the configuration center;
[0158] The initial scripts of all test methods in the test case are combined to obtain the test script of the test case.
[0159] Optionally, when the test module 230 is used to sequentially load and execute the test script of the interface to be tested to generate the test monitoring data of the interface to be tested, the test module 230 is used to:
[0160] Load the test scripts of the interface to be tested in sequence, and control the robot arm to perform test operations on the interface to be tested on the target display screen in the current test environment;
[0161] Controlling the image acquisition device to shoot the interface to be tested on the target display screen where the test operation is performed, obtaining screen display data, and simultaneously obtaining system performance parameters through a monitoring script;
[0162] When the test end condition of the interface to be tested is reached, test monitoring data of the interface to be tested is generated according to the acquired screen display data and system performance parameters.
[0163] Optionally, when the report generating module 240 is used to generate a performance test report of the target display screen according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested, the report generating module 240 is used to:
[0164] For each interface to be tested, all interface evaluation results of the interface to be tested are weighted to obtain an interface test result of the display screen performance when operating the interface to be tested;
[0165] Determining at least one target interface required for evaluating the performance status of the target display screen;
[0166] Based on the interface test results of all target interfaces, a performance test report of the target display screen is generated.
[0167] Optionally, the test dimension includes at least one of the following: a sliding mode dimension, a motion pattern dimension, and an environmental condition dimension.
[0168] Optionally, the performance evaluation index includes at least one of the following: an image display evaluation index and a system performance evaluation index; and the image display evaluation index and the system performance evaluation index each include at least one sub-performance evaluation index.
[0169] Optional, such as Figure 3 As shown, the testing device 200 further includes a second determining module 250, and the second determining module 250 is used to determine the application to be tested and the interface to be tested included therein through the following steps;
[0170] determining at least one candidate application supported by the target display screen;
[0171] For each candidate application, extract configuration data from the configuration center according to the application information of the candidate application;
[0172] If the configuration data is extracted, the candidate application is determined to be the application to be tested, and the interface to be tested included in the application to be tested is determined based on the extracted configuration data.
[0173] See also Figure 4 , Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Figure 4 As shown in , the electronic device 400 includes a processor 410 , a memory 420 and a bus 430 .
[0174] The memory 420 stores machine-readable instructions executable by the processor 410. When the electronic device 400 is running, the processor 410 communicates with the memory 420 via the bus 430. When the machine-readable instructions are executed by the processor 410, the above-mentioned Figure 1 The specific implementation of the steps of the testing method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0175] The present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the computer program can execute the above-mentioned Figure 1The specific implementation of the steps of the testing method in the method embodiment shown can be found in the method embodiment, and will not be repeated here.
[0176] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0177] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.
[0178] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0179] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0180] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a non-volatile computer-readable storage medium that is executable by a processor. Based on this understanding, the technical solution of the present application can essentially be embodied in the form of a software product, or in other words, the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0181] Finally, it should be noted that the above-described embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the above-mentioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the above-mentioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; and these modifications, changes or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of the present application, and should be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.
Claims
1. A method for testing display performance, characterized in that: The test method includes: For each interface to be tested in each application to be tested, obtaining configuration data of at least one test mode under at least one test dimension from a configuration center according to application information of the interface to be tested; Generate at least one test case for the interface to be tested according to the acquired configuration data of at least one test mode under at least one test dimension, and extract the test script corresponding to each test case from the configuration center; The test scripts of the interface to be tested are loaded and executed in sequence to generate test monitoring data of the interface to be tested.
2. The testing method according to claim 1, characterized in that: After generating the test monitoring data of the interface to be tested, the test method further includes: Determine the interface evaluation result of each performance evaluation indicator of the interface to be tested according to the test monitoring data of the interface to be tested; A performance test report of the target display screen is generated according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested.
3. The testing method according to claim 1, characterized in that: The configuration center establishes a mapping relationship between interface, test mode and script, and extracts the test script corresponding to the test case through the following steps: Identify configuration data for all test methods included in the test case; For each test mode, according to the configuration data of the test mode and the mapping relationship, extracting the initial script of the test mode from the configuration center; The initial scripts of all test methods in the test case are combined to obtain the test script of the test case.
4. The testing method according to claim 1, characterized in that: The step of sequentially loading and executing the test scripts of the interface to be tested to generate test monitoring data of the interface to be tested includes: Load the test scripts of the interface to be tested in sequence, and control the robot arm to perform test operations on the interface to be tested on the target display screen in the current test environment; Controlling the image acquisition device to shoot the interface to be tested on the target display screen where the test operation is performed, obtaining screen display data, and simultaneously obtaining system performance parameters through a monitoring script; When the test end condition of the interface to be tested is reached, test monitoring data of the interface to be tested is generated according to the acquired screen display data and system performance parameters.
5. The testing method according to claim 2, characterized in that: The step of generating a performance test report of the target display screen according to the interface evaluation results of all performance evaluation indicators of at least one interface to be tested includes: For each interface to be tested, all interface evaluation results of the interface to be tested are weighted to obtain an interface test result of the display screen performance when operating the interface to be tested; Determining at least one target interface required for evaluating the performance status of the target display screen; Based on the interface test results of all target interfaces, a performance test report of the target display screen is generated.
6. The testing method according to claim 1, characterized in that: The test dimension includes at least one of the following: a sliding mode dimension, a motion pattern dimension, and an environmental condition dimension.
7. The testing method according to claim 1, characterized in that: The performance evaluation index includes at least one of the following: an image display evaluation index and a system performance evaluation index; and the image display evaluation index and the system performance evaluation index each include at least one sub-performance evaluation index.
8. The testing method according to claim 1, characterized in that: Determine the application to be tested and its interface to be tested by the following steps: determining at least one candidate application supported by the target display screen; For each candidate application, extract configuration data from the configuration center according to the application information of the candidate application; If the configuration data is extracted, the candidate application is determined to be the application to be tested, and the interface to be tested included in the application to be tested is determined based on the extracted configuration data.
9. A display performance testing device, characterized in that: The testing device comprises: An acquisition module is used to acquire configuration data of at least one test mode under at least one test dimension from a configuration center according to application information of the interface to be tested for each interface to be tested in each application to be tested; An extraction module, configured to generate at least one test case for the interface to be tested according to the acquired configuration data of at least one test mode under at least one test dimension, and extract the test script corresponding to each test case from the configuration center; The test module is used to sequentially load and execute the test scripts of the interface to be tested, and generate test monitoring data for the interface to be tested.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the testing method according to any one of claims 1 to 8 are executed.