A function detection method and device, vehicle and storage medium
Patent Information
- Application Number
- CN202311259412.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-27
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2043-09-27
AI Technical Summary
而在实际检测过程中,当检测其中一个功能时会影响等待被检测功能的前置信息(功能的前置信息必须满足一定要求时才能实时对该功能的检测,一定要求即前置条件),也就是在检测过程中,其它等待被检测功能的前置信息可能会被改变,导致该前置信息不满足前置条件,也就是待检测功能中一旦有一个或几个功能因其前置信息不满足前置条件,就需要中断对其的检测操作,同时还需要花费一定的时间去调整其前置信息至满足前置条件,之后才可以继续执行检测操作
本申请实施例在完成当前功能项之后,开始采集其它未检测功能项的前置信息,如果在检测当前功能项的过程中改变了其它未检测功能项的前置信息,那么本申请也可以获知被改变前置信息的未检测功能项,进而再根据采集到的前置信息判断该前置信息是否满足前置条件。由于本申请在每完成一个功能项的检测之后都会采集其它待检测功能的前置条件,因此可以获取到哪些前置信息是满足前置条件的,进而使得本申请可以优先集中检测前置信息满足前置条件的待检测功能项,而集中优选处理前置信息满足前置条件的若干个待检测功能项,以使得若干个待检测功能项的检测操作是连续的而非中断的,从而提高了针对被检测对象的整个检测过程的检测速度。
Smart Images

Figure CN117310327B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of automotive testing technology, specifically to a functional testing method, apparatus, vehicle, and storage medium. Background Technology
[0002] After replacing components, to prevent functional malfunctions caused by component replacement, it's necessary to test each function of the object under test. Current testing methods prioritize the functions to be tested beforehand and test them sequentially during the testing process. However, in practice, testing one function can affect the prerequisite information of other functions waiting to be tested (the prerequisite information for a function must meet certain requirements for real-time testing; these requirements are the preconditions). In other words, the prerequisite information of other waiting functions may change during testing, causing the current function to fail to meet its preconditions. If one or more functions fail to meet their preconditions, testing must be interrupted, and time must be spent adjusting their prerequisite information to meet the requirements before testing can continue. Mixing functions with and without prerequisites for testing together slows down the overall testing speed.
[0003] In summary, existing detection methods reduce detection speed.
[0004] Therefore, existing technologies still need to be improved and enhanced. Summary of the Invention
[0005] This application provides a functional testing method, apparatus, vehicle, and storage medium to address the technical problem that testing methods in related technologies reduce testing speed.
[0006] To achieve the above objectives, this application adopts the following technical solution: The first aspect of this application provides a function testing method, including the following steps: Perform testing on the object being tested, targeting the current functional item; After the detection of the current function item is completed, the pre-detection information corresponding to each undetected function item is collected. The pre-detection information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected. Determine whether each of the aforementioned prerequisite information satisfies each condition judgment result of each prerequisite condition, and based on each condition judgment result, select the next detection function item located after the current function item from each of the undetected function items.
[0007] According to the above technical means, after completing the current function item, this application begins to collect the prerequisite information of other undetected function items. If the prerequisite information of other undetected function items is changed during the detection of the current function item, this application can also know the undetected function items whose prerequisite information has been changed, and then determine whether the prerequisite information meets the prerequisite conditions based on the collected prerequisite information. Since this application collects the prerequisite conditions of other functions to be detected after completing the detection of each function item, it can obtain which prerequisite information meets the prerequisite conditions. This allows this application to prioritize the detection of functions to be detected whose prerequisite information meets the prerequisite conditions, and to centrally and preferentially process several functions to be detected whose prerequisite information meets the prerequisite conditions, so that the detection operation of several functions to be detected is continuous rather than interrupted, thereby improving the detection speed of the entire detection process for the object being detected.
[0008] Optionally, in one embodiment of this application, the current prerequisite information of the current function item satisfies the current prerequisite condition; the current detection action corresponding to the current function item is an action that the detected object needs to complete in automatic mode.
[0009] Based on the above technical means, the embodiments of this application use the function item with automatic detection mode as the current function item, which can further improve the detection speed of the entire detection process.
[0010] Optionally, in one embodiment of this application, after the detection of the current function item is completed, the pre-detection information corresponding to each undetected function item is collected. The pre-detection information is information about the object to be detected that needs to be collected in advance before the undetected function item is detected, including: After the detection of the current function item is completed, the detection results generated by the detected object are collected; When the detection result is that the current function item passes the detection, the pre-detection information corresponding to each undetected function item is collected. The pre-detection information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected. At least one of the pre-detection information is associated with the detection performed on the current function item.
[0011] According to the above technical means, the fact that the detection passed in this application embodiment means that the detection of the current function item has been completed. This means that the pre-concept information collected at this time is the pre-concept information after being affected by the detection process of the current function item. Therefore, the pre-concept information can more accurately reflect whether the pre-concept conditions are met, thereby improving the accuracy of subsequent calculation priority.
[0012] Optionally, in one embodiment of this application, determining whether each piece of precondition satisfies each precondition's condition judgment result, and filtering out the next detected function item following the current function item from each of the undetected function items based on each condition judgment result, includes: Determine each undetected action corresponding to each of the undetected functional items, wherein the undetected action is the action applied to the detected object to implement the undetected functional item; Determine whether each of the preceding information satisfies each condition judgment result of each preceding condition, and based on each condition judgment result and each undetected action, select the next detection function item located after the current function item from each of the undetected function items.
[0013] Based on the above technical means, the embodiments of this application comprehensively consider the prior information of the functional items and the detection actions, and can further filter out the functional items suitable for the next detection.
[0014] Optionally, in one embodiment of this application, determining whether each piece of precondition satisfies each precondition's condition judgment result, and filtering out the next detected function item following the current function item from each of the undetected function items based on each condition judgment result, includes: Determine whether each undetected action is an action automatically performed by the detected object to obtain an action determination result; Based on the judgment result of each condition and the judgment result of each of the undetected actions, the next detection function item located after the current function item is selected from each of the undetected function items.
[0015] Based on the above technical means, the embodiments of this application determine whether the detection action is automatic, so as to prioritize the processing of function items whose detection action is automatic, thereby improving the speed of the entire detection process.
[0016] Optionally, in one embodiment of this application, the step of filtering out the next detected function item following the current function item from each of the undetected function items based on each condition judgment result and each action judgment result of each undetected action includes: The priority of each of the undetected functional items is initialized using the same number; When the result of each condition judgment is that each piece of precondition does not meet each precondition, it is determined that each piece of precondition will be adjusted to meet the adjustment action required for each precondition. When the adjustment action is an action automatically performed by the detected object and the action judgment result is an action automatically performed by the detected object, the priority is reduced by one level; Alternatively, if the adjustment action is not an action automatically completed by the detected object or the action judgment result is not an action automatically completed by the detected object, the priority is reduced by two levels; Alternatively, if the adjustment action is not an action automatically completed by the detected object and the action judgment result is not an action automatically completed by the detected object, the priority is reduced by three levels; The undetected function item with the smallest priority reduction level is selected from all the undetected function items and used as the next detection function item.
[0017] Based on the above technical means, the embodiments of this application calculate the priority of each function item according to the prior information of the function item and the detection action, and take the undetected function item with the lowest priority as the next detection function item. That is, the function item to be detected corresponding to the adjustment action and the detection action that should be completed automatically as much as possible is taken as the next detection function item, so that the detection function item can be executed automatically immediately after the current detection function item is completed, thereby improving the detection speed.
[0018] Optionally, in one embodiment of this application, the step of filtering out the next detected function item following the current function item from each of the undetected function items based on each condition judgment result and each action judgment result of each undetected action further includes: When each of the condition judgment results satisfies each of the preconditions and the action judgment result is an action automatically completed by the detected object, the priority is the initial priority; Alternatively, if each of the condition judgment results satisfies each of the preconditions and the action judgment result is not an action automatically completed by the detected object, the priority is reduced by one level.
[0019] Based on the above technical means, in the embodiments of this application, for functional items whose preconditions are met, it is further determined whether the detection action required to detect the functional item is automatically completed by the object being detected. If it is automatically completed, the functional item is processed first. Since automatic detection actions can save detection time, prioritizing the processing of automatic detection actions can save the time required for the entire detection process.
[0020] Optionally, in one embodiment of this application, at least one of the aforementioned prerequisite information changes due to the implementation of the current function.
[0021] Based on the above technical means, this application takes into account the prior information that changes due to the implementation of the current functional item, so that the prior information collected by this application includes the information that changes due to the implementation of the current functional item. The prior information includes the changed prior information, which can more accurately determine the priority of each undetected functional item.
[0022] A second aspect of this application provides a functional testing device, comprising: The control module is used to perform detection on the object being detected for the current functional item; The information collection module is used to collect the pre-information corresponding to each undetected function item after the current function item is detected. The pre-information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected. The filtering module is used to determine whether each piece of the preceding information satisfies each condition judgment result of each preceding condition, and based on each condition judgment result, to filter out the next detected function item located after the current function item from each of the undetected function items.
[0023] A third aspect of this application provides a vehicle, the vehicle including a memory, a processor, and a function detection program stored in the memory and executable on the processor, wherein when the processor executes the function detection program, it implements the steps of the function detection method described above.
[0024] A fourth aspect of this application provides a computer-readable storage medium storing a function detection program, which, when executed by a processor, implements the steps of the function detection method described above.
[0025] The beneficial effects of this application are: In this embodiment, after completing the current function item, the preconditions for other undetected function items are collected. If the preconditions for other undetected function items are changed during the detection of the current function item, this application can also know the undetected function items whose preconditions have been changed, and then determine whether the preconditions meet the preconditions based on the collected preconditions. Since this application collects the preconditions for other functions to be detected after completing the detection of each function item, it can obtain which preconditions are met. This allows this application to prioritize the detection of function items whose preconditions meet the preconditions, and to focus on processing several function items whose preconditions meet the preconditions. This ensures that the detection operation of several function items is continuous rather than interrupted, thereby improving the detection speed of the entire detection process for the object being detected.
[0026] In this embodiment of the application, obtaining a successful detection means that the detection of the current function item has been completed. This means that the pre-detection information collected at this time is the pre-detection information after being affected by the current detection action. Therefore, the pre-detection information can more accurately reflect whether the pre-detection conditions are met, thereby improving the accuracy of subsequent priority calculations.
[0027] In this embodiment of the application, for functional items whose preconditions are met, it is further determined whether the detection action required for the functional item is automatically completed by the object being detected. If it is automatically completed, the functional item is processed first. Since automatic detection actions can save detection time, prioritizing the processing of automatic detection actions can save the time required for the entire detection process.
[0028] Additional aspects and advantages of this application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of this application. Attached Figure Description
[0029] The above and / or additional aspects and advantages of this application will become apparent and readily understood from the following description of the embodiments taken in conjunction with the accompanying drawings, wherein: Figure 1 This is the overall flowchart of this application; Figure 2 This is a vehicle structure diagram for this application; Figure 3 This is a flowchart of the testing process for this application; Figure 4 This is a flowchart illustrating the process of finding suitable detection items for the current vehicle condition in this application. Figure 5 This is a general testing flowchart for the testing items in this application; Figure 6 This is a flowchart illustrating the process of selecting inspection items based on vehicle status in this application. Figure 7 This is a flowchart illustrating the detection sequence execution of existing technologies. Figure 8 This is a schematic diagram of the structure of the functional testing device according to an embodiment of this application; Figure 9 This is a block diagram illustrating the internal structure of a vehicle as provided in an embodiment of this application. Detailed Implementation
[0030] The embodiments of this application are described in detail below. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals denote the same or similar elements or elements having the same or similar functions throughout. The embodiments described below with reference to the accompanying drawings are exemplary and intended to explain this application, and should not be construed as limiting this application.
[0031] The function detection method, apparatus, vehicle and storage medium according to the embodiments of the present application are described below with reference to the accompanying drawings. In view of the technical problem that the detection method in the related art mentioned in the above background art reduces the detection speed, the present application provides a function detection method. In the method, detection for a current function item is firstly performed on a detected object; after the detection of the current function item is completed, each piece of preamble information corresponding to each undetected function item is collected respectively, wherein the preamble information is information of the detected object that needs to be collected in advance before the undetected function item is detected, and at least one piece of preamble information among all pieces of preamble information is associated with the detection performed on the current function item; then, a condition judgment result of whether each piece of preamble information satisfies each preamble condition is determined, and a next detection function item to be detected after the current function item is screened out from all undetected function items according to each condition judgment result, so as to screen out all undetected function items of which the preamble information satisfy the preamble conditions as preferred undetected function items, and then, according to whether the detection action of the preferred undetected function items is automatic, an optimal undetected function item of the automatic type is screened out from all the preferred undetected function items. The optimal undetected function item is detected first, then the undetected function items other than the optimal undetected function item among the preferred undetected function items are detected, and finally the function items other than the preferred undetected function items among the undetected function items are detected.
[0032] For example, the detected object is a vehicle, as Figure 2 shown, the vehicle function detection software is integrated in the vehicle intelligent terminal, the vehicle function detection software can obtain controller information through a communication bus, and can enable the controller to perform an automatic action of detecting whether a function item is qualified. Taking a vehicle as an example, how to detect function items is specifically described as follows: The functions are unlocking (power on), locking (power off), and turning on the headlights. The vehicle's initial state is: power on (ON), all four door locks unlocked, and headlights off (corresponding to headlight on / off status in the previous information). The prerequisites for unlocking (power on) are: power on (OFF) and all four door locks locked. The prerequisites for locking (power off) are: power on (ON) and all four door locks unlocked. The prerequisites for turning on the headlights are: headlights off and power on (ON). Since the vehicle's initial state is: power on (ON) and all four door locks unlocked, the prerequisite for locking (power off) is met. Therefore, locking (power off) is set as the current function. A manual NFC card is swiped on the key sensor area. If locking (power off) passes the detection, the vehicle's power on becomes OFF and all four door locks become locked. In other words, because detecting locking (power off) changes the power on from ON to OFF, the prerequisite for turning on the headlights is not met. The power supply being in the OFF position and all four door locks being in the locked state fulfills the prerequisites for the unlocking and power-on function. Therefore, after testing the vehicle's locking and power-off function, unlocking and power-on is the next function to be tested, rather than turning on the headlights. The unlocking and power-on function is tested first. Once this function passes the test, the vehicle's power supply is in the ON position. Combined with the headlights being off in the initial state, the prerequisites for turning on the headlights (headlights off and power supply in the ON position) are met. After unlocking and power-on, the headlights can be tested directly. This application adjusts the testing order of each function based on whether its prerequisites are met, allowing for sequential testing of each function as much as possible. This reduces the time required to adjust unmet prerequisite information to meet the requirements, thereby improving the overall testing speed of the vehicle.
[0033] Specifically, Figure 1 This is a schematic flowchart of a functional testing method provided in an embodiment of this application.
[0034] like Figure 1 As shown, this function detection method includes the following steps: S100, Performs detection on the object being tested for the current functional item.
[0035] S200: After the current function item is detected, collect the pre-detection information corresponding to each undetected function item. The pre-detection information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected.
[0036] Among these, at least one of the preceding information is associated with the detection performed on the current function item, meaning that at least one of the preceding information changes due to the implementation of the current function item.
[0037] S300, determine whether each piece of precondition satisfies the condition judgment result of each precondition, and based on each condition judgment result, select the next detection function item after the current function item from each undetected function item.
[0038] As shown in Table 1, the functional items in steps S100, S200, and S300, the preconditions corresponding to the functional items, the actions to be performed if the conditions are not met, the actions to be performed after the conditions are met, and the conditions to be met for the functional item to pass the detection are all stored in the "Function Detection Conditions and Execution Actions Table" shown in Table 1.
[0039] Table 1
[0040] In one embodiment, the current prerequisite information of the current function item in step S100 satisfies the current prerequisite conditions and the current detection action is an action that the object being detected needs to complete in automatic mode.
[0041] In one embodiment, the specific process of step S200 is as follows: After the detection of the current function item is completed, the detection results generated by the detected object are collected; When the detection result is that the current function item passes the detection, the corresponding prerequisite information for each undetected function item is collected. At least one of the prerequisite information is related to the detection performed on the current function item.
[0042] For example, if one of the three functional items is being tested, once that functional item passes the test, the prerequisite information required to test the other two functional items is collected. Even if testing the current functional item changes the prerequisite information of the other functional items, the changed prerequisite information can still be collected because the prerequisite information of the other two functional items is collected only after the current functional item is tested.
[0043] In one embodiment, after step S300 detects one of the functional items, it is necessary to select another functional item from the remaining undetected functional items as the next functional item to be detected. When selecting the next functional item, the priority of each undetected functional item is determined one by one, and finally, the functional item with the lowest priority is selected as the next functional item to be detected. Step S300 includes the following specific steps S301 to S306: S301, determine each undetected action corresponding to each undetected function item, where an undetected action is an action applied to the detected object to implement the undetected function item.
[0044] The detection actions are those listed in Table 1. After the detection action is applied to the object being detected, the object being detected will directly indicate whether the detection of the functional item has passed.
[0045] S302, determine whether each undetected action is an action automatically completed by the detected object, and obtain the action judgment result.
[0046] The action judgment results include actions performed manually and actions performed automatically.
[0047] S303 initializes the priority of each undetected function item using the same number. In this embodiment, the initialization priority is 0 for all cases.
[0048] S304, when each prerequisite information of each undetected function item does not meet each prerequisite condition (i.e., the judgment result of each condition is that each prerequisite information does not meet each prerequisite condition), determine the adjustment action required to adjust each prerequisite information to meet each prerequisite condition.
[0049] For example, if the power setting (prerequisite information) for the "unlock and power on" function is ON, the prerequisite of being OFF is not met. However, changing the power setting from ON to OFF can be done automatically by the vehicle. Therefore, the adjustment action is automatic.
[0050] The aforementioned prerequisite information does not meet the prerequisite conditions, therefore the priority is reduced by one level.
[0051] S305, when the adjustment action is an action automatically completed by the detected object and the action judgment result is an action automatically completed by the detected object, the priority is reduced by one level (reducing by one level is equivalent to increasing the priority by one, and the undetected function item corresponding to the lowest priority is the next function item that needs to be detected).
[0052] Since the adjustment action is completed automatically, and the subsequent detection action is also completed automatically, there is no need to adjust the priority based on step S303. That is, the priority remains the same, which is reduced by one level. Since the original priority was 0, the priority at this time is 1 (reducing by one level means increasing the priority by one).
[0053] If the adjustment action is not an action automatically completed by the detected object, or if the action judgment result is not an action automatically completed by the detected object, the priority is reduced by two levels (reducing by two levels is equivalent to increasing the priority by two).
[0054] In other words, if the initial priority is 0, then the priority of the function item will become 2 if either the adjustment action or the detection action corresponding to the function item needs to be completed manually.
[0055] If the adjustment action is not an action that the detected object can automatically complete, and the action judgment result (the action judgment result of whether the action is an action that the detected object can automatically complete) is not an action that the detected object can automatically complete, the priority is reduced by three levels (reducing by three levels is the same as increasing the priority by three).
[0056] In other words, if the initial priority is 0, and the adjustment action and detection action corresponding to the function item are also manually completed, then the priority of the function item becomes 3.
[0057] S306, select the undetected function item with the smallest priority reduction level from all undetected function items as the next function item to be detected.
[0058] For each undetected function item, steps S301 to S305 are executed to obtain the priority of each undetected function item. Then, the undetected function item with the lowest priority is selected as the next function item to be detected. That is, function items whose adjustment action is of the automatic type and whose detection action is also of the automatic type are selected as the next function items to be detected.
[0059] In another embodiment, when each precondition of each undetected function item satisfies each precondition and the action judgment result is an action automatically completed by the detected object, the priority is the initial priority.
[0060] Alternatively, if each prerequisite information of each undetected function item satisfies each prerequisite condition and the action judgment result is not an action automatically completed by the detected object, the priority is reduced by one level.
[0061] The following uses a car as an example to illustrate the detailed process of steps S100 to S300 above (e.g., Figure 3 (as shown) S1, the testing personnel trigger the vehicle function self-test application to start the vehicle through HMI or through background instructions. The vehicle function self-test application obtains the "Function Test Conditions and Execution Actions Table" (Table 1 above) of the vehicle from the vehicle function self-test server and initializes all test items to an untested state.
[0062] S2, determine whether all detection items have been completed. If there are any undetected items, proceed to step S3; otherwise, proceed to step S5.
[0063] S3. Based on the current state of the vehicle, iterate through all undetected items and calculate the priority of each undetected item. Items whose prerequisite information does not meet the prerequisite conditions and whose detection action is manual have relatively higher priorities. The initial priority of each undetected item is 0.
[0064] S4: Select the lowest priority detection item as the current function item to be detected, and execute the action (detection action) for the current detection item. If there is an automatic action, the system (vehicle system) will execute it automatically. Figure 4 As shown, if there is a manual execution action, the inspector will be prompted to perform manual operation, the current inspection item status will be updated to "inspected", the inspection result will be updated according to the execution result, and the process will jump to S2.
[0065] S5, end the testing process, generate a test result report, and upload it to the vehicle function self-test server.
[0066] like Figure 5 As shown, the specific process of S3 is as follows: S3-1: Determine whether all the preconditions of the currently undetected item are met. If yes, execute S3-3; otherwise, increment the priority of the detected item by 1 and execute S3-2. S3-2, determine whether all the actions (adjustment actions, i.e., the manual or automatic actions required to adjust the preconditions that are not met by the current detection item) are automatic. If so, do not increase the priority value of S3-1 but directly execute S3-3. If not, increase the priority of the detection item by 1 based on the priority of S3-1 and execute S3-3. S3-3: Determine whether all the execution actions (the execution actions here are the detection actions used to obtain the detection results, i.e., the detection actions in Table 1) after the current detection item meets the preconditions are of the automatic type. If yes, execute S3-4; otherwise, increment the priority of the detection item by 1 and execute S3-4. S3-4, determine whether the priority of the current detection item is still 0. If yes, all the preconditions of the current detection item are met and all the actions of the detection item are of the automatic type. Perform the function detection of the current detection item and jump to S4. If no, execute S3-5. S3-5: Determine whether all undetected items have been traversed. If yes, find the lowest priority detection item from all undetected items, perform functional detection, and jump to S4. If no, jump to S3-1 and calculate the priority of the next undetected item.
[0067] Table 2
[0068] To further illustrate the testing method of this application, the specific testing process is explained using the four functional items in Table 2 (unlocking power-on, window glass rising, window glass falling, and locking power-off) as examples: S1, the tester triggers the vehicle function self-test application to start the vehicle through HMI or through background command. The vehicle function self-test application obtains the "Function Test Conditions and Execution Action Example Table" of the vehicle from the vehicle function self-test server and initializes all test items to an untested state.
[0069] S2, find the detection items suitable for the current vehicle status, and initialize the priority of all undetected items 1, 2, 3, and 4 to 0.
[0070] S3, calculate the priority of the four function items, then compare the priorities and find that the function item "window glass lowering" (detection item 3) has the lowest priority.
[0071] S4, perform the current test item 3 "window glass lowering" function test, and after the prerequisite is met, execute the action "control the four windows to lower", update test item 3 to the tested state, and determine "the four doors are closed and the four windows are open" according to the test pass condition, and jump to S2 to continue testing the remaining three function items.
[0072] The priority of "unlock and power on" in S3 is determined in the following way: S3-1a, the prerequisite for the current detection item 1 "unlock and power on" is "all four doors are locked". If the current vehicle status is not met, the priority is increased by 1 (the priority is reduced by one level) to 1, and step S3-2a is executed.
[0073] S3-2a, the current detection item 1 "unlock and power on" does not meet the precondition "the four doors are in the locked state". Its corresponding execution action "control the four doors to be in the locked state" is of the automatic type, and the priority is no longer increased by 1. Execute step S3-3a.
[0074] S3-3a, after the prerequisite condition of "unlocking and powering on" for detection item 1 is met, the action "swipe NFC card in key sensing area" is of manual type, then the priority is increased by 1 to 2 (priority is reduced by two levels), and S3-4a is executed.
[0075] S3-4a, the priority of the current detection item 1 "Unlock and Power On" is 2.
[0076] The priority of "raising the window" in S3 is determined in the following way: S3-1b, the prerequisite for the current detection item 2 "window glass rise" is "all four windows are open". If the current vehicle status is not met, the priority is increased by 1 to 1, and step S3-2b is executed.
[0077] S3-2b, the current detection item 2 "window glass rises" does not meet the precondition "all four windows are open". Its corresponding execution action "control the four windows to fall" is of the automatic type, and the priority is no longer increased by 1. Execute step S3-3b.
[0078] S3-3b, if the prerequisite for the current detection item 2 "window glass rise" is met, and the action "control the rise of four windows" is of the manual type, then the priority is increased by 1 to 2, and S3-4b is executed.
[0079] S3-4b, the current detection item "window glass rise" has a priority of 2.
[0080] The priority of "lowering the window" in S3 is determined in the following way: S3-1c, the prerequisites for the current detection item 3 "window glass lowering" are all met, the priority is increased by 0, and step S3-2c is executed.
[0081] S3-2c, after the prerequisite for the current detection item 3 "window glass lowering" is met, the action "control the lowering of four windows" is executed as an automatic type, the priority is increased by 0, and S3-3c is executed.
[0082] S3-3c, the priority of the current detection item 3 "window glass lowering" is still 0.
[0083] The following compares the execution order of manual and automatic actions in the detection method of this application and existing detection methods: like Figure 6 As shown, the testing sequence of this application is test items 3, 2, 1, and 4. A total of 5 actions are performed during this period: “Control the four windows to lower (automatic)”, “Control the four windows to rise (automatic)”, “Control the four doors to lock (automatic)”, “Swipe NFC card in the key sensor area (manual)”, and “Swipe NFC card in the key sensor area (manual)”. Among them, the manual type actions are assigned to be executed last. After the vehicle self-test application is started, the test items related to the automatic type actions can be completed first. After completion, the test items related to the manual type actions are processed by the test personnel.
[0084] like Figure 7 As shown, the conventional existing testing sequence is testing items 1, 2, 3, and 4. A total of 6 actions are performed during this process: "Control the four doors to lock (automatic)," "Swipe NFC card in the key sensor area (manual)," "Control the four windows to lower (automatic)," "Control the four windows to rise (automatic)," "Control the four windows to lower (automatic)," and "Swipe NFC card in the key sensor area (manual)." There is some overlap between the manual and automatic types, and the testing personnel need to participate throughout the process.
[0085] In summary, this application selects the most suitable inspection items based on the real-time status of the vehicle, improving the efficiency of functional testing and reducing the total testing time; it eliminates or reduces the need for manual arrangement of the order of inspection items, allowing for direct addition or deletion from the inspection item list without manual judgment on whether the order of inspection items needs to be readjusted; it can centrally execute manual or automatic actions according to their classification, reducing the time that inspection personnel spend waiting at the vehicles, which is especially suitable for scenarios involving the functional testing of a large number of vehicles, allowing inspection personnel to process vehicles awaiting manual operation one by one.
[0086] Next, the functional testing device proposed according to the embodiments of this application is described with reference to the accompanying drawings.
[0087] like Figure 8 As shown, the functional detection device 10 includes: a control module 100, an information acquisition module 200, and a screening module 300.
[0088] Specifically, the control module 100 is used to perform detection on the object being detected for the current functional item.
[0089] The information acquisition module 200 is used to collect the pre-information corresponding to each undetected function item after the detection of the current function item is completed. The pre-information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected. At least one of the pre-information is related to the detection performed on the current function item.
[0090] The filtering module 300 is used to determine whether each piece of precondition satisfies the condition judgment result of each precondition, and based on each condition judgment result, to filter out the next detection function item after the current function item from each undetected function item.
[0091] It should be noted that the foregoing explanation of the functional testing method embodiment also applies to the functional testing device of this embodiment, and will not be repeated here.
[0092] Figure 9 A schematic diagram of the structure of a vehicle provided in an embodiment of this application. The vehicle may include: The memory 501, the processor 502, and the computer program stored on the memory 501 and capable of running on the processor 502.
[0093] When the processor 502 executes the program, it implements the function detection method provided in the above embodiments.
[0094] Furthermore, the terminal equipment also includes: Communication interface 503 is used for communication between memory 501 and processor 502.
[0095] The memory 501 is used to store computer programs that can run on the processor 502.
[0096] The memory 50 1 may include high-speed RAM memory, and may also include non-volatile memory, such as at least one disk storage device.
[0097] If the memory 501, processor 502, and communication interface 503 are implemented independently, then the communication interface 503, memory 501, and processor 502 can be interconnected via a bus to complete communication between them. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. Buses can be categorized as address buses, data buses, control buses, etc. For ease of representation, Figure 9 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0098] Optionally, in a specific implementation, if the memory 501, processor 502, and communication interface 503 are integrated on a single chip, then the memory 501, processor 502, and communication interface 503 can communicate with each other through an internal interface.
[0099] Processor 502 may be a central processing unit (CPU), an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application.
[0100] This embodiment also provides a computer-readable storage medium storing a computer program thereon, which, when executed by a processor, implements the above-described function detection method.
[0101] In the description of this specification, the references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this application. In this specification, the illustrative expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of different embodiments or examples.
[0102] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one of that feature. In the description of this application, "N" means at least two, such as two, three, etc., unless otherwise explicitly specified.
[0103] Any process or method description in the flowchart or otherwise herein can be understood as representing a module, segment, or portion of code comprising one or N executable instructions for implementing custom logic functions or processes, and the scope of the preferred embodiments of this application includes additional implementations in which functions may be performed not in the order shown or discussed, including substantially simultaneously or in reverse order depending on the functions involved, as should be understood by those skilled in the art to which embodiments of this application pertain.
[0104] The logic and / or steps represented in the flowchart or otherwise described herein, for example, can be considered as a ordered list of executable instructions for implementing logical functions, and can be embodied in any computer-readable medium for use by, or in conjunction with, an instruction execution system, apparatus, or device (such as a computer-based system, a processor-included system, or other system that can read and execute instructions from or in conjunction with such an instruction execution system, apparatus, or device). For the purposes of this specification, "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transmit programs for use by or in conjunction with an instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of computer-readable media include: an electrical connection having one or more wires (electronic device), a portable computer disk drive (magnetic device), random access memory (RAM), read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disc read-only memory (CDROM). In addition, computer-readable media can even be paper or other suitable media on which programs can be printed, because programs can be obtained electronically by optically scanning paper or other media, then editing, interpreting or otherwise processing them as necessary, and then storing them in computer memory.
[0105] It should be understood that the various parts of this application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiments, the N steps or methods can be implemented using software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, it can be implemented using any one or a combination of the following techniques known in the art: discrete logic circuits having logic gates for implementing logical functions on data signals, application-specific integrated circuits (ASICs) having suitable combinational logic gates, programmable gate arrays (PGAs), field-programmable gate arrays (FPGAs), etc.
[0106] Those skilled in the art will understand that all or part of the steps of the methods described in the above embodiments can be implemented by a program instructing related hardware, and the program can be stored in a computer-readable storage medium. When executed, the program includes one or a combination of the steps of the method embodiments.
[0107] Furthermore, the functional units in the various embodiments of this application can be integrated into a processing module, or each unit can exist physically separately, or two or more units can be integrated into a module. The integrated module can be implemented in hardware or as a software functional module. If the integrated module is implemented as a software functional module and sold or used as an independent product, it can also be stored in a computer-readable storage medium.
[0108] The storage medium mentioned above can be a read-only memory, a disk, or an optical disk, etc. Although embodiments of this application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting this application. Those skilled in the art can make changes, modifications, substitutions, and variations to the above embodiments within the scope of this application.
Claims
1. A functional testing method, characterized in that, Includes the following steps: Perform testing on the object being tested, targeting the current functional item; After the detection of the current function item is completed, the corresponding prerequisite information for each undetected function item is collected. The prerequisite information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected. At least one of the prerequisite information changes due to the implementation of the current function item. Determine whether each of the aforementioned prerequisite information satisfies each condition judgment result of each prerequisite condition, and based on each condition judgment result, filter out the next detection function item located after the current function item from each of the undetected function items, including: determining each undetected action corresponding to each of the undetected function items, wherein the undetected action is the action applied to the detected object to implement the undetected function item; Determine whether each undetected action is an action automatically completed by the detected object to obtain an action judgment result; based on each condition judgment result and each action judgment result of each undetected action, select the next detection function item after the current function item from each of the undetected function items.
2. The functional testing method as described in claim 1, characterized in that, The current prerequisite information of the current function item satisfies the current prerequisite conditions; the current detection action corresponding to the current function item is an action that the object being detected needs to complete in automatic mode.
3. The functional testing method as described in claim 1, characterized in that, After the current function item is detected, the preceding information corresponding to each undetected function item is collected. The preceding information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected, including: After the detection of the current function item is completed, the detection results generated by the detected object are collected; When the detection result indicates that the current function item passes the detection, the pre-detection information corresponding to each undetected function item is collected. The pre-detection information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected.
4. The functional testing method as described in claim 1, characterized in that, The step of filtering out the next detected function item following the current function item from each of the undetected function items based on the condition judgment result and the action judgment result of each of the undetected actions includes: The priority of each of the undetected functional items is initialized using the same number; When the result of each condition judgment is that each piece of precondition does not meet each precondition, it is determined that each piece of precondition will be adjusted to meet the adjustment action required for each precondition. When the adjustment action is an action automatically performed by the detected object and the action judgment result is an action automatically performed by the detected object, the priority is reduced by one level; Alternatively, if the adjustment action is not an action automatically completed by the detected object or the action judgment result is not an action automatically completed by the detected object, the priority is reduced by two levels; Alternatively, if the adjustment action is not an action automatically completed by the detected object and the action judgment result is not an action automatically completed by the detected object, the priority is reduced by three levels; The undetected function item with the smallest priority reduction level is selected from all the undetected function items and used as the next detection function item.
5. The functional testing method as described in claim 4, characterized in that, The step of filtering out the next detected function item following the current function item from each of the undetected function items based on the condition judgment result and the action judgment result of each of the undetected actions further includes: When each of the condition judgment results satisfies each of the preconditions and the action judgment result is an action automatically completed by the detected object, the priority is the initial priority; Alternatively, if each of the condition judgment results satisfies each of the preconditions and the action judgment result is not an action automatically completed by the detected object, the priority is reduced by one level.
6. A functional testing device, characterized in that, include: The control module is used to perform detection on the object being detected for the current functional item; The information collection module is used to collect the prerequisite information corresponding to each undetected function item after the current function item is detected. The prerequisite information is the information of the object to be detected that needs to be collected in advance before the undetected function item is detected. At least one of the prerequisite information changes due to the implementation of the current function item. The filtering module is used to determine whether each piece of pre-condition information satisfies each condition judgment result of each pre-condition, and based on each condition judgment result, to filter out the next detection function item located after the current function item from each of the undetected function items, including: determining each undetected action corresponding to each undetected function item, wherein the undetected action is the action applied to the detected object to implement the undetected function item; Determine whether each undetected action is an action automatically completed by the detected object to obtain an action judgment result; based on each condition judgment result and each action judgment result of each undetected action, select the next detection function item after the current function item from each of the undetected function items.
7. A vehicle, characterized in that, The vehicle includes a memory, a processor, and a function detection program stored in the memory and executable on the processor. When the processor executes the function detection program, it implements the steps of the function detection method as described in any one of claims 1-5.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a function detection program, which, when executed by a processor, implements the steps of the function detection method as described in any one of claims 1-5.
Citation Information
Patent Citations
Method and device for generating and processing test cases
EP2930624A1
Method and electronic checking system for checking performances of an application on a target equipment of a vehicle, related computer program and applications platform
US20230205670A1