Function test method, device, equipment and medium
By receiving the script to be tested in the test terminal and generating a simulated operation sequence, sending instructions to the vehicle terminal, sorting and verifying the feedback signal, the problem of low testing efficiency of vehicle terminals in the existing technology is solved, and efficient functional testing is achieved.
Patent Information
- Application Number
- CN202411243380.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2024-12-27
AI Technical Summary
The methods used in the prior art for terminal testing of vehicle machines are relatively low efficiency, require a lot of manpower and time, and errors are prone to occur during manual signal verification.
By implementing functional testing methods in the test terminal, receiving scripts to be tested, generating simulated operation sequences based on preset operation analysis strategies, sending simulated operation instructions to the vehicle terminal, obtaining feedback signals and sorting them out, and performing consistency verification to obtain tests result.
The batch testing of the terminal functions of the vehicle machine is realized, the testing efficiency is improved, and accurate test results are obtained through signal sorting and consistency verification.
Smart Images

Figure CN119201700A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent testing technology, and in particular to a function testing method, device, equipment and medium. Background Art
[0002] With the development of computer technology, vehicle terminals with rich functions are installed in cars. However, in order to make the vehicle terminals run reliably and stably, it is necessary to test various functions of the vehicle terminals. Traditional testing methods usually test the functions in the vehicle terminals separately, obtain test signals and manually check to obtain test results, which requires a lot of manpower and time. In addition, errors may occur during the manual checking of test signals, resulting in low test efficiency. Therefore, the method for testing vehicle terminals in the prior art has the problem of low test efficiency. Summary of the invention
[0003] The embodiments of the present invention provide a function testing method, device, equipment and medium, aiming to solve the problem of low testing efficiency in the methods for vehicle terminal testing in the prior art.
[0004] In a first aspect, an embodiment of the present invention provides a function test method, wherein the method is applied to a test terminal, the test terminal is communicatively connected with a vehicle terminal, and the method includes:
[0005] If the input script to be tested is received, a simulation operation sequence corresponding to the script to be tested is generated according to a preset operation parsing strategy;
[0006] Generate a corresponding simulation operation instruction according to the simulation operation sequence and send it to the vehicle terminal, so that the vehicle terminal performs a simulation operation according to the simulation operation instruction;
[0007] Arrange the feedback signal output by the vehicle terminal according to the simulation operation sequence to obtain corresponding signal arrangement information;
[0008] The signal sorting information is verified for consistency according to the script to be tested to obtain a corresponding test result.
[0009] In a second aspect, an embodiment of the present invention further provides a functional testing device, wherein the device is configured in a test terminal, the test terminal is communicatively connected with a vehicle terminal, and the device is used to execute the functional testing method as described in the first aspect above, and the device includes:
[0010] A simulation operation sequence generating unit, configured to generate a simulation operation sequence corresponding to the script to be tested according to a preset operation parsing strategy upon receiving the input script to be tested;
[0011] A simulation operation instruction sending unit, used for generating a corresponding simulation operation instruction according to the simulation operation sequence and sending it to the vehicle terminal, so that the vehicle terminal performs a simulation operation according to the simulation operation instruction;
[0012] A signal sorting information acquisition unit, used to sort the feedback signal output by the vehicle terminal according to the simulation operation sequence to obtain corresponding signal sorting information;
[0013] The test result acquisition unit is used to verify the consistency of the signal sorting information according to the script to be tested to obtain the corresponding test result.
[0014] In a third aspect, an embodiment of the present invention further provides a computer device, wherein the device includes a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;
[0015] Memory, used to store computer programs;
[0016] The processor is used to implement the steps of the functional testing method described in the first aspect when executing the program stored in the memory.
[0017] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the steps of the functional testing method described in the first aspect above are implemented.
[0018] The embodiment of the present invention provides a functional testing method, device, equipment and medium, the method includes: receiving an input script to be tested and generating a corresponding simulation operation sequence according to an operation analysis strategy, generating a corresponding simulation operation instruction according to the simulation operation sequence and sending it to a vehicle terminal, obtaining a feedback signal output by the vehicle terminal and arranging it according to the simulation test sequence to obtain signal arrangement information, and performing consistency check on the signal arrangement information according to the script to be tested to obtain a test result. The above method can generate a corresponding simulation operation sequence through the script to be tested and perform a simulation operation on the vehicle terminal, obtain the feedback signal and arrange the signal arrangement information, and then perform consistency check to obtain the test result, thereby realizing batch testing of various functions in the vehicle terminal, and obtaining accurate testing by arranging and consistency checking the feedback signal, which greatly improves the efficiency of functional testing of the vehicle terminal. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying any creative work.
[0020] Figure 1 A method flow chart of a functional testing method provided by an embodiment of the present invention;
[0021] Figure 2 A schematic diagram of an application scenario of the functional testing method provided by an embodiment of the present invention;
[0022] Figure 3 A schematic block diagram of a functional testing device provided by an embodiment of the present invention;
[0023] Figure 4 It is a schematic block diagram of a computer device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0024] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0025] It should be understood that when used in this specification and the appended claims, the terms "include" and "comprises" indicate the presence of described features, integers, steps, operations, elements and / or components, but do not exclude the presence or addition of one or more other features, integers, steps, operations, elements, components and / or combinations thereof.
[0026] It should also be understood that the terms used in the present specification are only for the purpose of describing specific embodiments and are not intended to limit the present invention. As used in the present specification and the appended claims, unless the context clearly indicates otherwise, the singular forms "a", "an" and "the" are intended to include plural forms.
[0027] It should be further understood that the term "and / or" used in the present description and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes these combinations.
[0028] See also Figure 1As shown in the figure, the embodiment of the present invention provides a functional testing method, which is applied in a test terminal and is executed by application software installed in the test terminal. Figure 2 As shown, the test terminal 10 is connected to the vehicle terminal 20 for communication. The test terminal 10 can be a terminal device such as a laptop, desktop computer, tablet computer or mobile phone; the vehicle terminal 20 is a multimedia device installed in the vehicle for information display and audio playback. The vehicle terminal 20 is provided with buttons, knobs and touch screens. During use, the user can input corresponding operation information (including button operation information, knob operation information and touch operation information) to the vehicle terminal 20 through buttons, knobs and touch screens. The vehicle terminal 20 executes and feeds back the received operation information. The vehicle terminal can display the corresponding interface through the touch screen according to the operation information, and the vehicle terminal 20 can also send corresponding sound information through the speaker. Figure 1 As shown, the method includes steps S110 to S140.
[0029] S110: If an input script to be tested is received, a simulation operation sequence corresponding to the script to be tested is generated according to a preset operation parsing strategy.
[0030] If the input script to be tested is received, a simulated operation sequence corresponding to the script to be tested is generated according to a preset operation parsing strategy. In order to test the functions involved in the application installed in the vehicle terminal, the tester can input the script to be tested into the test terminal, and the test terminal will parse the script to be tested according to the pre-configured operation parsing strategy, thereby generating a simulated operation sequence corresponding to the script to be tested. The simulated operation sequence is the sequence information of the user's various operations simulated on the vehicle terminal by the software program, and the simulated operation sequence includes multiple operation actions, and each operation action can be triggered on the vehicle terminal and generate an operation information.
[0031] In a specific embodiment, step S110 includes sub-steps: parsing each test item in the script to be tested according to the operation parsing strategy to obtain operation actions matching each test item; generating a corresponding simulation operation sequence according to the operation actions of each test item.
[0032] Multiple test items can be configured in the script to be tested. Each test item can test an application function in the vehicle terminal. The test items contained in the script to be tested can be parsed according to the operation parsing strategy. Specifically, each test item corresponds to one or more operation triggering methods. The operation parsing strategy contains operation actions corresponding to each operation triggering method. The operation triggering methods include button click trigger, button long press trigger, knob trigger, single-point click touch, single-point sliding touch, multi-point sliding touch, etc. The operation triggering method of each test item can be matched and parsed through the operation parsing strategy to obtain the operation action matching each test item.
[0033] For example, if a test item is a screen zoom test, the corresponding operation trigger method is multi-point sliding touch, and the operation action that matches the multi-point sliding touch in the operation analysis strategy is the multi-point sliding touch operation; another test item is a volume adjustment test, and the corresponding operation trigger methods are button click trigger, button long press trigger, knob trigger and single-point sliding touch. The corresponding operation actions that can be obtained from the operation analysis strategy are button click operation, button long press operation, knob rotation operation, and single-point sliding touch operation.
[0034] A simulation operation sequence is generated according to the operation actions corresponding to each test item, and the simulation operation sequence includes a plurality of operation actions arranged in a sequence.
[0035] In a specific embodiment, the generating of a corresponding simulation operation sequence according to the operation actions of each of the test items includes: arranging the operation actions of each of the test items in sequence according to the order of each of the test items in the script to be tested to obtain corresponding operation ordering information; judging whether the types of two adjacent operation actions in the operation ordering information are the same; if the types of the two adjacent operation actions are the same, inserting a first interval time between the two operation actions; if the types of the two adjacent operation actions are different, inserting a second interval time between the two operation actions, the second interval time being greater than the first interval time; and using the operation ordering information with the inserted interval time as the simulation operation sequence.
[0036] The operation actions corresponding to each test item can be arranged in sequence according to the order of the test items in the script to be tested. For example, if test item A is in front and test item B is in the back, the operation action of test item A is arranged in front. Among the operation actions of the same test item, the button operation is arranged in front, followed by the knob operation, and finally the touch operation. The operation order information can be obtained by arranging the operation actions of each test item in sequence. Furthermore, it is judged whether the types of two adjacent operation actions in the operation order information are the same.
[0037] If the types of two adjacent operation actions are the same, a first interval time is inserted between the two operation actions, for example, both are key operations or both are touch operations, for example, the first interval time can be 0.8-1.2 seconds. If the types of two adjacent operation actions are different, a second interval time can be inserted between the two operation actions, for example, the type of one operation action is a key operation and the type of the latter operation action is a touch operation, for example, the second interval time can be 1.5-3 seconds. Among them, the second interval time is greater than the first interval time. If the types of two adjacent operation actions are the same, the user can switch between the two operation actions in a short time during actual use; if the types of two adjacent operation actions are different, the user needs a longer time to switch between the two operation actions during actual use. By inserting corresponding time intervals between adjacent operation actions, the actual operation process of the user can be simulated more realistically. The operation sorting information of the first time interval and the second time interval inserted is used as the corresponding simulation operation sequence.
[0038] S120: Generate a corresponding simulation operation instruction according to the simulation operation sequence and send it to the vehicle terminal, so that the vehicle terminal performs a simulation operation according to the simulation operation instruction.
[0039] Generate corresponding simulation operation instructions according to the simulation operation sequence and send them to the vehicle terminal, so that the vehicle terminal performs simulation operation according to the simulation operation instructions. According to the generated simulation operation sequence, the test terminal can generate simulation operation instructions accordingly and send them to the vehicle terminal, then the vehicle terminal receives the simulation operation instructions in the corresponding order and implements the simulation operation; then the interval between two adjacent simulation operation instructions sent to the vehicle terminal is equal to the interval between the corresponding operation actions of the simulation operation instructions in the simulation operation sequence, and the corresponding interval between the two operation actions in the simulation operation sequence is 2.5 seconds, then the interval between the two corresponding simulation operation instructions sent to the vehicle terminal is also 2.5 seconds. For example, the corresponding ADB (Android Debug Bridge) simulation operation instructions can be generated based on the simulation operation sequence.
[0040] S130 , sorting the feedback signal output by the vehicle terminal according to the simulation operation sequence to obtain corresponding signal sorting information.
[0041] The feedback signal output by the vehicle terminal is sorted according to the simulation operation sequence to obtain corresponding signal sorting information. Further, the test terminal can receive the feedback information of the vehicle terminal in response to the simulation operation instruction, and the received feedback signal can be sorted according to the simulation operation sequence to obtain signal sorting information.
[0042] In a specific embodiment, step S130 includes sub-steps: sorting and organizing the feedback signals according to the receiving time of each feedback signal; associating and organizing the feedback signals with the operating actions according to the triggering time of each operating action in the simulation operation sequence and the receiving time of the feedback signal to obtain corresponding signal organizing information.
[0043] Specifically, the feedback signals can be sorted according to the reception time of each feedback signal, and the feedback signals with earlier reception time are sorted first, and the feedback signals with later reception time are sorted last. Furthermore, the feedback signals and the operation actions are correlated and sorted according to the triggering time of each operation action in the simulated operation sequence and the reception time of the feedback signal. Generally speaking, a set of feedback signals can be obtained when the simulated operation instruction of each operation action is sent to the vehicle terminal, but there may be a situation where the feedback signal cannot be obtained when the simulated operation instruction is sent to the vehicle terminal.
[0044] It can be checked whether the interval between the receiving time of the feedback signal and the triggering time of the corresponding operation action exceeds the interval between the operation action and the next operation action. If the interval between the receiving time of the feedback signal and the triggering time of the corresponding operation action does not exceed the interval between the operation action and the next operation action, the simulation operation instruction is added to the position corresponding to the feedback signal in the feedback signal sorting result for associated storage.
[0045] If the interval between the reception time of the feedback signal and the triggering time of the operation action exceeds the interval time between the operation action and the next operation action, it means that the analog operation instruction has not obtained the corresponding feedback signal, and the feedback signal judged this time is actually the feedback signal generated by the corresponding trigger of the next analog operation instruction; the blank signal is added to the feedback signal corresponding to the analog operation instruction before the analog operation instruction in the feedback signal sorting result.
[0046] By sorting and arranging the feedback signals, signal arrangement information is obtained, and the total number of signals contained in the signal arrangement information is equal to the simulation operation instruction, and each signal (the signal includes the received feedback signal and the blank signal inserted in the subsequent arrangement process) corresponds to a simulation operation instruction.
[0047] S140: Perform consistency verification on the signal sorting information according to the script to be tested to obtain a corresponding test result.
[0048] According to the script to be tested, the signal arrangement information is verified for consistency to obtain the corresponding test result. Further, according to the script to be tested, the signal arrangement information is verified for consistency. Specifically, the script to be tested contains the expected test results corresponding to each test item. The expected test results corresponding to the simulation operation instructions of each signal in the signal arrangement information can be obtained from the script to be tested. Whether each signal in the signal arrangement information is consistent with the corresponding expected test result is verified, thereby obtaining the test result of whether the operation action of each test item in the script to be tested is passed. Specifically, the test result of each blank signal in the signal arrangement information is not passed. In addition, the consistency verification can be performed to check whether the coding value of each feedback signal in the script to be tested is the same as the expected coding in the expected test result, and at the same time, the feedback delay time of the feedback signal (the feedback delay time is also the interval between the receiving time of the feedback signal and the triggering time of the corresponding operation action) is within the delay threshold in the expected test result. If the coding value of the feedback signal is the same as the corresponding expected coding, and the feedback delay time is within the delay threshold, the test result of the feedback signal is passed; if the coding value of the feedback signal is not the same as the corresponding expected coding, or the feedback delay time exceeds the delay threshold, the test result of the feedback signal is failed.
[0049] In a specific embodiment, after step S140, the method further includes generating a corresponding test log according to the test result and outputting the log.
[0050] Furthermore, a corresponding test log can be generated and output according to the test result, and the tester can view the log information obtained by testing each test item one by one through the test log. For example, if the test result is passed, the log information corresponding to the test result in the generated test log is "THU_HU_537_1.HU_RearMirrorFoldSet==100%, rearview mirror folding Pass"; if the test result is not passed, the log information corresponding to the test result in the generated test log is "THU_HU_537_1.HU_RearMirrorFoldSet==0%, expected inconsistency".
[0051] In the functional testing method disclosed in the above embodiment, the method includes: receiving an input script to be tested and generating a corresponding simulation operation sequence according to the operation analysis strategy, generating a corresponding simulation operation instruction according to the simulation operation sequence and sending it to the vehicle terminal, obtaining the feedback signal output by the vehicle terminal and arranging it according to the simulation test sequence to obtain signal arrangement information, and performing consistency check on the signal arrangement information according to the script to be tested to obtain the test result. The above method can generate a corresponding simulation operation sequence through the script to be tested and perform a simulation operation on the vehicle terminal, obtain the feedback signal and arrange the signal arrangement information, and then perform consistency check to obtain the test result, thereby realizing batch testing of various functions in the vehicle terminal, and obtaining accurate testing by arranging and consistency checking the feedback signal, which greatly improves the efficiency of functional testing of the vehicle terminal.
[0052] The embodiment of the present invention further provides a functional testing device, which can be configured in a test terminal and is used to execute any embodiment of the aforementioned functional testing method. Figure 3 , Figure 3 A schematic block diagram of a functional testing device provided by an embodiment of the present invention.
[0053] like Figure 3 As shown, the functional testing device 100 includes a simulation operation sequence generating unit 110 , a simulation operation instruction sending unit 120 , a signal sorting information acquiring unit 130 and a test result acquiring unit 140 .
[0054] The simulation operation sequence generating unit 110 is used to generate a simulation operation sequence corresponding to the script to be tested according to a preset operation parsing strategy upon receiving an input script to be tested.
[0055] In a specific embodiment, the simulation operation sequence generation unit 110 includes: an operation action acquisition unit, which is used to parse each test item in the script to be tested according to the operation parsing strategy to obtain operation actions matching each test item; and a generation unit, which is used to generate a corresponding simulation operation sequence according to the operation actions of each test item.
[0056] In a specific embodiment, the generation unit includes: an operation sorting information acquisition unit, which is used to sequentially arrange the operation actions of each test item according to the order of each test item in the script to be tested to obtain corresponding operation sorting information; a judgment unit, which is used to judge whether the types of two adjacent operation actions in the operation sorting information are the same; a first interval time insertion unit, which is used to insert a first interval time between the two adjacent operation actions if the types of the two adjacent operation actions are the same; a second interval time insertion unit, which is used to insert a second interval time between the two operation actions if the types of the two adjacent operation actions are different, and the second interval time is greater than the first interval time; a sequence acquisition unit, which is used to use the operation sorting information of the inserted interval time as the simulation operation sequence.
[0057] The simulation operation instruction sending unit 120 is used to generate corresponding simulation operation instructions according to the simulation operation sequence and send them to the vehicle terminal, so that the vehicle terminal performs simulation operation according to the simulation operation instructions.
[0058] The signal sorting information acquisition unit 130 is used to sort the feedback signal output by the vehicle terminal according to the simulation operation sequence to obtain corresponding signal sorting information.
[0059] The test result acquisition unit 140 is used to perform consistency verification on the signal sorting information according to the script to be tested to obtain a corresponding test result.
[0060] The functional testing device provided in the embodiment of the present invention applies the above-mentioned functional testing method, receives the input script to be tested and generates a corresponding simulation operation sequence according to the operation analysis strategy, generates a corresponding simulation operation instruction according to the simulation operation sequence and sends it to the vehicle terminal, obtains the feedback signal output by the vehicle terminal and organizes it according to the simulation test sequence to obtain signal organization information, and performs consistency check on the signal organization information according to the script to be tested to obtain the test result. The above-mentioned method can generate a corresponding simulation operation sequence through the script to be tested and perform a simulation operation on the vehicle terminal, obtain the feedback signal and organize the signal organization information to obtain consistency check, so as to obtain the test result, realize batch testing of various functions in the vehicle terminal, and obtain accurate testing by organizing the feedback signal and consistency check, which greatly improves the efficiency of functional testing of the vehicle terminal.
[0061] The above functional testing device can be implemented in the form of a computer program. The computer program can be Figure 4 Runs on the computer device shown.
[0062] See also Figure 4 , Figure 4is a schematic block diagram of a computer device provided by an embodiment of the present invention. The computer device may be a test terminal for executing a function test method to test various functions in a vehicle terminal.
[0063] See also Figure 4 The computer device 500 includes a processor 502 , a memory and a communication interface 505 connected via a communication bus 501 , wherein the memory may include a storage medium 503 and an internal memory 504 .
[0064] The storage medium 503 may store an operating system 5031 and a computer program 5032. When the computer program 5032 is executed, the processor 502 may execute a functional testing method, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
[0065] The processor 502 is used to provide computing and control capabilities to support the operation of the entire computer device 500 .
[0066] The internal memory 504 provides an environment for the operation of the computer program 5032 in the storage medium 503. When the computer program 5032 is executed by the processor 502, the processor 502 can execute the functional testing method.
[0067] The communication interface 505 is used for network communication, such as providing data information transmission, etc. Those skilled in the art will appreciate that Figure 4 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present invention, and does not constitute a limitation on the computer device 500 to which the solution of the present invention is applied. The specific computer device 500 may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0068] The processor 502 is used to run the computer program 5032 stored in the memory to implement the corresponding functions in the above-mentioned functional testing method.
[0069] Those skilled in the art will understand that Figure 4 The embodiments of the computer device shown in the figure do not constitute a limitation on the specific composition of the computer device. In other embodiments, the computer device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently. For example, in some embodiments, the computer device may only include a memory and a processor. In such embodiments, the structure and function of the memory and the processor are the same as those of the embodiment of the present invention. Figure 4 The embodiments shown are consistent and will not be described again here.
[0070] It should be understood that in the embodiment of the present invention, the processor 502 may be a central processing unit (CPU), and the processor 502 may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. Among them, the general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc.
[0071] In another embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium may be a volatile or non-volatile computer-readable storage medium. The computer-readable storage medium stores a computer program, wherein when the computer program is executed by a processor, the steps included in the above-mentioned functional testing method are implemented.
[0072] Those skilled in the art can clearly understand that, for the convenience and simplicity of description, the specific working process of the above-described equipment, devices and units can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here. Those of ordinary skill in the art can appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, computer software or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to the function. Whether these functions are executed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present invention.
[0073] In the several embodiments provided by the present invention, it should be understood that the disclosed equipment, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation. Units with the same function may also be combined into one unit. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interfaces, devices or units, or may be an electrical, mechanical or other form of connection.
[0074] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiments of the present invention.
[0075] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0076] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a computer-readable storage medium, including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned computer-readable storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a magnetic disk or an optical disk.
[0077] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.
Claims
1. A functional testing method, characterized in that: The method is applied to a test terminal, the test terminal is communicatively connected with a vehicle terminal, and the method includes: If the input script to be tested is received, a simulation operation sequence corresponding to the script to be tested is generated according to a preset operation parsing strategy; Generate a corresponding simulation operation instruction according to the simulation operation sequence and send it to the vehicle terminal, so that the vehicle terminal performs a simulation operation according to the simulation operation instruction; Arrange the feedback signal output by the vehicle terminal according to the simulation operation sequence to obtain corresponding signal arrangement information; The signal sorting information is verified for consistency according to the script to be tested to obtain a corresponding test result.
2. The functional testing method according to claim 1, characterized in that: The step of generating a simulation operation sequence corresponding to the script to be tested according to a preset operation parsing strategy includes: Parsing each test item in the script to be tested according to the operation parsing strategy to obtain an operation action matching each test item; A corresponding simulation operation sequence is generated according to the operation actions of each of the test items.
3. The functional testing method according to claim 2, characterized in that: Generating a corresponding simulation operation sequence according to the operation actions of each test item includes: According to the order of each of the test items in the script to be tested, the operation actions of each of the test items are arranged in sequence to obtain corresponding operation order information; Determining whether types of two adjacent operation actions in the operation sequencing information are the same; If two adjacent operation actions are of the same type, a first interval time is inserted between the two operation actions; If the types of two adjacent operation actions are different, insert a second interval time between the two operation actions, and the second interval time is greater than the first interval time; The operation sequencing information of the inserted interval time is used as the simulation operation sequence.
4. The functional testing method according to claim 1, characterized in that: The step of arranging the feedback signal output by the vehicle terminal according to the simulation operation sequence to obtain corresponding signal arrangement information includes: Sorting and arranging the feedback signals according to the reception time of each feedback signal; According to the triggering time of each operation action in the simulated operation sequence and the receiving time of the feedback signal, the feedback signal and the operation action are associated and sorted to obtain corresponding signal sorting information.
5. The functional testing method according to claim 1, characterized in that: After the consistency verification of the signal arrangement information is performed according to the script to be tested and the corresponding test result is obtained, the method further includes: Generate a corresponding test log based on the test results and output it.
6. A functional testing device, characterized in that: The device is configured in a test terminal, the test terminal is communicatively connected with a vehicle terminal, the function test device is used to execute the function test method according to any one of claims 1 to 5, and the device comprises: A simulation operation sequence generating unit, configured to generate a simulation operation sequence corresponding to the script to be tested according to a preset operation parsing strategy upon receiving the input script to be tested; A simulation operation instruction sending unit, used for generating a corresponding simulation operation instruction according to the simulation operation sequence and sending it to the vehicle terminal, so that the vehicle terminal performs a simulation operation according to the simulation operation instruction; A signal sorting information acquisition unit, used to sort the feedback signal output by the vehicle terminal according to the simulation operation sequence to obtain corresponding signal sorting information; The test result acquisition unit is used to verify the consistency of the signal sorting information according to the script to be tested to obtain the corresponding test result.
7. The functional testing device according to claim 6, characterized in that: The simulation operation sequence generating unit comprises: An operation action acquisition unit, used to parse each test item in the script to be tested according to the operation parsing strategy to obtain an operation action matching each test item; The generating unit is used to generate a corresponding simulation operation sequence according to the operation actions of each test item.
8. The functional testing device according to claim 6, characterized in that: The generating unit comprises: An operation sequence information acquisition unit, used to sequentially arrange the operation actions of each test item according to the sequence of each test item in the script to be tested, and obtain corresponding operation sequence information; A judging unit, used to judge whether the types of two adjacent operation actions in the operation sequencing information are the same; A first interval time inserting unit, used for inserting a first interval time between two adjacent operation actions if the types of the two operation actions are the same; A second interval time inserting unit, used for inserting a second interval time between two adjacent operation actions if the types of the two operation actions are different, wherein the second interval time is greater than the first interval time; The sequence acquisition unit is used to use the operation sequencing information of the inserted interval time as the simulation operation sequence.
9. A computer device, characterized in that: The device includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory, used to store computer programs; A processor is used to implement the steps of the functional testing method described in any one of claims 1 to 5 when executing a program stored in a memory.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the functional testing method according to any one of claims 1 to 5 are implemented.