CN112925701A - Test case editing method, vehicle testing method and device - Google Patents

Test case editing method, vehicle testing method and device Download PDF

Info

Publication number
CN112925701A
CN112925701A CN201911240448.XA CN201911240448A CN112925701A CN 112925701 A CN112925701 A CN 112925701A CN 201911240448 A CN201911240448 A CN 201911240448A CN 112925701 A CN112925701 A CN 112925701A
Authority
CN
China
Prior art keywords
test
test case
editing
voice instruction
voice
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201911240448.XA
Other languages
Chinese (zh)
Other versions
CN112925701B (en
Inventor
何柳君
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing CHJ Automotive Information Technology Co Ltd
Original Assignee
Beijing CHJ Automotive Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing CHJ Automotive Information Technology Co Ltd filed Critical Beijing CHJ Automotive Information Technology Co Ltd
Priority to CN201911240448.XA priority Critical patent/CN112925701B/en
Publication of CN112925701A publication Critical patent/CN112925701A/en
Application granted granted Critical
Publication of CN112925701B publication Critical patent/CN112925701B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Abstract

The invention provides a test case editing method, a vehicle testing method and a device, wherein the method comprises the following steps: receiving each voice instruction for editing the test case; respectively identifying target operations corresponding to the voice instructions; the target operation comprises one of a file operation and an editing operation of test case parameters; sequentially executing target operation corresponding to each voice instruction to edit a test case, and recording the voice instruction corresponding to each test step in the test case; and editing the test case according to the voice instruction corresponding to each test step in the test case. The test case editing method provided by the invention can improve the efficiency and convenience of test case editing and is convenient for users to understand and manage the test cases.

Description

Test case editing method, vehicle testing method and device
Technical Field
The invention relates to the field of testing, in particular to a test case editing method, a vehicle testing method and a vehicle testing device.
Background
At present, in order to improve the quality, safety, and the like of electronic equipment, vehicles, and the like, it is generally necessary to perform a functional test on the electronic equipment, vehicles, and the like before the electronic equipment, vehicles, and the like are put into use. For example, before an actual vehicle test, the controller function test usually includes a Model in the Loop (MIL), a Software in the Loop (SIL), a Hardware in the Loop (HIL), and the like. However, whether the test is the MIL, SIL or HIL test, the core of the test is the writing of test cases, that is, according to the required test functions, reasonable test steps are designed to confirm whether some functions of the electronic device or the vehicle, etc., are operating normally. However, in the prior art, the test cases are usually manually edited (for example, written or modified) by human, which is not only inefficient, but also inconvenient to manage because the written test cases are poorly readable.
Disclosure of Invention
The embodiment of the invention provides a test case editing method, a vehicle testing method and a vehicle testing device, and aims to solve the problems that in the prior art, the test case editing efficiency is low and management is inconvenient.
In a first aspect, an embodiment of the present invention provides a test case editing method, where the method includes:
receiving each voice instruction for editing the test case;
respectively identifying target operations corresponding to the voice instructions; the target operation comprises one of a file operation and an editing operation of test case parameters;
sequentially executing target operation corresponding to each voice instruction to edit a test case, and recording the voice instruction corresponding to each test step in the test case;
and editing the test case according to the voice instruction corresponding to each test step in the test case.
Optionally, the editing the test case according to the voice instruction corresponding to each testing step in the test case includes:
under the condition that a modification instruction aiming at a first voice instruction is detected, receiving a second voice instruction input by a user, and replacing the first voice instruction by the second voice instruction;
modifying the test step corresponding to the first voice instruction in the test case according to the second voice instruction;
wherein the first voice instruction is any recorded voice instruction.
Optionally, the editing the test case according to the voice instruction corresponding to each testing step in the test case includes:
under the condition that a modification instruction aiming at a first test step in the test case is detected, playing a voice instruction corresponding to the first test step;
receiving a modification parameter aiming at the first test step, and modifying the first test step according to the modification parameter;
the first testing step is any testing step in the test case.
Optionally, the method further includes:
displaying a test case editing interface, wherein the generated test steps are displayed in the test case editing interface;
and if a test step editing instruction is received in the test case editing interface, editing the test step according to the test step editing instruction.
Optionally, the test-related parameters include at least one of: test operation type, test elements, expected test results, and use case templates.
Optionally, after the target operations corresponding to the voice instructions are sequentially executed to edit the test case, the method further includes:
setting the test case as a target case template;
and establishing a corresponding relation between the target use case template and the voice instruction.
Optionally, the respectively identifying the target operation corresponding to each voice instruction may include:
respectively identifying target operations corresponding to the voice instructions according to a preset voice identification library;
the voice recognition library comprises a corresponding relation between a voice command and file operation and a corresponding relation between the voice command and editing operation of test case parameters.
In a second aspect, an embodiment of the present invention provides a vehicle testing method, including:
testing the vehicle by using the test case obtained by the test case editing method;
and playing the voice instruction corresponding to each testing step in the process of executing each testing step in the test case.
In a third aspect, an embodiment of the present invention further provides a test case editing apparatus, where the apparatus includes:
the receiving module is used for receiving each voice instruction for editing the test case;
the recognition module is used for respectively recognizing the target operation corresponding to each voice instruction; wherein the target operation comprises one of a file operation and an editing operation of testing related parameters;
the execution module is used for sequentially executing the target operation corresponding to each voice instruction to edit the test case and recording the voice instruction corresponding to each test step in the test case;
and the editing module is used for editing the test case according to the voice instruction corresponding to each test step in the test case.
Optionally, the editing module is specifically configured to:
under the condition that a modification instruction aiming at a first voice instruction is detected, receiving a second voice instruction input by a user, and replacing the first voice instruction by the second voice instruction;
modifying the test step corresponding to the first voice instruction in the test case according to the second voice instruction;
wherein the first voice instruction is any recorded voice instruction.
Optionally, the editing module is specifically configured to:
under the condition that a modification instruction aiming at a first test step in the test case is detected, playing a voice instruction corresponding to the first test step;
receiving a modification parameter aiming at the first test step, and modifying the first test step according to the modification parameter;
the first testing step is any testing step in the test case.
Optionally, the apparatus further comprises:
the display module is used for displaying the editing interface of the test case after receiving each voice instruction for editing the test case;
and the editing module is used for editing the test steps according to the test step editing instruction if the test step editing instruction is received in the test case editing interface.
Optionally, the test case parameters include at least one of the following: the method comprises the following steps of (1) testing operation types of vehicles, vehicle testing elements, expected vehicle testing results and case templates;
the case template comprises a pre-stored test case for a preset vehicle function test.
Optionally, the apparatus further comprises:
the setting module is used for setting the test cases as target case templates after the target operations corresponding to the voice instructions are sequentially executed to edit the test cases;
and the establishing module is used for establishing the corresponding relation between the target use case template and the voice instruction.
Optionally, the identification module is specifically configured to:
respectively identifying target operations corresponding to the voice instructions according to a preset voice identification library;
the voice recognition library comprises a corresponding relation between a voice command and file operation and a corresponding relation between the voice command and editing operation of test case parameters.
In a fourth aspect, an embodiment of the present invention further provides a vehicle testing apparatus, where the apparatus includes:
the test module is used for testing the vehicle by using the test case obtained by the test case editing method;
and playing the voice instruction corresponding to each testing step in the process of executing each testing step in the test case.
In a fifth aspect, an embodiment of the present invention further provides a test case editing apparatus, including a processor, a memory, and a computer program stored on the memory and capable of running on the processor, where the computer program, when executed by the processor, implements the steps of the test case editing method.
In a sixth aspect, an embodiment of the present invention further provides a vehicle testing apparatus, which includes a processor, a memory, and a computer program stored on the memory and operable on the processor, and when executed by the processor, the computer program implements the steps of the vehicle testing method described above.
In a seventh aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the test case editing method described above are implemented, or the steps of the vehicle testing method described above are implemented.
In the embodiment of the invention, each voice instruction for editing the test case is received; respectively identifying target operations corresponding to the voice instructions; the target operation comprises one of a file operation and an editing operation of test case parameters; sequentially executing target operation corresponding to each voice instruction to edit a test case, and recording the voice instruction corresponding to each test step in the test case; and editing the test case according to the voice instruction corresponding to each test step in the test case. In addition, the test case is edited according to the voice instructions corresponding to the test steps in the test case, so that the test case is conveniently edited, and the user can conveniently understand and maintain the test case.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a flowchart of a test case editing method provided by an embodiment of the present invention;
FIG. 2 is a flow chart of a vehicle testing method provided by an embodiment of the invention;
FIG. 3a is a diagram of a voice command provided by an embodiment of the present invention;
FIG. 3b is a schematic diagram illustrating a target operation corresponding to each voice command being recognized and executed according to an embodiment of the present invention;
fig. 4 is a structural diagram of a test case editing apparatus according to an embodiment of the present invention;
FIG. 5 is a block diagram of a vehicle testing apparatus according to an embodiment of the present invention;
fig. 6 is a block diagram of a test case editing apparatus according to still another embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a test case editing method which can be applied to electronic equipment such as a server and terminal equipment, wherein the terminal equipment can comprise a computer, a mobile terminal and the like. Referring to fig. 1, fig. 1 is a flowchart of a test case editing method provided by an embodiment of the present invention, and as shown in fig. 1, the method includes the following steps:
step 101, receiving each voice instruction for editing the test case.
In this embodiment, the test case editing may include operations such as test case modification or test case generation.
The test case may be a test case for an automobile functional test, for example, a test case for at least one of the functions of powering on the whole automobile at a high voltage, starting an air conditioner to automatically cool, starting slow charging, and the like; alternatively, the test case may be a test case used for a functional test of a server, a terminal device, or the like. The voice instruction may be any voice instruction for test case editing, which is acquired by a voice acquisition module of the electronic device.
Step 102, respectively identifying target operations corresponding to the voice instructions; the target operation comprises one of a file operation and an editing operation of the test case parameters.
In this embodiment, the file operation may include, but is not limited to, at least one of the following: opening the test case, creating the test case, changing the test case, deleting the test case, creating the test step, changing the test step, deleting the test step, saving the test step and returning to the previous layer of operation. The editing operation of the test-related parameters is used for editing the test-related parameters. For example, if the voice command is to press the brake pedal lightly, the following contents are edited: set BrkPadel 1; if the voice command is gear switching D, editing the following contents: set GearPosn ═ 3.
The test case parameters may include at least one of a test operation type, a test element, an expected test result, a case template, and the like. The test operation type can be used for indicating the test operation needing to be executed; the test element may be used to indicate a parameter to be tested; the expected test result can be used for indicating the expected output test result; the use case template may refer to a test case in which functions (e.g., common functions) of some electronic devices, vehicles, or the like are stored as a template.
The test case parameters may be test case parameters for vehicle testing, or may be test case parameters for testing a server, a terminal device, or the like. Optionally, in a case that the test case parameters are test case parameters for vehicle testing, the test case parameters may include at least one of the following: the method comprises the following steps of (1) testing operation types of vehicles, vehicle testing elements, expected vehicle testing results and case templates; the case template comprises a pre-stored test case for a preset vehicle function test.
In this embodiment, the vehicle test operation type may be used to indicate a vehicle test operation that needs to be performed; the vehicle test element may be used to indicate a vehicle parameter being tested; the expected vehicle test result may be used to indicate an expected vehicle test result; the use case template may be a template storing test cases of some vehicle functions (e.g., common functions), and the predefined voice instruction may directly invoke the use case template, so as to simplify the generation process of the test cases, where the preset vehicle functions may include, but are not limited to, at least one of the following: the whole vehicle is electrified at high voltage, the pure electric mode is entered, the slow charging is started, and the air conditioner is started for automatic refrigeration.
For example, taking an automobile functional test as an example, the above-mentioned vehicle test operation types may include, but are not limited to, at least one of the following: light stepping, heavy stepping, increase, decrease, multiplication, division, waiting and change. The vehicle test elements may include, but are not limited to, at least one of: motor speed, accelerator pedal, brake pedal, steering wheel angle, battery power, ambient temperature, slope. The vehicle expected test results may include, but are not limited to, at least one of: the desired output signal is a target value, the desired output signal increases, the desired output signal decreases, and the desired output signal does not change. The use case template may include, but is not limited to: and the whole vehicle high-voltage power-on case template and the whole vehicle high-voltage power-off case template enter the pure electric mode case template, the case template starts to be charged slowly, and the air conditioner automatic refrigeration case template is started.
In this step, speech recognition may be performed on each speech instruction, so as to obtain a target operation corresponding to each speech instruction. For example, each voice instruction may be converted into a text, and a target operation corresponding to each voice instruction may be recognized based on the converted text and a preset voice recognition library.
In practical applications, the received voice commands input by the user may often include voice commands not used for test case editing. Optionally, before step 102, the embodiment may identify each voice instruction input by the user, so as to filter out voice instructions that are not used for test case editing in the voice instructions input by the user. For example, whether the voice command includes a preset keyword (e.g., test, expectation, rotation speed, accelerator pedal, increase, decrease, etc.) may be recognized, and if so, the voice command is determined to be a voice command for test case editing, otherwise, the voice command is not a voice command for test case editing. Accordingly, in step 102, only the voice command determined to be used for test case editing in the voice commands input by the user may be identified with its corresponding target operation.
And 103, sequentially executing target operations corresponding to the voice instructions to edit the test cases, and recording the voice instructions corresponding to the test steps in the test cases.
In this embodiment, the test case may be stored in a form of a table (e.g., Excel) or a file such as a web page.
In this step, the target operation corresponding to the voice instruction may be recognized and executed each time a voice instruction is received. For example, in the case of receiving the voice command a1 (such as entering a torque case), a target operation corresponding to the voice command a1 may be recognized and executed (such as executing an operation of opening the torque case); under the condition that the voice instruction a2 (such as the test case with the opening number 5) is received, the target operation corresponding to the voice instruction a2 is identified and executed (such as the operation of opening the test case with the opening number 5); the target operation corresponding to the voice command a3 can be identified and executed (such as editing the following contents: Step 6: set GearPosn is 3; Desire: GearOut is 3) under the condition that the voice command a3 is received (such as newly building a test Step, shifting a gear to a D gear, and expecting the gear to be the D gear); and so on. According to the embodiment, the target operation corresponding to each voice instruction is executed in sequence to generate or modify the test case, so that the efficiency and convenience of editing the test case can be improved, and the difficulty of editing the test case can be reduced.
In addition, the generated test case generally includes a plurality of test steps, and this embodiment may record a voice instruction corresponding to each test Step in the test case, for example, for the test Step6, the recorded voice instruction corresponding to the test Step may be: the gear shifts D gear, and the desired gear is D gear. In practical application, habits of different users for editing test cases and the like are often inconsistent, for example, names of test elements are inconsistent, formats are inconsistent, and the like. Therefore, by recording the voice instruction corresponding to each test step, the user can conveniently understand the meaning of each test step through the voice instruction corresponding to each test step, and the user can conveniently edit, for example, modify the test case.
It should be noted that, in this embodiment, the generated test case may also be modified through the voice instruction, that is, the voice instruction input by the user is received, and the target operation corresponding to the voice instruction is executed to modify the test case.
And 104, editing the test case according to the voice instruction corresponding to each test step in the test case.
In practical situations, readability of each testing step of the test case is often poor, and it is inconvenient for a user to understand and modify the test case. In this embodiment, the test case may be edited according to the voice instruction corresponding to each test step in the test case, for example, the test step corresponding to the test case may be modified directly based on the voice instruction, or the user may understand the meaning of the test step by playing the voice instruction, so as to edit the test case.
In addition, by recording the voice instructions corresponding to each test step in the generated test case and editing the test case according to the voice instructions corresponding to each test step in the test case, the test case is conveniently edited and the user can conveniently understand and maintain the test case.
Optionally, the editing the test case according to the voice instruction corresponding to each testing step in the test case may include:
under the condition that a modification instruction aiming at a first voice instruction is detected, receiving a second voice instruction input by a user, and replacing the first voice instruction by the second voice instruction;
modifying the test step corresponding to the first voice instruction in the test case according to the second voice instruction;
wherein the first voice instruction is any recorded voice instruction.
According to the embodiment, the test case can be modified through the voice instruction, and convenience and flexibility of modification of the test case can be improved. Specifically, for a test case in the generation process (for example, a test case of a generated part of test steps) or for a generated test case, a user may re-enter a voice instruction corresponding to a certain test step in the test case, and further modify the test step according to the modified voice instruction. For example, the voice recognition module may be started under the condition that the user touches the recorded first voice instruction, so as to receive a new voice instruction input by the user, that is, a second voice instruction, and replace the first voice instruction and modify the test step corresponding to the first voice instruction based on the received new voice instruction.
Optionally, the editing the test case according to the voice instruction corresponding to each testing step in the test case may include:
under the condition that a modification instruction aiming at a first test step in the test case is detected, playing a voice instruction corresponding to the first test step;
receiving a modification parameter aiming at the first test step, and modifying the first test step according to the modification parameter;
the first testing step is any testing step in the test case.
In practical situations, readability of each testing step of the test case is often poor, and understanding by a user is inconvenient. In this embodiment, the voice instruction corresponding to the first testing step may be played when a modification instruction for the first testing step in the test case is detected, so that a user can conveniently understand the meaning of the first testing step, and then the first testing step may be modified more accurately.
Optionally, after the step of modifying the first test according to the modification parameter, the method may further include: and modifying the voice instruction corresponding to the first testing step according to the modified first testing step.
After a certain test step in the test case is modified, the corresponding voice instruction is modified according to the modified test step, so that the consistency between the test step and the voice instruction can be ensured.
Optionally, the method may further include:
displaying a test case editing interface, wherein the generated test steps are displayed in the test case editing interface;
and if a test step editing instruction is received in the test case editing interface, editing the test step according to the test step editing instruction.
In the embodiment, the test case editing interface can be displayed in the test case generating process, the generated test steps are displayed in the test case editing interface, and a user can conveniently check the generated test steps in real time. The test case editing interface may be in the form of a table, a web page, or the like, and a user may operate the test case editing interface in a touch screen, a mouse, a voice, or the like, so as to edit the test steps, for example, modify the test steps, add the test steps, delete the test steps, or the like.
In practical application, a user can display a test case editing interface in the process of generating the test case through the voice command, so that the user can edit the test case through manual operation, and the convenience of editing the test case is improved.
Optionally, after generating the test case according to the target operation corresponding to each voice instruction, the method may further include:
setting the test case as a target case template;
and establishing a corresponding relation between the target use case template and the voice instruction.
In this embodiment, after the test case is generated, the test case may be stored as a case template, so that the case template may be directly invoked during a subsequent process of generating a test case related to a functional test corresponding to the case template, thereby improving the test case generation efficiency.
In this embodiment, by establishing the corresponding relationship between the target use case template and the voice instruction, the use case template can be called through the voice instruction corresponding to the target use case template.
Optionally, the respectively identifying the target operation corresponding to each voice instruction may include:
respectively identifying target operations corresponding to the voice instructions according to a preset voice identification library;
the voice recognition library comprises a corresponding relation between a voice command and file operation and a corresponding relation between the voice command and editing operation of test case parameters.
The embodiment can predefine the speech recognition library for test case editing (for example, generation, modification, and the like), so that the target operation corresponding to each speech instruction can be quickly recognized based on the speech recognition library. Specifically, the speech recognition library includes a correspondence between a speech command and a file operation and a correspondence between a speech command and an editing operation of a test case parameter. In practice, the speech recognition library may include, but is not limited to, the following categories:
firstly, file operation voice library: and the voice instruction is used for identifying common file operation.
For example, open number x1 test case, create new number x2 test case, change number x3 test case, delete number x4 test case, save number x5 test case, create new test step x6, change test step x7, delete test step x8, save test step x9, return to previous operation, and so on.
II, testing an element voice library: for correlating the test signal (i.e. the test element) with the corresponding voice instruction.
For example, the motor speed y1, the corresponding speech is described as the motor speed signal y 1;
an accelerator pedal y2 with a corresponding accelerator pedal signal of y 2;
a brake pedal y3 with a brake pedal signal of y 3;
the steering wheel rotating angle y4 is y4 corresponding to the steering wheel rotating piece signal;
the battery power y5 corresponds to a battery SOC signal of y 5;
an ambient temperature y6, corresponding to a test ambient temperature y 6;
the gradient y7 corresponds to the test environment gradient y 7; and so on.
Thirdly, testing an operation voice library: for associating the test operation with the corresponding voice instruction.
For example, stepping on z1 lightly, corresponds to a change in speed of the pedal z 1;
stepping on z2 again, corresponding to the speed change of the pedal z 2;
a1 increases z3, corresponding to a1 increase z 3;
a2 decreases z4, corresponding to a2 decrease z 4;
a3 times z5, corresponding to signal A3 times z 5;
a4 divided by z6, corresponding to signal A4 divided by z 6;
wait z7, wait z7 corresponding to test duration;
a5 changes to z8, corresponding to a5 change to z 8; and so on.
Fourthly, testing an expected result voice library: for correlating the expected test results with the corresponding voice instructions.
For example, s1 is expected to be q1, and the test result corresponding to the expected s1 output signal is q 1;
the expected s2 increases, increasing the test result corresponding to the expected s2 output signal output;
the expected s3 decreases, decreasing the test result corresponding to the expected s3 output signal output;
expecting s4 to be unchanged, and corresponding to expecting s4 to output the test result of signal output to be unchanged; and so on.
The embodiment of the invention also provides a vehicle testing method. Referring to fig. 2, fig. 2 is a flowchart of a vehicle testing method according to an embodiment of the present invention, as shown in fig. 2, including the following steps:
step 201, testing a vehicle by using a test case obtained based on the test case editing method;
and playing the voice instruction corresponding to each testing step in the process of executing each testing step in the test case.
In this embodiment, the test case may be obtained based on the test case editing method provided in any one of the embodiments, where the relevant content of the test case editing method may refer to the foregoing discussion, and details are not described herein.
In this embodiment, because the voice instruction corresponding to each test step of the test case is recorded, the voice instruction corresponding to each test step can be played in a voice manner in the process of executing each test step of the test case, so that a user can conveniently know the vehicle test execution process in real time.
The vehicle test method and the test case editing method may be executed by the same electronic device, or may be executed by different electronic devices.
The following describes a test case editing method provided by the embodiment of the present invention with reference to an example:
referring to fig. 3a and 3b, fig. 3a illustrates a received voice command, and fig. 3b illustrates a result of recognizing a target operation corresponding to each voice command and executing the target operation.
Specifically, the torque case library can be opened under the condition that a voice command of entering the torque case library is received; under the condition of receiving a voice instruction of opening the test case with the number 5, opening the test case with the number 5; in case of receiving a voice instruction of "enter test step 5", switching to test step5 may be performed; under the condition of receiving a voice command of 'high-voltage power-on', a high-voltage power-on case template can be called; upon receipt of "modify this test step: in the case of a voice command of a light brake pedal, a voice command of "Step 5: set Brkpedal ═ 1 "; after receiving the' new test step: shift stage shift D, it is desirable that: in the case of a voice command for the D range, the "Step 6: set geoarposn ═ 3, Desire: gearout is 3 "; after receiving the' new test step: slowly releasing the brake pedal, expecting: when the vehicle enters into the snail movement, the speed of the vehicle slowly rises, and the speed of the vehicle does not exceed the voice command of the snail movement highest speed XX +5 km/h', the recording of the Step 7: set Brkpedal ═ 1, Desire: VehSpeed Increase, Desire: VehSpeed < xx +5 "; after receiving the' new test step: re-stepping the accelerator pedal to full-on desired: in the case of a voice command that the vehicle speed rises and does not exceed the maximum vehicle speed XX +5km/h ", a" Step 8: set Accpedal ═ 100%, Desire: VehSpeed Increase, Desire: VehSpeed < xx +5 "; under the condition that a voice instruction of 'saving the Test case' is received, the Test case can be guaranteed to be under a YY target, and the file name is torque Test _ Test 5. xlxs; under the condition that a voice instruction of 'automatically testing the test case with the number 5' is received, the test case with the number 5 can be automatically tested, and a test report can be automatically generated.
Referring to fig. 4, fig. 4 is a structural diagram of a test case editing apparatus according to an embodiment of the present invention. As shown in fig. 4, the test case editing apparatus 400 includes:
a receiving module 401, configured to receive each voice instruction for test case editing;
an identifying module 402, configured to identify a target operation corresponding to each voice instruction respectively; wherein the target operation comprises one of a file operation and an editing operation of testing related parameters;
an executing module 403, configured to sequentially execute target operations corresponding to the voice instructions to edit a test case, and record the voice instructions corresponding to each test step in the test case;
and the editing module 404 is configured to edit the test case according to the voice instruction corresponding to each test step in the test case.
Optionally, the editing module is specifically configured to:
under the condition that a modification instruction aiming at a first voice instruction is detected, receiving a second voice instruction input by a user, and replacing the first voice instruction by the second voice instruction;
modifying the test step corresponding to the first voice instruction in the test case according to the second voice instruction;
wherein the first voice instruction is any recorded voice instruction.
Optionally, the editing module is specifically configured to:
under the condition that a modification instruction aiming at a first test step in the test case is detected, playing a voice instruction corresponding to the first test step;
receiving a modification parameter aiming at the first test step, and modifying the first test step according to the modification parameter;
the first testing step is any testing step in the test case.
Optionally, the apparatus further comprises:
the display module is used for displaying the editing interface of the test case after receiving each voice instruction for editing the test case;
and the editing module is used for editing the test steps according to the test step editing instruction if the test step editing instruction is received in the test case editing interface.
Optionally, the test case parameters include at least one of the following: the method comprises the following steps of (1) testing operation types of vehicles, vehicle testing elements, expected vehicle testing results and case templates;
the case template comprises a pre-stored test case for a preset vehicle function test.
Optionally, the apparatus further comprises:
the setting module is used for setting the test cases as target case templates after the target operations corresponding to the voice instructions are sequentially executed to edit the test cases;
and the establishing module is used for establishing the corresponding relation between the target use case template and the voice instruction.
Optionally, the identification module is specifically configured to:
respectively identifying target operations corresponding to the voice instructions according to a preset voice identification library;
the voice recognition library comprises a corresponding relation between a voice command and file operation and a corresponding relation between the voice command and editing operation of test case parameters.
The test case editing apparatus 400 can implement each process of the above test case editing method embodiment, and achieve the same effect to avoid repetition, which is not described herein again.
In the test case editing apparatus 400 according to the embodiment of the present invention, the receiving module 401 is configured to receive each voice instruction for editing a test case; an identifying module 402, configured to identify a target operation corresponding to each voice instruction respectively; wherein the target operation comprises one of a file operation and an editing operation of testing related parameters; an executing module 403, configured to sequentially execute target operations corresponding to the voice instructions to edit a test case, and record the voice instructions corresponding to each test step in the test case; and the editing module 404 is configured to edit the test case according to the voice instruction corresponding to each test step in the test case. In addition, the test case is edited according to the voice instructions corresponding to the test steps in the test case, so that the test case is conveniently edited, and the user can conveniently understand and maintain the test case.
Referring to fig. 5, fig. 5 is a structural diagram of a vehicle testing apparatus according to an embodiment of the present invention. As shown in fig. 5, the vehicle testing apparatus 500 includes:
the test module 501 is configured to test a vehicle by using a test case obtained by the test case editing method;
and playing the voice instruction corresponding to each testing step in the process of executing each testing step in the test case.
The embodiment of the present invention further provides a test case editing apparatus, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, where the computer program, when executed by the processor, implements each process of the test case editing method according to any of the above method embodiments, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a vehicle testing apparatus, which includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, the computer program implements each process of the vehicle testing method according to any of the above method embodiments, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the test case editing method or implements each process of the vehicle testing method according to any one of the above method embodiments, and can achieve the same technical effect, and in order to avoid repetition, the detailed description is omitted here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
Referring to fig. 6, fig. 6 is a structural diagram of a test case editing apparatus according to still another embodiment of the present invention, and as shown in fig. 6, the test case editing apparatus 600 includes: a processor 601, a memory 602, and a computer program stored on the memory 602 and executable on the processor, wherein the various components in the test case editing apparatus 600 are coupled together through a bus interface 603, and the computer program implements the following steps when executed by the processor 601:
receiving each voice instruction for editing the test case;
respectively identifying target operations corresponding to the voice instructions; the target operation comprises one of a file operation and an editing operation of test case parameters;
sequentially executing target operation corresponding to each voice instruction to edit a test case, and recording the voice instruction corresponding to each test step in the test case;
and editing the test case according to the voice instruction corresponding to each test step in the test case.
Optionally, the computer program, when executed by the processor 601, is further configured to:
under the condition that a modification instruction aiming at a first voice instruction is detected, receiving a second voice instruction input by a user, and replacing the first voice instruction by the second voice instruction;
modifying the test step corresponding to the first voice instruction in the test case according to the second voice instruction;
wherein the first voice instruction is any recorded voice instruction.
Optionally, the computer program, when executed by the processor 601, is further configured to:
under the condition that a modification instruction aiming at a first test step in the test case is detected, playing a voice instruction corresponding to the first test step;
receiving a modification parameter aiming at the first test step, and modifying the first test step according to the modification parameter;
the first testing step is any testing step in the test case.
Optionally, the computer program, when executed by the processor 601, is further configured to:
displaying a test case editing interface, wherein the generated test steps are displayed in the test case editing interface;
and if a test step editing instruction is received in the test case editing interface, editing the test step according to the test step editing instruction.
Optionally, the test-related parameters include at least one of: test operation type, test elements, expected test results, and use case templates.
Optionally, the computer program, when executed by the processor 601, is further configured to:
after the target operation corresponding to each voice instruction is sequentially executed to edit the test case, setting the test case as a target case template;
and establishing a corresponding relation between the target use case template and the voice instruction.
Optionally, the computer program, when executed by the processor 601, is further configured to:
respectively identifying target operations corresponding to the voice instructions according to a preset voice identification library;
the voice recognition library comprises a corresponding relation between a voice command and file operation and a corresponding relation between the voice command and editing operation of test case parameters.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: various media capable of storing program codes, such as a U disk, a removable hard disk, a ROM, a RAM, a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (15)

1. A test case editing method is characterized by comprising the following steps:
receiving each voice instruction for editing the test case;
respectively identifying target operations corresponding to the voice instructions; the target operation comprises one of a file operation and an editing operation of test case parameters;
sequentially executing target operation corresponding to each voice instruction to edit a test case, and recording the voice instruction corresponding to each test step in the test case;
and editing the test case according to the voice instruction corresponding to each test step in the test case.
2. The method according to claim 1, wherein the editing the test case according to the voice instruction corresponding to each test step in the test case comprises:
under the condition that a modification instruction aiming at a first voice instruction is detected, receiving a second voice instruction input by a user, and replacing the first voice instruction by the second voice instruction;
modifying the test step corresponding to the first voice instruction in the test case according to the second voice instruction;
wherein the first voice instruction is any recorded voice instruction.
3. The method according to claim 1, wherein the editing the test case according to the voice instruction corresponding to each test step in the test case comprises:
under the condition that a modification instruction aiming at a first test step in the test case is detected, playing a voice instruction corresponding to the first test step;
receiving a modification parameter aiming at the first test step, and modifying the first test step according to the modification parameter;
the first testing step is any testing step in the test case.
4. The method of claim 1, further comprising:
displaying a test case editing interface, wherein the generated test steps are displayed in the test case editing interface;
and if a test step editing instruction is received in the test case editing interface, editing the test step according to the test step editing instruction.
5. The method of claim 1, wherein the test case parameters comprise at least one of: the method comprises the following steps of (1) testing operation types of vehicles, vehicle testing elements, expected vehicle testing results and case templates;
the case template comprises a pre-stored test case for a preset vehicle function test.
6. The method according to claim 5, wherein after the target operations corresponding to the respective voice commands are sequentially executed to edit the test cases, the method further comprises:
setting the test case as a target case template;
and establishing a corresponding relation between the target use case template and the voice instruction.
7. The method of claim 5, wherein the respectively identifying the target operation corresponding to the respective voice command comprises:
respectively identifying target operations corresponding to the voice instructions according to a preset voice identification library;
the voice recognition library comprises a corresponding relation between a voice command and file operation and a corresponding relation between the voice command and editing operation of test case parameters.
8. A vehicle testing method, comprising:
testing a vehicle by using a test case obtained by the test case editing method according to any one of claims 1 to 7;
and playing the voice instruction corresponding to each testing step in the process of executing each testing step in the test case.
9. A test case editing apparatus, comprising:
the receiving module is used for receiving each voice instruction for editing the test case;
the recognition module is used for respectively recognizing the target operation corresponding to each voice instruction; wherein the target operation comprises one of a file operation and an editing operation of testing related parameters;
the execution module is used for sequentially executing the target operation corresponding to each voice instruction to edit the test case and recording the voice instruction corresponding to each test step in the test case;
and the editing module is used for editing the test case according to the voice instruction corresponding to each test step in the test case.
10. The apparatus of claim 9, wherein the editing module is specifically configured to:
under the condition that a modification instruction aiming at a first voice instruction is detected, receiving a second voice instruction input by a user, and replacing the first voice instruction by the second voice instruction;
modifying the test step corresponding to the first voice instruction in the test case according to the second voice instruction;
wherein the first voice instruction is any recorded voice instruction.
11. The apparatus of claim 9, wherein the editing module is specifically configured to:
under the condition that a modification instruction aiming at a first test step in the test case is detected, playing a voice instruction corresponding to the first test step;
receiving a modification parameter aiming at the first test step, and modifying the first test step according to the modification parameter;
the first testing step is any testing step in the test case.
12. A vehicle testing apparatus, comprising:
the test module is used for testing the vehicle by using the test case obtained by the test case editing method according to any one of claims 1 to 7;
and playing the voice instruction corresponding to each testing step in the process of executing each testing step in the test case.
13. A test case editing apparatus comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the test case editing method according to any one of claims 1 to 7.
14. A vehicle testing apparatus comprising a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program when executed by the processor implementing the steps of the vehicle testing method of claim 8.
15. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the test case editing method according to any one of claims 1 to 7 or the steps of the vehicle testing method according to claim 8.
CN201911240448.XA 2019-12-06 2019-12-06 Test case editing method, vehicle testing method and device Active CN112925701B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911240448.XA CN112925701B (en) 2019-12-06 2019-12-06 Test case editing method, vehicle testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911240448.XA CN112925701B (en) 2019-12-06 2019-12-06 Test case editing method, vehicle testing method and device

Publications (2)

Publication Number Publication Date
CN112925701A true CN112925701A (en) 2021-06-08
CN112925701B CN112925701B (en) 2024-04-19

Family

ID=76161421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911240448.XA Active CN112925701B (en) 2019-12-06 2019-12-06 Test case editing method, vehicle testing method and device

Country Status (1)

Country Link
CN (1) CN112925701B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114486284A (en) * 2022-01-05 2022-05-13 东风柳州汽车有限公司 Vehicle testing method, device, equipment and storage medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050249197A1 (en) * 2001-01-19 2005-11-10 Zheng Fang Voice aided diagnostic for voice over internet protocol (VOIP) based device
CN106874185A (en) * 2016-12-27 2017-06-20 中车株洲电力机车研究所有限公司 A kind of automated testing method driven based on voiced keyword and system
CN108399131A (en) * 2018-03-13 2018-08-14 百度在线网络技术(北京)有限公司 Automatic test cases generation method and device
CN108763068A (en) * 2018-05-15 2018-11-06 福建天泉教育科技有限公司 A kind of automated testing method and terminal based on machine learning
CN110399294A (en) * 2019-06-26 2019-11-01 平安科技(深圳)有限公司 Method for generating test case, device, computer equipment and storage medium
CN110444227A (en) * 2019-08-30 2019-11-12 惠州市德赛西威汽车电子股份有限公司 A kind of voice automated testing method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050249197A1 (en) * 2001-01-19 2005-11-10 Zheng Fang Voice aided diagnostic for voice over internet protocol (VOIP) based device
CN106874185A (en) * 2016-12-27 2017-06-20 中车株洲电力机车研究所有限公司 A kind of automated testing method driven based on voiced keyword and system
CN108399131A (en) * 2018-03-13 2018-08-14 百度在线网络技术(北京)有限公司 Automatic test cases generation method and device
CN108763068A (en) * 2018-05-15 2018-11-06 福建天泉教育科技有限公司 A kind of automated testing method and terminal based on machine learning
CN110399294A (en) * 2019-06-26 2019-11-01 平安科技(深圳)有限公司 Method for generating test case, device, computer equipment and storage medium
CN110444227A (en) * 2019-08-30 2019-11-12 惠州市德赛西威汽车电子股份有限公司 A kind of voice automated testing method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
董昕 等: ""一种自动生成软件测试用例的新方法"", 《计算机应用与软件》, pages 46 - 50 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114486284A (en) * 2022-01-05 2022-05-13 东风柳州汽车有限公司 Vehicle testing method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112925701B (en) 2024-04-19

Similar Documents

Publication Publication Date Title
CN109213132B (en) Method, device and equipment for generating UDS (Universal description System) diagnosis interface software
CN110851221B (en) Smart home scene configuration method and device
CN112286485B (en) Method and device for controlling application through voice, electronic equipment and storage medium
CN111488088A (en) Equipment state identification method and device and intelligent terminal
EP3159895A1 (en) Method and apparatus for editing audio files
CN112925701A (en) Test case editing method, vehicle testing method and device
CN113961419B (en) Memory verification method and device, electronic equipment and storage medium
CN110322587B (en) Evaluation recording method, device and equipment in driving process and storage medium
CN110543113A (en) robot hardware assembling and managing method, device, medium, system, front-end assembling client and robot body operation system
CN112312631B (en) Data processing method and device
CN112346736B (en) Data processing method and system
CN109408380B (en) Game system defect management method and device and electronic equipment
CN103154886A (en) Software generation device, software generation method and program
CN112186866B (en) Vehicle-mounted equipment protection parameter selection method, device, equipment and readable storage medium
CN114610003B (en) Vehicle diagnosis method, device, equipment and medium
CN108628280A (en) Vehicle hardware is in ring test method, apparatus and system
CN111400160B (en) Code verification method and device and vehicle
CN114415898B (en) Method and system for reinjecting real vehicle data into Simulink model
JP5011221B2 (en) Controller development tool and equipment with motor drive system developed using it
CN111581093B (en) Method, device, equipment and medium for generating test record list
CN113934644B (en) Version difference comparison method and device, intelligent terminal and readable storage medium
CN115827139A (en) Equipment operation state display method and device, storage medium and electronic equipment
CN116424118A (en) Method, device and storage medium for predicting remaining battery charge duration
CN115390956A (en) Voice interaction based guiding method, storage medium, electronic equipment and vehicle
CN107131961B (en) Terminal temperature detection method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant