CN115576845A - Vehicle-mounted software testing method, device, testing terminal and system - Google Patents

Vehicle-mounted software testing method, device, testing terminal and system Download PDF

Info

Publication number
CN115576845A
CN115576845A CN202211388847.2A CN202211388847A CN115576845A CN 115576845 A CN115576845 A CN 115576845A CN 202211388847 A CN202211388847 A CN 202211388847A CN 115576845 A CN115576845 A CN 115576845A
Authority
CN
China
Prior art keywords
test
function
data
tested
state
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.)
Pending
Application number
CN202211388847.2A
Other languages
Chinese (zh)
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.)
Xinghe Zhilian Automobile Technology Co Ltd
Original Assignee
Xinghe Zhilian Automobile 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 Xinghe Zhilian Automobile Technology Co Ltd filed Critical Xinghe Zhilian Automobile Technology Co Ltd
Priority to CN202211388847.2A priority Critical patent/CN115576845A/en
Publication of CN115576845A publication Critical patent/CN115576845A/en
Pending legal-status Critical Current

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/3688Test management for test execution, e.g. scheduling of test suites
    • 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/3692Test management for test results analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a vehicle-mounted software testing method, a device, a testing terminal and a system, wherein the method comprises the following steps: selecting at least one software function from a preset function state test table as a function to be tested, and generating corresponding test data; sending the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data, and returning the functional data; and receiving the function data, searching an enabling test value and a state test value corresponding to the function to be tested from the function state test table, if an enabling bit value in the function data is equal to the enabling test value corresponding to the function to be tested and a state bit value in the function data is equal to the state test value corresponding to the function to be tested, judging that the test result of the function to be tested is normal, otherwise, judging that the test result is abnormal. The embodiment of the invention can realize more efficient software function test.

Description

Vehicle-mounted software testing method, device, testing terminal and system
Technical Field
The invention relates to the technical field of computers, in particular to a vehicle-mounted software testing method, a vehicle-mounted software testing device, a vehicle-mounted software testing terminal and a vehicle-mounted software testing system.
Background
In the prior art, vehicle-mounted software of a vehicle is developed by different software manufacturers respectively, and when the different software manufacturers deliver the developed vehicle-mounted software to a whole vehicle manufacturer, the whole vehicle manufacturer needs to test the vehicle-mounted software, that is, whether different software functions corresponding to different vehicle-mounted software can be normally realized needs to be tested. The existing testing scheme generally receives information which is sent by a vehicle end and is related to testing of all software functions through an adb (Android Debug Bridge) or a super serial port terminal, then tests all software functions through a written testing program to obtain testing data, manually compares the testing data one by one to obtain testing results of all software functions, and learns whether all software functions can be normally realized according to the testing results to obtain the testing results of vehicle-mounted software.
Therefore, in the prior art, when the vehicle-mounted software is tested, manual operation is required, the testing process is complicated, the time consumption is long, and only part of software functions needing to be tested cannot be tested, namely, the software functions corresponding to the vehicle-mounted software delivered by different software manufacturers cannot be tested, so that the testing efficiency is low.
Disclosure of Invention
In order to solve the above technical problem, embodiments of the present invention provide a method, an apparatus, a test terminal, and a system for testing vehicle-mounted software, in which after test data is sent to a vehicle-mounted software terminal, returned function data is compared with the test data, and whether a test result of a corresponding function is normal is determined according to whether a comparison result meets a preset function state test table, so as to efficiently implement a function test of vehicle-mounted software.
In order to achieve the above object, an embodiment of the present invention provides a vehicle-mounted software testing method, including:
selecting at least one software function from a preset function state test table as a function to be tested, and generating corresponding test data; the functional state test table comprises at least one software function and an enabling test value and a state test value corresponding to each software function;
sending the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data, and returning the functional data; the function data comprises an enable bit value and a state bit value corresponding to the function to be tested;
receiving the function data, and searching an enabling test value and a state test value corresponding to the function to be tested from the function state test table;
and if the enable bit value in the function data is equal to the enable test value corresponding to the function to be tested, and the state bit value in the function data is equal to the state test value corresponding to the function to be tested, judging that the test result of the function to be tested is normal, otherwise, judging that the test result is abnormal.
Further, the test data includes test requirements of the functions to be tested.
Further, the functional data conforms to a serial peripheral interface protocol.
Further, after all the test results of the functions to be tested are obtained, a test result table is generated according to all the test results.
The embodiment of the invention also provides a vehicle-mounted software testing device, which comprises:
the test data generation module is used for selecting at least one software function from a preset function state test table as a function to be tested and generating corresponding test data; the functional state test table comprises at least one software function, and an enabling test value and a state test value corresponding to each software function;
the test data sending module is used for sending the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data and returns the functional data; the function data comprises an enable bit value and a state bit value corresponding to the function to be tested;
the test value searching module is used for receiving the function data and searching an enabling test value and a state test value corresponding to the function to be tested from the function state test table;
and the test result acquisition module is used for judging that the test result of the function to be tested is normal if the enable bit value in the function data is equal to the enable test value corresponding to the function to be tested and the state bit value in the function data is equal to the state test value corresponding to the function to be tested, otherwise, judging that the test result is abnormal.
Further, the test data includes test requirements of the functions to be tested.
Further, the functional data conforms to a serial peripheral interface protocol.
The system further comprises a test result table generating module for generating a test result table according to all test results after all test results of the functions to be tested are obtained.
The embodiment of the invention also provides a test terminal, which comprises a memory, a processor and a computer program stored on the memory and run by the processor, wherein the processor executes the computer program to realize the steps of the vehicle-mounted software test method.
The embodiment of the invention also provides a vehicle-mounted software testing system, which comprises a testing terminal and a vehicle end; the test terminal is used for executing the steps of the vehicle-mounted software test method.
The invention has the following beneficial effects:
by adopting the embodiment of the invention, at least one software function is selected from a preset function state test table to be used as a function to be tested, and corresponding test data is generated; sending the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data, and returning the functional data; and receiving the functional data, searching an enable test value and a state test value corresponding to the function to be tested from the functional state test table, and comparing the enable test value and the state test value with an enable bit value and a state bit value in the functional data respectively to obtain a test result. The embodiment of the invention does not need manual operation in the test process, can automatically test the software function of the vehicle-mounted software, has short time consumption, thereby improving the test efficiency, and simultaneously, only selects the required software function as the function to be tested from the function state test table to test only part of the software function to be tested, thereby enabling a whole vehicle manufacturer to efficiently test the software function corresponding to the vehicle-mounted software delivered by different software manufacturers.
Drawings
FIG. 1 is a flow chart illustrating an embodiment of a vehicle software testing method provided by the present invention;
FIG. 2 is a schematic structural diagram of an embodiment of an on-board software testing device provided by the present invention;
fig. 3 is a schematic structural diagram of another embodiment of an on-board software testing device provided by the 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 only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of protection of the present invention.
Referring to fig. 1, which is a schematic flow chart of an embodiment of the vehicle-mounted software testing method provided by the present invention, the method includes steps S1 to S4, specifically as follows:
s1, selecting at least one software function from a preset function state test table as a function to be tested, and generating corresponding test data; the functional state test table comprises at least one software function, and an enabling test value and a state test value corresponding to each software function;
as an improvement of the above scheme, the test data includes the test requirements of the function to be tested.
Specifically, in a specific embodiment, the function state test table includes at least one software function, and an enable test value and a state test value corresponding to each software function, taking the vehicle speed function as an example, the state test value speed _ value represents a value of the vehicle speed, and the enable test value speed _ vd represents an enable signal value of the vehicle speed.
S2, sending the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data, and returning the functional data; the function data comprises an enable bit value and a state bit value corresponding to the function to be tested;
as an improvement of the above scheme, the functional data conforms to a serial peripheral interface protocol.
Specifically, taking the vehicle speed function as an example, the function data is stored in a form of a PPS (PowerPoint Show) file and is transmitted in a manner conforming to an SPI (Serial Peripheral Interface) protocol, the function data includes an enable bit value and a status bit value corresponding to the vehicle speed function, the enable bit value is represented by the first 1bit of an a001 file in the PPS (PowerPoint Show) file, and the status bit value is represented by the first 2 bytes, that is, the first 16 bits, of an a000 file in the PPS (PowerPoint Show) file.
S3, receiving the function data, and searching an enabling test value and a state test value corresponding to the function to be tested from the function state test table;
and S4, if the enable bit value in the function data is equal to the enable test value corresponding to the function to be tested, and the state bit value in the function data is equal to the state test value corresponding to the function to be tested, judging that the test result of the function to be tested is normal, otherwise, judging that the test result is abnormal.
Specifically, taking the vehicle speed function as an example, the test terminal searches a state test value speed _ value and an enable test value speed _ vd from a function state test table, wherein if the state test value speed _ value and the enable test value speed _ vd are both 1, in a PPS (PowerPoint Show) file corresponding to the state bit value and the enable bit value of the vehicle speed in the function data, respectively, the first 1bit of the corresponding a001 file is represented as 1, and the first 2 bytes of the corresponding a000 file are also represented as 1, it is determined that the vehicle speed function is normal.
As an improvement of the scheme, after all the test results of the functions to be tested are obtained, a test result table is generated according to all the test results.
Correspondingly, the embodiment of the invention also provides a vehicle-mounted software testing device which is used for realizing all the processes of the vehicle-mounted software testing method provided by the embodiment.
Fig. 2 is a schematic structural diagram of an embodiment of the vehicle-mounted software testing device provided by the invention.
The embodiment of the invention provides a vehicle-mounted software testing device, which comprises:
the test data generating module 101 is configured to select at least one software function from a preset function state test table as a function to be tested, and generate corresponding test data; the functional state test table comprises at least one software function and an enabling test value and a state test value corresponding to each software function;
as an improvement of the above scheme, the test data includes test requirements of the functions to be tested.
The test data sending module 102 is configured to send the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data, and returns the functional data; the function data comprises an enable bit value and a state bit value corresponding to the function to be tested;
as an improvement of the scheme, the functional data conforms to a serial peripheral interface protocol.
A test value searching module 103, configured to receive the function data, and search, from the function state test table, an enable test value and a state test value corresponding to the function to be tested;
a test result obtaining module 104, configured to determine that a test result of the function to be tested is normal if an enable bit value in the function data is equal to an enable test value corresponding to the function to be tested, and a state bit value in the function data is equal to a state test value corresponding to the function to be tested, or determine that the test result is abnormal.
Fig. 3 is a schematic structural diagram of another embodiment of the vehicle-mounted software testing device provided by the invention.
As an improvement of the above scheme, the test system further includes a test result table generating module 105, configured to generate a test result table according to all test results after all test results of the functions to be tested are obtained.
In addition, an embodiment of the present invention further provides a test terminal, which includes a memory, a processor, and a computer program stored in the memory and run by the processor, where the processor implements the steps of the vehicle-mounted software test method when executing the computer program.
In addition, the embodiment of the invention also provides a vehicle-mounted software testing system, which comprises a testing terminal and a vehicle end; the test terminal is used for executing the steps of the vehicle-mounted software test method.
Through the above description of the embodiments, those skilled in the art will clearly understand that the present invention may be implemented by software plus a necessary hardware platform, and may also be implemented by hardware entirely. With this understanding in mind, all or part of the technical solutions of the present invention that contribute to the background can be embodied in the form of a software product, which can be stored in a storage medium, such as a ROM/RAM, a magnetic disk, an optical disk, etc., and includes instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods according to the embodiments or some parts of the embodiments of the present invention.
In summary, the embodiment of the invention has the following beneficial effects:
by adopting the embodiment of the invention, at least one software function is selected from a preset function state test table to serve as a function to be tested, and corresponding test data is generated; sending the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data, and returning the functional data; and receiving the function data, searching an enabling test value and a state test value corresponding to the function to be tested from the function state test table, and comparing the enabling test value and the state test value with an enabling bit value and a state bit value in the function data respectively to obtain a test result. The embodiment of the invention does not need manual operation in the testing process, can automatically test the software functions of the vehicle-mounted software, has short time consumption, thereby improving the testing efficiency, and simultaneously, only selects the required software functions from the function state testing table as the functions to be tested, realizes the testing of only partial software functions to be tested, thereby enabling a whole vehicle manufacturer to efficiently test the software functions corresponding to the vehicle-mounted software delivered by different software manufacturers.
While the foregoing is directed to the preferred embodiment of the present invention, it will be understood by those skilled in the art that various changes and modifications may be made without departing from the spirit and scope of the invention.

Claims (10)

1. A vehicle-mounted software testing method is characterized by comprising the following steps:
selecting at least one software function from a preset function state test table as a function to be tested, and generating corresponding test data; the functional state test table comprises at least one software function, and an enabling test value and a state test value corresponding to each software function;
sending the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data, and returning the functional data; the function data comprises an enable bit value and a state bit value corresponding to the function to be tested;
receiving the function data, and searching an enabling test value and a state test value corresponding to the function to be tested from the function state test table;
and if the enable bit value in the function data is equal to the enable test value corresponding to the function to be tested, and the state bit value in the function data is equal to the state test value corresponding to the function to be tested, judging that the test result of the function to be tested is normal, otherwise, judging that the test result is abnormal.
2. The method for testing on-board software of claim 1, wherein the test data includes test requirements for the functions to be tested.
3. The method according to claim 1, wherein the functional data conforms to a serial peripheral interface protocol.
4. The vehicle-mounted software testing method of claim 1, further comprising:
and after all test results of the functions to be tested are obtained, generating a test result table according to all test results.
5. An on-board software testing device, comprising:
the test data generation module is used for selecting at least one software function from a preset function state test table as a function to be tested and generating corresponding test data; the functional state test table comprises at least one software function, and an enabling test value and a state test value corresponding to each software function;
the test data sending module is used for sending the test data to a vehicle end, so that the vehicle end obtains functional data after testing the function to be tested according to the test data and returns the functional data; the function data comprises an enable bit value and a state bit value corresponding to the function to be tested;
the test value searching module is used for receiving the function data and searching an enabling test value and a state test value corresponding to the function to be tested from the function state test table;
and the test result acquisition module is used for judging that the test result of the function to be tested is normal if the enable bit value in the function data is equal to the enable test value corresponding to the function to be tested and the state bit value in the function data is equal to the state test value corresponding to the function to be tested, otherwise, judging that the test result is abnormal.
6. The on-board software testing apparatus of claim 5, wherein the test data includes test requirements of the functions to be tested.
7. The on-board software testing apparatus of claim 5, wherein the functional data conforms to a Serial peripheral interface protocol.
8. The onboard software testing apparatus according to claim 5, further comprising:
and the test result table generating module is used for generating a test result table according to all the test results after all the test results of the functions to be tested are obtained.
9. A test terminal comprising a memory, a processor and a computer program stored on the memory and run by the processor, characterized in that the steps of the in-vehicle software testing method according to any of claims 1 to 4 are implemented when the computer program is executed by the processor.
10. The vehicle-mounted software testing system is characterized by comprising a testing terminal and a vehicle end; the test terminal is used for executing the vehicle-mounted software test method according to any one of claims 1 to 4.
CN202211388847.2A 2022-11-08 2022-11-08 Vehicle-mounted software testing method, device, testing terminal and system Pending CN115576845A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211388847.2A CN115576845A (en) 2022-11-08 2022-11-08 Vehicle-mounted software testing method, device, testing terminal and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211388847.2A CN115576845A (en) 2022-11-08 2022-11-08 Vehicle-mounted software testing method, device, testing terminal and system

Publications (1)

Publication Number Publication Date
CN115576845A true CN115576845A (en) 2023-01-06

Family

ID=84588680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211388847.2A Pending CN115576845A (en) 2022-11-08 2022-11-08 Vehicle-mounted software testing method, device, testing terminal and system

Country Status (1)

Country Link
CN (1) CN115576845A (en)

Similar Documents

Publication Publication Date Title
US20200211302A1 (en) Control device for multi-driver compatibility and implementation method
EP2472402A1 (en) Remote management systems and methods for mapping operating system and management controller located in a server
CN113127338A (en) Firmware testing method, server and computer readable storage medium
CN109885037B (en) Vehicle diagnosis method and related equipment
CN107423492B (en) Forklift diagnosis test method and system based on template
CN100444127C (en) System and method for testing software
CN112596447B (en) Method and device for determining length of ECU (electronic control Unit) flash data, electronic equipment and medium
CN110377476B (en) Terminal testing method, terminal and readable storage medium
CN115576845A (en) Vehicle-mounted software testing method, device, testing terminal and system
CN115495363A (en) Software testing method, electronic equipment and readable storage medium
CN113495723B (en) Method, device and storage medium for calling functional component
CN114281065A (en) Electronic control unit flashing method and device for vehicle and diagnostic equipment
CN114003018A (en) Vehicle diagnosis method and related device
CN116893978B (en) Test plan generation method, system and storage medium based on PTCRB authentication
CN112863008B (en) Fault recording method and device, storage medium and computer equipment
CN112104766B (en) Diagnostic protocol reconstruction method, device, terminal equipment and storage medium
CN116684913B (en) 4G communication module testing method, system, electronic equipment and storage medium
US11940902B2 (en) Code testing method, apparatus and device, and computer-readable storage medium
CN112000579B (en) Software interface testing method, system, equipment and medium
CN114764336A (en) PeakCAN-based automobile ECU (electronic control Unit) flashing method and device, vehicle-mounted terminal and medium
CN110955570A (en) Automatic test method and test system for CAN bus
CN117032175A (en) Automatic test method and system for vehicle-mounted controller
CN114814586A (en) Battery fault diagnosis method, device, equipment and medium
CN115422073A (en) mock service processing method, device, equipment and storage medium
CN116775498A (en) Software testing method and device, electronic equipment and storage medium

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