An evaluation method and device for an electrical function test case, a terminal, and a medium

CN117252329BActive Publication Date: 2026-08-18FAW CAR CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311091817.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-08-28
Publication Date
2026-08-18
Estimated Expiration
2043-08-28

AI Technical Summary

Technical Problem

[0005]针对现有技术的缺陷,本发明提出一种电气功能测试用例的评价方法、装置、终端及介质,解决当前汽车行业测试用例没有统一的评价标准,评价结果差异较大,对于测试用例编写无法形成客观性、可评判性和可重复性的判断标准问题

Benefits of technology

[0056] This invention provides a method, apparatus, terminal, and medium for evaluating electrical function test cases. The method involves applying functional strategy traversal evaluation, fault code evaluation, configuration code evaluation, and signal traversal evaluation strategies to the test case data to be evaluated, respectively, to obtain functional strategy traversal evaluation scores, configuration code evaluation scores, and signal traversal evaluation scores. A comprehensive score for the test case is then obtained based on these scores. Finally, the evaluation result is obtained by comparing the comprehensive score with a standard threshold. This method is objective, evaluable, and repeatable, and can avoid differences in test case quality caused by variations in engineer experience, thereby ensuring the quality of the test cases.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117252329B_ABST
    Figure CN117252329B_ABST
Patent Text Reader

Abstract

The application discloses an evaluation method and device of an electrical function test case, a terminal and a medium, and belongs to the field of automobile electrical function testing. The function strategy traversal evaluation strategy, the fault code evaluation strategy, the configuration code evaluation strategy and the signal traversal evaluation strategy are respectively performed on test case data to be evaluated, and function strategy traversal evaluation scores, configuration code evaluation scores and signal traversal evaluation scores are obtained. A test case comprehensive score is obtained according to the function strategy traversal evaluation scores, the fault code evaluation scores, the configuration code evaluation scores and the signal traversal evaluation scores. A test case evaluation result is obtained by comparing the comprehensive score with a standard threshold value. The method has objectivity, judgeability and repeatability, can avoid different test case qualities caused by different engineer experiences, and ensures test case quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention discloses an evaluation method, device, terminal, and medium for electrical function test cases, belonging to the field of automotive electrical function testing. Background Technology

[0002] With the increasing intelligence and connectivity of automobiles, electrical functions are becoming more and more complex. As a result, the requirements for electrical function testing are becoming higher and higher. Therefore, designing high-quality electrical function test cases has become a key task.

[0003] Currently, there is no unified evaluation standard for test cases in the automotive industry. It mainly relies on the experience of review experts, which can easily lead to significant differences in evaluation results among different review experts. As a result, it is impossible to form an objective, evaluable, and repeatable judgment standard for test case writing.

[0004] Based on the above situation, there is an urgent need to establish an evaluation method for electrical function test cases. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention proposes an evaluation method, device, terminal, and medium for electrical function test cases. This addresses the current problems in the automotive industry, such as the lack of a unified evaluation standard for test cases, significant differences in evaluation results, and the inability to establish objective, evaluable, and repeatable judgment criteria for test case writing.

[0006] The technical solution of the present invention is as follows:

[0007] According to a first aspect of the present invention, an evaluation method for electrical function test cases is provided, comprising:

[0008] When an evaluation request for an electrical function test case is received, the test case data to be evaluated in the evaluation request for the electrical function test case is obtained;

[0009] The functional strategy traversal evaluation strategy is performed on the test case data to be evaluated to obtain the functional strategy traversal evaluation score;

[0010] The fault code evaluation score is obtained by applying a fault code evaluation strategy to the test case data to be evaluated.

[0011] The configuration code evaluation score is obtained by applying the configuration code evaluation strategy to the test case data to be evaluated.

[0012] The signal traversal evaluation strategy is applied to the test case data to be evaluated to obtain the signal traversal evaluation score;

[0013] The comprehensive score of the test case is obtained by traversing the functional strategy evaluation score, fault code evaluation score, configuration code evaluation score and signal traversal evaluation score. The evaluation result of the test case is obtained by comparing the comprehensive score with the standard threshold.

[0014] Preferably, the step of performing a functional strategy traversal evaluation on the test case data to be evaluated to obtain a functional strategy traversal evaluation score includes:

[0015] Acquire technical specification data, extract primary and secondary functions from the technical specification data and automatically compare them with the test case data to be evaluated one by one, traverse the evaluation to determine whether there are any omissions, and obtain several functional strategies to traverse and evaluate qualified test cases.

[0016] Obtain the preset test case writing method, select typical test cases one by one to evaluate the writing method of several functional strategies, and obtain several test cases that have passed the writing method evaluation.

[0017] A functional point sampling evaluation is performed on several qualified test cases written using the above method to determine whether the test cases cover the sampled functional points, and a number of qualified test cases for functional point sampling evaluation are obtained.

[0018] The functional strategy traversal evaluation score is obtained based on the number of qualified test cases and the total number of evaluation test cases for several functional points.

[0019] Preferably, the step of obtaining a fault code evaluation score by applying a fault code evaluation strategy to the test case data to be evaluated includes:

[0020] Obtain the corresponding fault code input file, and sequentially perform conventional fault code, self-clearing test, fault retention test and fault self-test on the test case data to be evaluated and the corresponding fault code input file to obtain a number of fault code evaluation qualified test cases.

[0021] The fault code evaluation score is obtained based on the number of qualified test cases for several fault codes and the total number of evaluated test cases.

[0022] Preferably, the step of obtaining a configuration code evaluation score by applying a configuration code evaluation strategy to the test case data to be evaluated includes:

[0023] Obtain the configuration code input file, automatically extract parameters from the configuration code input file, and formulate a configuration code traversal test evaluation template;

[0024] By iterating through each configuration code and value in the test evaluation template and comparing them with the corresponding test case data to be evaluated, several qualified test cases with configuration codes are obtained.

[0025] The configuration code evaluation score is obtained based on the number of qualified test cases for several configuration codes and the total number of evaluated test cases.

[0026] Preferably, the step of obtaining a signal traversal evaluation score by applying a signal traversal evaluation strategy to the test case data to be evaluated includes:

[0027] Obtain the signal matrix, automatically extract parameters from the signal matrix, and formulate a signal traversal test evaluation template;

[0028] By comparing each signal with the corresponding test case data in the signal traversal test evaluation template, several qualified test cases for signal traversal evaluation are obtained.

[0029] The signal traversal evaluation score is obtained based on the number of qualified test cases in several signal traversal evaluations and the total number of evaluation test cases.

[0030] Preferably, the step of obtaining a comprehensive test case score based on the functional strategy traversal evaluation score, fault code evaluation score, configuration code evaluation score, and signal traversal evaluation score includes:

[0031] The functional strategy traversal evaluation score, fault code evaluation score, configuration code evaluation score, and signal traversal evaluation score are used to obtain the comprehensive score of the test cases through formula (1):

[0032]

[0033] Where: T is the comprehensive score of test cases, T1 is the functional strategy traversal evaluation score, T2 is the fault code evaluation score, T3 is the configuration code evaluation score, T4 is the signal traversal evaluation score, and S1, S2, S3 and S4 are the weight coefficients corresponding to T1, T2, T3 and T4.

[0034] Preferably, the step of obtaining the test case evaluation result by comparing the comprehensive score with the standard threshold includes:

[0035] Determine whether the overall score of the test cases is less than 6:

[0036] Yes, notify the person who requested the test cases to rewrite the test cases;

[0037] No, proceed to the next step;

[0038] Determine whether the overall score of the test cases is greater than or equal to 6 and less than 9:

[0039] Yes, notify the test case applicant to update the test cases based on the response evaluation score;

[0040] No, notify the test case applicant that the test case has passed the evaluation.

[0041] According to a second aspect of the present invention, an evaluation apparatus for electrical function test cases is provided, comprising:

[0042] The test case data acquisition module is used to acquire the test case data to be evaluated in the evaluation request of the electrical function test case when an evaluation request for the electrical function test case is received.

[0043] The Functional Strategy Traversal Evaluation Module is used to perform a Functional Strategy Traversal Evaluation on the test case data to be evaluated to obtain a Functional Strategy Traversal Evaluation Score.

[0044] The fault code evaluation module is used to apply a fault code evaluation strategy to the test case data to be evaluated to obtain a fault code evaluation score.

[0045] The configuration code evaluation module is used to apply a configuration code evaluation strategy to the test case data to be evaluated to obtain a configuration code evaluation score.

[0046] The signal traversal evaluation module is used to apply a signal traversal evaluation strategy to the test case data to be evaluated to obtain a signal traversal evaluation score.

[0047] The evaluation result module is used to obtain a comprehensive score for test cases by traversing the evaluation score, fault code evaluation score, configuration code evaluation score, and signal traversal evaluation score according to the functional strategy, and to obtain the evaluation result of the test cases by comparing the comprehensive score with the standard threshold.

[0048] According to a third aspect of the present invention, a terminal is provided, comprising:

[0049] One or more processors;

[0050] Memory for storing the one or more processor-executable instructions;

[0051] Wherein, the one or more processors are configured as follows:

[0052] Perform the method described in the first aspect of the embodiments of the present invention.

[0053] According to a fourth aspect of the present invention, a non-transitory computer-readable storage medium is provided, wherein when instructions in the storage medium are executed by a processor of a terminal, the terminal is enabled to perform the method described in the first aspect of the present invention.

[0054] According to a fifth aspect of the present invention, an application product is provided that, when the application product is running on a terminal, causes the terminal to execute the method described in the first aspect of the present invention.

[0055] The beneficial effects of this invention are as follows:

[0056] This invention provides a method, apparatus, terminal, and medium for evaluating electrical function test cases. The method involves applying functional strategy traversal evaluation, fault code evaluation, configuration code evaluation, and signal traversal evaluation strategies to the test case data to be evaluated, respectively, to obtain functional strategy traversal evaluation scores, configuration code evaluation scores, and signal traversal evaluation scores. A comprehensive score for the test case is then obtained based on these scores. Finally, the evaluation result is obtained by comparing the comprehensive score with a standard threshold. This method is objective, evaluable, and repeatable, and can avoid differences in test case quality caused by variations in engineer experience, thereby ensuring the quality of the test cases.

[0057] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description

[0058] Figure 1 This is a flowchart illustrating an evaluation method for electrical function test cases according to an exemplary embodiment.

[0059] Figure 2 This is a schematic diagram illustrating the configuration code traversal evaluation in an evaluation method for electrical function test cases according to an exemplary embodiment.

[0060] Figure 3 This is a schematic diagram of signal traversal evaluation in an evaluation method for electrical function test cases according to an exemplary embodiment.

[0061] Figure 4 This is a schematic block diagram illustrating the structure of an evaluation device for electrical function test cases according to an exemplary embodiment.

[0062] Figure 5 This is a schematic block diagram of a terminal structure according to an exemplary embodiment. Detailed Implementation

[0063] The technical solution of the present invention will now be clearly and completely described with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0064] In the description of this invention, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing this invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this invention.

[0065] In the description of this invention, it should be noted that, unless otherwise explicitly specified and limited, the terms "installation," "connection," and "linking" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral connection; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; and they can refer to the internal connection of two components. Those skilled in the art can understand the specific meaning of the above terms in this invention based on the specific circumstances.

[0066] This invention provides an evaluation method for electrical function test cases. The method is implemented by a terminal, which can be a desktop computer or a laptop computer, etc., and the terminal includes at least a CPU.

[0067] Example 1

[0068] Figure 1 This is a flowchart illustrating an evaluation method for electrical function test cases according to an exemplary embodiment. The method is used in a terminal and includes the following steps:

[0069] Step 101: When an evaluation request for electrical function test cases is received, obtain the test case data to be evaluated from the evaluation request for electrical function test cases.

[0070] Step 102: Perform a functional strategy traversal evaluation on the test case data to be evaluated to obtain a functional strategy traversal evaluation score. The specific content is as follows:

[0071] The process involves: acquiring technical specification data; extracting primary and secondary functions from the technical specification data; automatically comparing them one by one with the test case data to be evaluated; traversing the evaluation process to determine if there are any omissions; obtaining a number of qualified test cases for functional strategies; acquiring preset test case writing methods; selecting typical test cases; evaluating the writing methods against the qualified test cases for several functional strategies to determine if the writing methods are accurate; and obtaining a number of qualified test cases for the writing methods.

[0072] For several qualified test cases evaluated using different programming methods, a functional point sampling inspection is conducted. If there are more than 200 functional test cases, 5% of the test cases are sampled for evaluation. If there are 200 or fewer functional test cases, 10 functional points are sampled for evaluation. The system determines whether the test cases cover the sampled functional points, resulting in a number of qualified functional point test cases. The functional strategy traversal evaluation score is obtained based on the number of qualified functional point test cases and the total number of evaluated test cases.

[0073] Step 103: Apply a fault code evaluation strategy to the test case data to be evaluated to obtain a fault code evaluation score. The specific details are as follows:

[0074] Obtain the corresponding fault code input file. Perform regular fault code testing, self-clearing testing, fault retention testing, and fault self-testing on the test case data to be evaluated and the corresponding fault code input file in sequence to obtain a number of qualified fault code test cases. Obtain the fault code evaluation score based on the number of qualified fault code test cases and the total number of evaluated test cases.

[0075] Step 104: Apply the configuration code evaluation strategy to the test case data to be evaluated to obtain the configuration code evaluation score, as detailed below:

[0076] Obtain the configuration code input file, automatically extract parameters from the configuration code input file, and formulate a configuration code traversal test evaluation template. By comparing each configuration code and value in the configuration code traversal test evaluation template with the test case data to be evaluated, several qualified configuration code test cases are obtained. The configuration code evaluation score is obtained based on the number of qualified configuration code test cases and the total number of evaluated test cases. Figure 2 As shown.

[0077] Step 105: Apply a signal traversal evaluation strategy to the test case data to be evaluated to obtain a signal traversal evaluation score. The specific details are as follows:

[0078] Obtain the signal matrix, automatically extract parameters from the signal matrix, and formulate a signal traversal test evaluation template. By comparing each signal in the signal traversal test evaluation template with the data of the test cases to be evaluated, several qualified signal traversal test cases are obtained. The signal traversal evaluation score is obtained based on the number of qualified signal traversal test cases and the total number of evaluated test cases. Figure 3 As shown.

[0079] Step 106: Obtain the comprehensive test case score by iterating through the functional strategy evaluation score, fault code evaluation score, configuration code evaluation score, and signal traversal evaluation score. Compare the comprehensive score with the standard threshold to obtain the test case evaluation result. The specific details are as follows:

[0080] The comprehensive test case score is obtained by using formula (1) based on the functional strategy traversal evaluation score, fault code evaluation score, configuration code evaluation score, and signal traversal evaluation score:

[0081]

[0082] Where: T is the comprehensive score of test cases, T1 is the functional strategy traversal evaluation score, T2 is the fault code evaluation score, T3 is the configuration code evaluation score, T4 is the signal traversal evaluation score, and S1, S2, S3 and S4 are the weight coefficients corresponding to T1, T2, T3 and T4. These can be set as parameters or obtained by summarizing experience.

[0083] The test case evaluation results are obtained by comparing the comprehensive score with the standard threshold, including:

[0084] Determine if the overall score of the test cases is less than 6:

[0085] Yes, notify the person who requested the test cases to rewrite the test cases;

[0086] No, proceed to the next step;

[0087] Determine if the overall score of the test cases is greater than or equal to 6 and less than 9:

[0088] Yes, notify the test case applicant to update the test cases based on the response evaluation score;

[0089] No, notify the test case applicant that the test case has passed the evaluation.

[0090] In another embodiment, the response evaluation result notification module notifies the applicant of the test case evaluation results via a display screen and / or email.

[0091] Example 2

[0092] Figure 4 This is a schematic block diagram illustrating the structure of an evaluation device for electrical function test cases according to an exemplary embodiment. The device includes:

[0093] The test case data acquisition module 210 is used to acquire the test case data to be evaluated in the evaluation request of the electrical function test case when an evaluation request for the electrical function test case is received.

[0094] The functional strategy traversal evaluation module 220 is used to perform a functional strategy traversal evaluation on the test case data to be evaluated to obtain a functional strategy traversal evaluation score.

[0095] Fault code evaluation module 230 is used to apply a fault code evaluation strategy to the test case data to be evaluated to obtain a fault code evaluation score;

[0096] The configuration code evaluation module 240 is used to apply a configuration code evaluation strategy to the test case data to be evaluated to obtain a configuration code evaluation score.

[0097] The signal traversal evaluation module 250 is used to perform a signal traversal evaluation strategy on the test case data to be evaluated to obtain a signal traversal evaluation score.

[0098] The evaluation result module 260 is used to obtain a comprehensive score for test cases by traversing the evaluation score, fault code evaluation score, configuration code evaluation score and signal traversal evaluation score according to the functional strategy, and to obtain the evaluation result of test cases by comparing the comprehensive score with the standard threshold.

[0099] This invention obtains functional strategy traversal evaluation scores, configuration code evaluation scores, and signal traversal evaluation scores by applying functional strategy traversal evaluation strategies, fault code evaluation strategies, configuration code evaluation strategies, and signal traversal evaluation strategies to the test case data to be evaluated. A comprehensive score for the test case is then obtained based on these scores. The evaluation result is obtained by comparing the comprehensive score with a standard threshold. This method is objective, evaluable, and repeatable, and can avoid differences in test case quality caused by variations in engineer experience, thereby ensuring the quality of test cases.

[0100] Example 3

[0101] Figure 5 This is a structural block diagram of a terminal provided in an embodiment of this application. The terminal can be the terminal in the above embodiments. The terminal 300 can be a portable mobile terminal, such as a smartphone or tablet computer. The terminal 300 may also be referred to as user equipment, portable terminal, or other names.

[0102] Typically, terminal 300 includes a processor 301 and a memory 302.

[0103] Processor 301 may include one or more processing cores, such as a quad-core processor or an octa-core processor. Processor 301 may be implemented using at least one hardware form selected from DSP (Digital Signal Processing), FPGA (Field-Programmable Gate Array), and PLA (Programmable Logic Array). Processor 301 may also include a main processor and a coprocessor. The main processor, also known as a CPU (Central Processing Unit), is used to process data in the wake-up state; the coprocessor is a low-power processor used to process data in the standby state. In some embodiments, processor 301 may integrate a GPU (Graphics Processing Unit), which is responsible for rendering and drawing the content to be displayed on the screen. In some embodiments, processor 301 may also include an AI (Artificial Intelligence) processor, which is used to handle computational operations related to machine learning.

[0104] Memory 302 may include one or more computer-readable storage media, which may be tangible and non-transitory. Memory 302 may also include high-speed random access memory and non-volatile memory, such as one or more disk storage devices or flash memory devices. In some embodiments, the non-transitory computer-readable storage media in memory 302 is used to store at least one instruction, which is executed by processor 301 to implement an evaluation method for an electrical function test case provided in this application.

[0105] In some embodiments, the terminal 300 may also optionally include: a peripheral device interface 303 and at least one peripheral device. Specifically, the peripheral device includes at least one of: a radio frequency circuit 304, a touch display screen 305, a camera 306, an audio circuit 307, a positioning component 308, and a power supply 309.

[0106] The peripheral device interface 303 can be used to connect at least one I / O (Input / Output) related peripheral device to the processor 301 and the memory 302. In some embodiments, the processor 301, memory 302, and peripheral device interface 303 are integrated on the same chip or circuit board; in some other embodiments, any one or two of the processor 301, memory 302, and peripheral device interface 303 can be implemented on separate chips or circuit boards, which is not limited in this embodiment.

[0107] The radio frequency (RF) circuit 304 is used to receive and transmit RF (Radio Frequency) signals, also known as electromagnetic signals. The RF circuit 304 communicates with communication networks and other communication devices via electromagnetic signals. The RF circuit 304 converts electrical signals into electromagnetic signals for transmission, or converts received electromagnetic signals back into electrical signals. Optionally, the RF circuit 304 includes: an antenna system, an RF transceiver, one or more amplifiers, a tuner, an oscillator, a digital signal processor, a codec chipset, a user identity module card, etc. The RF circuit 304 can communicate with other terminals through at least one wireless communication protocol. This wireless communication protocol includes, but is not limited to: the World Wide Web, metropolitan area networks, intranets, various generations of mobile communication networks (2G, 3G, 4G, and 5G), wireless local area networks, and / or WiFi (Wireless Fidelity) networks. In some embodiments, the RF circuit 304 may also include circuitry related to NFC (Near Field Communication), which is not limited in this application.

[0108] The touch display screen 305 is used to display a UI (User Interface). This UI may include graphics, text, icons, videos, and any combination thereof. The touch display screen 305 also has the ability to collect touch signals on or above its surface. These touch signals can be input as control signals to the processor 301 for processing. The touch display screen 305 is used to provide virtual buttons and / or a virtual keyboard, also known as soft buttons and / or a soft keyboard. In some embodiments, there may be one touch display screen 305, which is located on the front panel of the terminal 300; in other embodiments, there may be at least two touch display screens, respectively located on different surfaces of the terminal 300 or in a folded design; in still other embodiments, the touch display screen 305 may be a flexible display screen, located on a curved or folded surface of the terminal 300. Furthermore, the touch display screen 305 may be configured as a non-rectangular, irregular shape, i.e., a non-rectangular screen. The touch display screen 305 may be made of materials such as LCD (Liquid Crystal Display) or OLED (Organic Light-Emitting Diode).

[0109] Camera assembly 306 is used to acquire images or videos. Optionally, camera assembly 306 includes a front-facing camera and a rear-facing camera. Typically, the front-facing camera is used for video calls or selfies, and the rear-facing camera is used for taking photos or videos. In some embodiments, there are at least two rear-facing cameras, which are any one of a main camera, a depth-sensing camera, and a wide-angle camera, to achieve background blurring by fusion of the main camera and the depth-sensing camera, and panoramic shooting and VR (Virtual Reality) shooting by fusion of the main camera and the wide-angle camera. In some embodiments, camera assembly 306 may also include a flash. The flash can be a single-color temperature flash or a dual-color temperature flash. A dual-color temperature flash is a combination of a warm light flash and a cool light flash, which can be used for light compensation at different color temperatures.

[0110] Audio circuit 307 provides an audio interface between the user and terminal 300. Audio circuit 307 may include a microphone and a speaker. The microphone is used to collect sound waves from the user and the environment, converting the sound waves into electrical signals that are input to processor 301 for processing, or input to radio frequency circuit 304 for voice communication. For stereo sound acquisition or noise reduction purposes, multiple microphones may be used, each located at a different part of terminal 300. The microphone may also be an array microphone or an omnidirectional microphone. The speaker is used to convert electrical signals from processor 301 or radio frequency circuit 304 into sound waves. The speaker may be a conventional diaphragm speaker or a piezoelectric ceramic speaker. When the speaker is a piezoelectric ceramic speaker, it can convert electrical signals not only into audible sound waves but also into inaudible sound waves for purposes such as distance measurement. In some embodiments, audio circuit 307 may also include a headphone jack.

[0111] The positioning component 308 is used to determine the current geographic location of the terminal 300 in order to enable navigation or LBS (Location Based Service). The positioning component 308 can be a positioning component based on the US GPS (Global Positioning System), China's BeiDou system, or Russia's Galileo system.

[0112] The power supply 309 is used to power the various components in the terminal 300. The power supply 309 can be AC ​​power, DC power, a disposable battery, or a rechargeable battery. When the power supply 309 includes a rechargeable battery, the rechargeable battery can be a wired rechargeable battery or a wireless rechargeable battery. A wired rechargeable battery is a battery that is charged via a wired connection, while a wireless rechargeable battery is a battery that is charged via a wireless coil. The rechargeable battery can also be used to support fast charging technology.

[0113] In some embodiments, the terminal 300 further includes one or more sensors 310. The one or more sensors 310 include, but are not limited to: an accelerometer 311, a gyroscope 312, a pressure sensor 313, a fingerprint sensor 314, an optical sensor 315, and a proximity sensor 316.

[0114] Accelerometer 311 can detect the magnitude of acceleration along the three coordinate axes of a coordinate system established with terminal 300. For example, accelerometer 311 can be used to detect the components of gravitational acceleration along the three coordinate axes. Processor 301 can control touchscreen 305 to display the user interface in landscape or portrait view based on the gravitational acceleration signal acquired by accelerometer 311. Accelerometer 311 can also be used for games or for acquiring user motion data.

[0115] The gyroscope sensor 312 can detect the orientation and rotation angle of the terminal 300. The gyroscope sensor 312, in conjunction with the accelerometer sensor 311, can collect the user's 3D (3D) movements on the terminal 300. Based on the data collected by the gyroscope sensor 312, the processor 301 can perform the following functions: motion sensing (e.g., changing the UI based on the user's tilt), image stabilization during shooting, game control, and inertial navigation.

[0116] The pressure sensor 313 can be disposed on the side bezel of the terminal 300 and / or on the lower layer of the touch display screen 305. When the pressure sensor 313 is disposed on the side bezel of the terminal 300, it can detect the user's grip signal on the terminal 300 and perform left / right hand recognition or quick operation based on the grip signal. When the pressure sensor 313 is disposed on the lower layer of the touch display screen 305, it can control the operable controls on the UI interface based on the user's pressure operation on the touch display screen 305. The operable controls include at least one of button controls, scroll bar controls, icon controls, and menu controls.

[0117] The fingerprint sensor 314 is used to collect a user's fingerprint to identify the user's identity. When the user's identity is identified as trusted, the processor 301 authorizes the user to perform relevant sensitive operations, including unlocking the screen, viewing encrypted information, downloading software, making payments, and changing settings. The fingerprint sensor 314 can be located on the front, back, or side of the terminal 300. When the terminal 300 has physical buttons or a manufacturer's logo, the fingerprint sensor 314 can be integrated with the physical buttons or manufacturer's logo.

[0118] An optical sensor 315 is used to collect ambient light intensity. In one embodiment, the processor 301 can control the display brightness of the touch screen 305 based on the ambient light intensity collected by the optical sensor 315. Specifically, when the ambient light intensity is high, the display brightness of the touch screen 305 is increased; when the ambient light intensity is low, the display brightness of the touch screen 305 is decreased. In another embodiment, the processor 301 can also dynamically adjust the shooting parameters of the camera assembly 306 based on the ambient light intensity collected by the optical sensor 315.

[0119] The proximity sensor 316, also known as a distance sensor, is typically located on the front of the terminal 300. The proximity sensor 316 is used to detect the distance between the user and the front of the terminal 300. In one embodiment, when the proximity sensor 316 detects that the distance between the user and the front of the terminal 300 is gradually decreasing, the processor 301 controls the touchscreen display 305 to switch from a screen-on state to a screen-off state; when the proximity sensor 316 detects that the distance between the user and the front of the terminal 300 is gradually increasing, the processor 301 controls the touchscreen display 305 to switch from a screen-off state to a screen-on state.

[0120] Those skilled in the art will understand that Figure 5 The structure shown does not constitute a limitation on terminal 300, and may include more or fewer components than shown, or combine certain components, or use different component arrangements.

[0121] Example 4

[0122] In an exemplary embodiment, a computer-readable storage medium is also provided, on which a computer program is stored, which, when executed by a processor, implements an evaluation method for electrical function test cases as provided in all embodiments of the present application.

[0123] Any combination of one or more computer-readable media may be used. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus, or device.

[0124] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including—but not limited to—electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of transmitting, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0125] The program code contained on a computer-readable medium may be transmitted using any suitable medium, including—but not limited to—wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0126] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0127] Example 5

[0128] In an exemplary embodiment, an application product is also provided, including one or more instructions that can be executed by the processor 301 of the aforementioned device to complete the evaluation method for an electrical function test case.

[0129] Although embodiments of the present invention have been disclosed above, they are not limited to the applications listed in the specification and embodiments. It can be applied to various fields suitable for the present invention. Other modifications can be readily made by those skilled in the art. Therefore, without departing from the general concept defined by the claims and their equivalents, the present invention is not limited to the specific details and examples shown and described herein.

Claims

1. A method for evaluating electrical function test cases, characterized in that, include: When an evaluation request for an electrical function test case is received, the test case data to be evaluated in the evaluation request for the electrical function test case is obtained; The functional strategy traversal evaluation strategy is performed on the test case data to be evaluated to obtain the functional strategy traversal evaluation score; The fault code evaluation score is obtained by applying a fault code evaluation strategy to the test case data to be evaluated. The configuration code evaluation score is obtained by applying the configuration code evaluation strategy to the test case data to be evaluated. The signal traversal evaluation strategy is applied to the test case data to be evaluated to obtain the signal traversal evaluation score; The comprehensive score of the test case is obtained by traversing the evaluation scores of the functional strategy, fault codes, configuration codes and signals, and the evaluation result of the test case is obtained by comparing the comprehensive score with the standard threshold. The step of obtaining a functional strategy traversal evaluation score by performing a functional strategy traversal evaluation on the test case data to be evaluated includes: Acquire technical specification data, extract primary and secondary functions from the technical specification data and automatically compare them with the test case data to be evaluated one by one, traverse the evaluation to determine whether there are any omissions, and obtain several functional strategies to traverse and evaluate qualified test cases. Obtain the preset test case writing method, select typical test cases one by one to evaluate the writing method of several functional strategies, and obtain several test cases that have passed the writing method evaluation. A functional point sampling evaluation is performed on several qualified test cases written using the above method to determine whether the test cases cover the sampled functional points, and a number of qualified test cases for functional point sampling evaluation are obtained. The functional strategy traversal evaluation score is obtained based on the number of qualified test cases and the total number of evaluation test cases for several of the aforementioned functional points. The fault code evaluation strategy for the test case data to be evaluated to obtain the fault code evaluation score includes: Obtain the corresponding fault code input file, and sequentially perform conventional fault code, self-clearing test, fault retention test and fault self-test on the test case data to be evaluated and the corresponding fault code input file to obtain a number of fault code evaluation qualified test cases. The fault code evaluation score is obtained based on the number of qualified test cases for several fault codes and the total number of evaluated test cases.

2. The method for evaluating electrical function test cases according to claim 1, characterized in that, The step of applying a configuration code evaluation strategy to the test case data to be evaluated to obtain a configuration code evaluation score includes: Obtain the configuration code input file, automatically extract parameters from the configuration code input file, and formulate a configuration code traversal test evaluation template; By iterating through each configuration code and value in the test evaluation template and comparing them with the corresponding test case data to be evaluated, several qualified test cases with configuration codes are obtained. The configuration code evaluation score is obtained based on the number of qualified test cases for several configuration codes and the total number of evaluated test cases.

3. The method for evaluating electrical function test cases according to claim 2, characterized in that, The signal traversal evaluation strategy for the test case data to be evaluated to obtain the signal traversal evaluation score includes: Obtain the signal matrix, automatically extract parameters from the signal matrix, and formulate a signal traversal test evaluation template; By comparing each signal with the corresponding test case data in the signal traversal test evaluation template, several qualified test cases for signal traversal evaluation are obtained. The signal traversal evaluation score is obtained based on the number of qualified test cases in several signal traversal evaluations and the total number of evaluation test cases.

4. The method for evaluating electrical function test cases according to claim 3, characterized in that, The comprehensive score for test cases is obtained by traversing the functional strategy evaluation score, fault code evaluation score, configuration code evaluation score, and signal traversal evaluation score, including: The functional strategy traversal evaluation score, fault code evaluation score, configuration code evaluation score, and signal traversal evaluation score are used to obtain the comprehensive score of the test cases through formula (1): (1) Where: T is the comprehensive score of test cases, T1 is the functional strategy traversal evaluation score, T2 is the fault code evaluation score, T3 is the configuration code evaluation score, T4 is the signal traversal evaluation score, and S1, S2, S3 and S4 are the weight coefficients corresponding to T1, T2, T3 and T4.

5. The method for evaluating electrical function test cases according to claim 4, characterized in that, The process of obtaining test case evaluation results by comparing the comprehensive score with the standard threshold includes: Determine whether the overall score of the test cases is less than 6: Yes, notify the person who requested the test cases to rewrite the test cases; No, proceed to the next step; Determine whether the overall score of the test cases is greater than or equal to 6 and less than 9: Yes, notify the test case applicant to update the test cases based on the response evaluation score; No, notify the test case applicant that the test case has passed the evaluation.

6. An evaluation device for electrical function test cases, characterized in that, include: The test case data acquisition module is used to acquire the test case data to be evaluated in the evaluation request of the electrical function test case when an evaluation request for the electrical function test case is received. The Functional Strategy Traversal Evaluation Module is used to perform a Functional Strategy Traversal Evaluation on the test case data to be evaluated to obtain a Functional Strategy Traversal Evaluation Score. The fault code evaluation module is used to apply a fault code evaluation strategy to the test case data to be evaluated to obtain a fault code evaluation score. The configuration code evaluation module is used to apply a configuration code evaluation strategy to the test case data to be evaluated to obtain a configuration code evaluation score. The signal traversal evaluation module is used to apply a signal traversal evaluation strategy to the test case data to be evaluated to obtain a signal traversal evaluation score. The evaluation result module is used to obtain a comprehensive score for test cases by traversing the evaluation score, fault code evaluation score, configuration code evaluation score and signal traversal evaluation score according to the functional strategy, and to obtain the evaluation result of test cases by comparing the comprehensive score with the standard threshold. The step of obtaining a functional strategy traversal evaluation score by performing a functional strategy traversal evaluation on the test case data to be evaluated includes: Acquire technical specification data, extract primary and secondary functions from the technical specification data and automatically compare them with the test case data to be evaluated one by one, traverse the evaluation to determine whether there are any omissions, and obtain several functional strategies to traverse and evaluate qualified test cases. Obtain the preset test case writing method, select typical test cases one by one to evaluate the writing method of several functional strategies, and obtain several test cases that have passed the writing method evaluation. A functional point sampling evaluation is performed on several qualified test cases written using the above method to determine whether the test cases cover the sampled functional points, and a number of qualified test cases for functional point sampling evaluation are obtained. The functional strategy traversal evaluation score is obtained based on the number of qualified test cases and the total number of evaluation test cases for several of the aforementioned functional points. The fault code evaluation strategy for the test case data to be evaluated to obtain the fault code evaluation score includes: Obtain the corresponding fault code input file, and sequentially perform conventional fault code, self-clearing test, fault retention test and fault self-test on the test case data to be evaluated and the corresponding fault code input file to obtain a number of fault code evaluation qualified test cases. The fault code evaluation score is obtained based on the number of qualified test cases for several fault codes and the total number of evaluated test cases.

7. A terminal, characterized in that, include: One or more processors; Memory for storing the one or more processor-executable instructions; Wherein, the one or more processors are configured as follows: An evaluation method for performing an electrical function test case as described in any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium, characterized in that, When the instructions in the storage medium are executed by the processor of the terminal, the terminal is able to perform an evaluation method for an electrical function test case as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • Rule engine and rule engine implementation method

    CN110443512A

  • Scanning circuit

    JP1998307170A