CN116820938A - Software test processing method and device, storage medium and vehicle - Google Patents

Software test processing method and device, storage medium and vehicle Download PDF

Info

Publication number
CN116820938A
CN116820938A CN202310671965.2A CN202310671965A CN116820938A CN 116820938 A CN116820938 A CN 116820938A CN 202310671965 A CN202310671965 A CN 202310671965A CN 116820938 A CN116820938 A CN 116820938A
Authority
CN
China
Prior art keywords
calibration
vehicle
software
data
target service
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
CN202310671965.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.)
Great Wall Motor Co Ltd
Original Assignee
Great Wall Motor 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 Great Wall Motor Co Ltd filed Critical Great Wall Motor Co Ltd
Priority to CN202310671965.2A priority Critical patent/CN116820938A/en
Publication of CN116820938A publication Critical patent/CN116820938A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • 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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the specification discloses a software testing processing method, a device, a storage medium and a vehicle, wherein the method comprises the following steps: determining measurement calibration software aiming at vehicle-mounted application on equipment to be tested, wherein the vehicle-mounted application is application software developed based on a vehicle-mounted software development platform, the vehicle-mounted software development platform supports a target service communication protocol, and the measurement calibration software is controlled to develop and test the vehicle-mounted application on the equipment to be tested through the target service communication protocol.

Description

Software test processing method and device, storage medium and vehicle
Technical Field
The present disclosure relates to the field of intelligent automobiles, and in particular, to a software testing method, a device, a storage medium, and a vehicle.
Background
At present, the development of the automobile industry is rapid, the period of new products on the market is continuously shortened, higher requirements are put forward on the development period and the application quality of the vehicle-mounted application related to the development of an electronic control unit (Electronic Control Unit, ECU), and the development of the vehicle-mounted application can relate to software test processing links such as data calibration and data observation for the vehicle-mounted application, and the software test processing links are particularly critical to the subsequent application experience of the vehicle-mounted application.
Disclosure of Invention
The embodiment of the specification provides a software testing processing method, a device, a storage medium and a vehicle, which can solve the technical problems of inconvenient software testing processing mode and low efficiency, and the technical scheme is as follows:
in a first aspect, embodiments of the present disclosure provide a software test processing method, where the method includes:
determining measurement calibration software for vehicle-mounted application on equipment to be tested, wherein the vehicle-mounted application is application software developed based on a vehicle-mounted software development platform, and the vehicle-mounted software development platform supports a target service communication protocol;
and controlling the measurement calibration software to develop and test the vehicle-mounted application on the equipment to be tested through the target service communication protocol.
In a second aspect, embodiments of the present disclosure provide a software test processing apparatus, the apparatus including:
the software determining module is used for determining measurement calibration software aiming at vehicle-mounted application on the equipment to be tested, wherein the vehicle-mounted application is application software developed based on a vehicle-mounted software development platform, and the vehicle-mounted software development platform supports a target service communication protocol;
and the calibration observation module is used for controlling the measurement calibration software to develop and test the vehicle-mounted application on the equipment to be tested through the target service communication protocol.
In a third aspect, the present description provides a computer storage medium storing a plurality of instructions adapted to be loaded by a processor and to perform the above-described method steps.
In a fourth aspect, embodiments of the present disclosure provide a vehicle that may include: a processor and a memory; wherein the memory stores a computer program adapted to be loaded by the processor and to perform the above-mentioned method steps.
The technical scheme provided by some embodiments of the present specification has the following beneficial effects:
in one or more embodiments of the present disclosure, a test device determines measurement calibration software for a vehicle-mounted application on a device to be tested, and because the vehicle-mounted application is application software developed based on a vehicle-mounted software development platform, a target service communication protocol supported by the vehicle-mounted software development platform is adopted, and the measurement calibration software is controlled to develop and test the vehicle-mounted application on the device to be tested through the target service communication protocol, so that an XCP protocol is avoided to be directly used, and the situation that the XCP protocol needs to be further developed on the side of the device to be tested where the vehicle-mounted software is located when the target service communication protocol supported by the vehicle-mounted software development platform is incompatible with the XCP protocol is avoided.
Drawings
In order to more clearly illustrate the embodiments of the present description or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present description, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic flow chart of a software test processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic flow chart of a measurement calibration software determination provided in an embodiment of the present disclosure;
FIG. 3 is a schematic flow chart of a calibration observation process according to an embodiment of the present disclosure;
FIG. 4 is a schematic view of a scenario of data calibration provided in an embodiment of the present disclosure;
FIG. 5 is a schematic flow chart of calibration observation data reading provided in the embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of a software testing processing device according to an embodiment of the present disclosure;
fig. 7 is a schematic structural view of a vehicle provided in an embodiment of the present specification.
Detailed Description
The technical solutions of the embodiments of the present specification will be clearly and completely described below with reference to the drawings in the embodiments of the present specification, and it is apparent that the described embodiments are only some embodiments of the present specification, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are intended to be within the scope of the present disclosure.
In the description of the present specification, it should be understood that the terms "first," "second," and the like are used for descriptive purposes only and are not to be construed as indicating or implying relative importance. In the description of the present specification, it should be noted that, unless expressly specified and limited otherwise, "comprise" and "have" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may include other steps or elements not listed or inherent to such process, method, article, or apparatus. The specific meaning of the terms in this specification will be understood by those of ordinary skill in the art in the light of the specific circumstances. In addition, in the description of the present specification, unless otherwise indicated, "a plurality" means two or more. "and/or", describes an association relationship of an association object, and indicates that there may be three relationships, for example, a and/or B, and may indicate: a exists alone, A and B exist together, and B exists alone. The character "/" generally indicates that the context-dependent object is an "or" relationship.
In the related art, in the conventional ECU development, in a software test link, in-vehicle software developed using an in-vehicle development platform, data communication during development test processing such as data observation, data calibration, and the like is generally performed by using a general calibration protocol (Universal Calibration Protocol, XCP protocol). The XCP protocol is used to take into account that the calibrated data has a fixed address, for example, the test device can control the calibration software to obtain the observed quantity or the calibrated quantity of the address in the vehicle software on the tested device by reading the A2L file by using the XCP protocol.
However, when in development, the vehicle-mounted software does not necessarily support the XCP protocol, such as an active auto sar automobile open system architecture platform in the vehicle-mounted development platform, does not support the XCP protocol, is the vehicle-mounted software developed based on a portable operating system (Portable Operating System Interface, POSIX), and has no fixed address, generally no A2L file storage, in the development test process, the variables to be observed or calibrated are stored in a file or key value manner, in this case, the XCP protocol is used, so that the XCP protocol needs to be developed on the side of the device to be tested where the vehicle-mounted software is located, and then the device to be tested can perform data communication with the test device where the calibration software is located in the test development process.
Therefore, in the related art, the XCP protocol is limited to a certain extent in the software testing link, which results in inconvenient software testing and processing modes and low efficiency.
The present specification is described in detail below with reference to specific examples.
In one embodiment, as shown in fig. 1, a software test processing method is specifically proposed, which can be implemented by means of a computer program and can be run on a software test processing device based on von neumann system. The computer program may be integrated in the application or may run as a stand-alone tool class application. The software test processing means may be a test device including, but not limited to: a car set, personal computer, tablet, handheld device, in-vehicle device, wearable device, computing device, or other processing device connected to a wireless modem, etc. Terminal devices in different networks may be called different names, for example: a user equipment, an access terminal, a subscriber unit, a subscriber station, a mobile station, a remote terminal, a mobile device, a user terminal, a wireless communication device, a user agent or user equipment, a cellular telephone, a cordless telephone, a 5G network, or a device in a future evolution network, etc.
Specifically, the software test processing method comprises the following steps:
s102: determining measurement calibration software for vehicle-mounted application on equipment to be tested, wherein the vehicle-mounted application is application software developed based on a vehicle-mounted software development platform, and the vehicle-mounted software development platform supports a target service communication protocol;
the device to be tested is a device for carrying or installing developed vehicle-mounted applications, one or more vehicle-mounted applications to be subjected to software testing are operated on the device to be tested, and in a software testing processing environment, processing procedures such as data calibration, data observation and the like are required to be performed on the vehicle-mounted applications on the device to be tested.
The measurement calibration software is application software which runs on the test equipment and is used for carrying out software test processing on the vehicle-mounted application on the equipment to be tested, the measurement calibration software can generate a data file (such as a calibration observation file) for software test based on the software test requirement of a tester, and can also acquire software test data (such as calibration observation data) aiming at the vehicle-mounted application from the equipment to be tested;
further, the vehicle-mounted application can be understood as an object for performing software test processing such as data calibration, data observation and the like, and the vehicle-mounted application is ECU application software developed based on a vehicle-mounted software development platform;
Alternatively, the vehicle-mounted application may be an "air conditioner controller application", "engine control application", "meter control application", or the like.
The vehicle-mounted software development platform can be an additional AUTOSAR platform, an EB creosote platform and the like, and an embedded software developer based on the vehicle-mounted software development platform can develop vehicle-mounted software based on vehicle-mounted software development requirements.
It can be appreciated that the vehicle-mounted software development platform supports development of application software based on a target service communication protocol for data communication of the application software;
taking the additional AUTOSAR platform as an example, the target service communication protocol supported by the additional AUTOSAR platform CAN be SOMEIP/DDS communication protocol, the additional AUTOSAR platform does not support XCP protocol, and because the physical address of each running of the developed vehicle-mounted application APP is not fixed due to the virtual memory mechanism, the parameter calibration of the vehicle-mounted application APP cannot be calibrated or observed in a mode similar to the traditional parameter calibration using the CAN communication protocol;
s104: and controlling the measurement calibration software to develop and test the vehicle-mounted application on the equipment to be tested through the target service communication protocol.
The development test processing link determines the test content based on the actual test requirements, such as the development test processing may be a data calibration processing, a data observation processing, and the like.
It can be understood that a tester uses measurement calibration software on test equipment to develop test processing on the vehicle-mounted application on the equipment to be tested, the development test processing involves the processes of transmission, reading, writing, updating and the like of relevant test processing data, and in the specification, the processes of transmission, reading, writing, updating and the like of relevant test processing data are carried out on the vehicle-mounted software and the equipment to be tested by using a target service communication protocol supported by a vehicle-mounted development platform;
in a possible implementation manner, the test device may control the measurement calibration software to read the calibration observation data description file, and transmit the calibration observation data description file to the device to be tested by adopting the target service communication protocol, so that the device to be tested writes the calibration observation data description file into the vehicle-mounted application for data calibration processing and/or data observation processing;
the calibration observation data description file is a data description file corresponding to the observed quantity and/or the calibration quantity set for the vehicle-mounted application, specific data types in the calibration observation data description file are not limited, and the calibration observation data description file can be determined based on the actual application environment.
For example, the calibration observation data description file may be a file containing a calibration amount and/or an observed amount set by a tester for an in-vehicle application, the calibration observation data description file not being in an A2L file format in the related art, but being a data description file format such as a ARXML (Architecture eXtensible Markup Language) file format as a general configuration file or a database file, being a transmission information file format defined based on an automotive electronic application scenario under an AUTOSAR architecture; further, the test equipment reads the calibration observation data description file through measurement calibration software, then the measurement calibration software and the equipment to be tested are communicated by adopting a target service communication protocol (such as SOMEIP/DDS communication protocol), the calibration observation data description file is transmitted to the equipment to be tested, the equipment to be tested writes the data in the calibration observation data description file into the vehicle-mounted application, if the data in the calibration observation data description file is the calibration quantity, parameters in the corresponding calibration quantity in the vehicle-mounted application can be updated, and parameter calibration is completed; if the data in the calibration observation data description file is an observed quantity, the observed quantity in the corresponding calibration quantity in the vehicle-mounted application can be observed, the parameter change value corresponding to the observed quantity is recorded, and the calibration observation data of the parameter change value of the recorded observed quantity can be generated subsequently;
In a possible implementation manner, the test device may control the measurement calibration software to read calibration observation data stored for the vehicle-mounted application from the device to be tested through the target service communication protocol, and perform data calibration processing and/or data observation processing based on the calibration observation data;
the calibration observation data are parameters corresponding to the observed quantity and/or the calibration quantity of the vehicle-mounted application, specific data types of the calibration observation data are not limited, and the calibration observation data can be determined based on the actual application environment.
For example, the calibration observation data may be detailed parameters set by a tester for the observed quantity/calibration quantity, and after the calibration observation data stored for the vehicle-mounted application is read from the device to be tested by the test device control measurement calibration software through the target service communication protocol, variable parameters corresponding to the observed quantity may be displayed by the measurement calibration software for the tester to review;
in one or more embodiments of the present disclosure, the processing of the data calibration process and the data observation process may be configured by a tester, and the specific processing form is not limited herein.
In a possible implementation manner, the test device may "control the measurement calibration software to read a calibration observation data description file, transmit the calibration observation data description file to the device under test using the target service communication protocol, so that the device under test writes the calibration observation data description file into the vehicle-mounted application to perform data calibration processing and/or data observation processing", and may further "control the measurement calibration software to read, from the device under test, calibration observation data stored for the vehicle-mounted application via the target service communication protocol, perform data calibration processing and/or data observation processing based on the calibration observation data".
In the embodiment of the specification, the test equipment carries out development test processing on the vehicle-mounted application on the equipment to be tested by determining the measurement calibration software aiming at the vehicle-mounted application on the equipment to be tested, because the vehicle-mounted application is application software developed based on the vehicle-mounted software development platform, the target service communication protocol supported by the vehicle-mounted software development platform is adopted, and the measurement calibration software is controlled to carry out development test processing on the vehicle-mounted application on the equipment to be tested through the target service communication protocol, so that the XCP protocol is avoided being directly used, the situation that the XCP protocol needs to be further developed on the side of the equipment to be tested where the vehicle-mounted software is located when the target service communication protocol supported by the vehicle-mounted software development platform is not compatible with the XCP protocol is avoided, the software test processing flow is optimized, the mode is simple and convenient, and the efficiency of software test processing such as data calibration and data observation is improved.
Referring to fig. 2, fig. 2 is a schematic flow chart of measurement calibration software determination as set forth in the present specification. Specific:
s202: determining a vehicle-mounted software development platform corresponding to a vehicle-mounted application on a device to be tested, and acquiring a target service communication protocol configured by the vehicle-mounted software development platform;
embedded software developers will employ corresponding in-vehicle software development platforms in conjunction with ECU development requirements to develop in-vehicle applications for which dynamic communication and efficient distribution of large amounts of data, e.g., large data sets generated by data acquisition and analysis systems, such as image processing, must be efficiently processed in parallel and communicated with specific partners, whether based on control connectivity of the in-vehicle application from the vehicle to the outside or from the vehicle to the outside. The development of application scenes such as data flow, data interaction, data distribution and the like is realized on the basis of a target service communication protocol supported by the platform;
Taking the vehicle-mounted software development platform as an example of the additional AUTOSAR platform, the target service communication protocol supported by the additional AUTOSAR platform can be SOMEIP/DDS communication protocol, the additional AUTOSAR platform does not support XCP protocol, the software architecture of the additional AUTOSAR platform uses a service oriented application program (SOA) architecture, adaptive Applications is that the developed vehicle-mounted application provides and requests service through the communication protocol on the network, and the communication protocol is SOMEIP/DDS communication protocol.
It can be understood that, in the case that the vehicle-mounted software development platform does not support the XCP protocol, if the conventional technical concept in the related technology is adopted, the XCP protocol is used to perform communication in the software test link, and it is required to develop the XCP server protocol for the developed vehicle-mounted software in depth on the device side to be tested and the test device side additionally, for example, develop an application on the device side to be tested and use the XCP protocol to communicate with the upper computer software, that is, the measurement calibration software on the test device side, which results in "inconvenient software test processing mode and low efficiency", and through creative labor, the vehicle-mounted software development platform corresponding to the vehicle-mounted application on the device to be tested is not adopted in the foregoing mode, and the target service communication protocol supported by the vehicle-mounted software development platform is obtained, and the measurement calibration software for the vehicle-mounted application is directly configured by the target service communication protocol, so as to avoid the limitation caused by the requirement of deep development of the XCP protocol when the conventional XCP protocol is used.
S204: and configuring measurement calibration software for the vehicle-mounted application based on the target service communication protocol.
Illustratively, the measurement calibration software on the test equipment may be developed using a target service communication protocol in the form of an applet, an application, a web client, a host client interface, and the like. Such as the measurement calibration software, communicates with the in-vehicle applications (the number of in-vehicle applications may be one or more) in the device under test via the SOMEIP/DDS communication protocol.
In one possible implementation, the measurement calibration software for the in-vehicle application is configured based on a target service communication protocol, and the following definitions may be referred to:
a2, creating an upper computer client interface aiming at vehicle-mounted application based on the CANoe platform;
it is understood that, in the development cycle of the vehicle software, an operating system (such as Linux) based on the POSIX standard is widely applied to ECU prototype development, algorithm or function evaluation of a vehicle software development platform such as an auto sar Adaptive. An embedded software developer can use a CANoe platform to develop an upper computer client interface in a virtual machine running a Linux system (such as Ubuntu/Debian).
The CANoe platform is a comprehensive tool for developing, testing and analyzing a network/bus and an ECU, and supports the whole process from the requirement analysis to the system realization of the bus network development, including model creation, simulation, testing, diagnosis, communication analysis and the like.
In the specification, an upper computer client interface for vehicle-mounted application can be created based on a CANoe platform; further, the UI layout of the client interface of the host computer may be designed based on the requirements of the embedded software developer, which is not limited herein.
A4, establishing communication connection between the client interface of the host computer and vehicle-mounted application on the equipment to be tested in the CANoe platform by using the target service communication protocol;
taking an AUTOSAR Adaptive platform as an example, the target service communication protocol can be SOMEIP/DDS communication protocol;
a6, taking the client interface of the host computer as measurement calibration software aiming at vehicle-mounted application, and setting a data communication mode of the measurement calibration software as a file communication mode.
The embedded software developer sets the vehicle-mounted software to be observed and calibrated as the type of the file specified by the SOA protocol, namely as the file communication mode, and meanwhile, the Get, set and Notification attributes can be Set.
The communication mode of the file type is defined as follows: fields represent the status of a function that may be used to represent a certain amount of status, such as a door, window, etc.;
for the Set attribute: storing control commands for setting the status quantity represented by the fields in the payload of the request message;
For Get attribute: the effective load of the request message is empty, and the server identifies the message ID of the request message and then places the state quantity represented by the Field in the effective load of the response message;
for the Notification attribute: refers to a status value represented by a Field, and a Notification is transmitted when the status value represented by the Field is changed or is triggered by the outside.
In the embodiment of the specification, a vehicle-mounted software development platform corresponding to a vehicle-mounted application on a device to be tested is predetermined, a target service communication protocol supported by the vehicle-mounted software development platform is obtained, and measurement calibration software for the vehicle-mounted application is directly configured by the target service communication protocol, so that the limitation caused by the requirement of deep development of an XCP protocol when the conventional XCP protocol is used is avoided; and the CANoe platform can be used for directly developing an upper computer client interface, communication between the upper computer client interface and vehicle-mounted application on the equipment to be tested is established on the CANoe platform based on a target service communication protocol conforming to the specification, and the whole process does not need to develop additional software and measurement calibration software communication at the service of the test equipment and only needs to develop related interfaces by referring to a standard protocol, so that the test processing flow is optimized, and the test processing efficiency is greatly improved.
Referring to fig. 3, fig. 3 is a schematic flow chart of a calibration observation process set forth in the present specification. Specific:
s302: and acquiring the calibration observed quantity data input for the vehicle-mounted application through the measurement calibration software, and generating a calibration observed data description file containing the calibration observed quantity data.
The calibration observation data are parameters corresponding to vehicle-mounted application observation quantity and/or calibration quantity set by a tester, specific data types of the calibration observation data are not limited, and the calibration observation data can be determined based on actual application environments.
For example, the calibration observed quantity data may be detailed parameters set by a tester for a calibration quantity to be calibrated, and the test equipment controls the measurement calibration software to generate a calibration observed data description file containing the detailed parameters set by the calibration quantity;
for example, the calibration observed quantity data may be detailed parameter names set by a tester for the observed quantity to be observed, and the test equipment controls the measurement calibration software to generate a calibration observed data description file containing the detailed parameter names set by the observed quantity;
it can be understood that in practical application, no additional communication program except for measurement calibration software and vehicle-mounted software is required to be developed, and no communication program is required to be developed for device communication in the process of calibration observation;
Illustratively, a calibration observation data description file containing the calibration observation data may be generated based on an ARXML file format.
ARXML file format paraphrasing:
AUTOSAR XML, abbreviated as ARXML, which describes rules for serializing AUTOSAR models into AUTOSAR XML descriptions, provides support for interoperability between AUTOSAR tools,
s304: controlling the measurement calibration software to read a calibration observation data description file;
s306: determining a data communication mode corresponding to the measurement calibration software;
common data communication modes comprise a file communication mode, an Event communication mode and a Method communication mode;
the Event communication mode is that after service discovery, data is sent from a server side, received by a client side and transmitted in one direction;
the Method is that a client sends a request, and a server processes the client request and returns a response after receiving the request;
the file communication mode is a mixed communication mode of an Event communication mode and a Method communication mode, supports Set, get and Notification attributes, is divided into a Set Method, a Get Method and a Notification Method, the Notification Method is similar to a communication working mode of the Event communication mode, and the Get Method and the Set Method are similar to a communication working mode of the Method communication mode;
S308: if the data communication mode is a file communication mode, transmitting the calibration observation data description file to the equipment to be tested through the measurement calibration software by adopting the target service communication protocol, and writing data in the calibration observation data description file into the vehicle-mounted application on the equipment to be tested through a Set method so as to perform data calibration processing and/or data observation processing on the vehicle-mounted application, wherein the calibration observation data description file is a data description file corresponding to the observed quantity and/or the calibrated quantity Set for the vehicle-mounted application.
Schematically, as shown in fig. 4, fig. 4 is a schematic view of a scenario in which data calibration is performed, in which an embedded software developer sets vehicle software to be observed and calibrated to be of a file type specified by an SOA protocol, in an actual data calibration stage, a test device adopts a target service communication protocol (such as a SOMEIP/DDS communication protocol shown in fig. 4) to read a calibration observation data description file through measurement calibration software, the calibration observation data description file includes parameters of a calibration amount to be calibrated, and then transmits the calibration observation data description file to a device to be tested based on the SOMEIP/DDS communication protocol, and data in the calibration observation data description file is written into a vehicle-mounted application on the device to be tested by a Set method so as to perform data calibration processing and/or data observation processing on the vehicle-mounted application;
The test equipment side where the test calibration software is located is equivalent to a client side, the equipment side where the vehicle-mounted software is located is equivalent to a server side, the Set method generally comprises the steps that a request is sent by the client side, and the server side processes the client request and returns a response after receiving the request; for example, the client sends a calibration request, the calibration request can carry a calibration observation data description file, the server processes the calibration observation request of the client after receiving the request, then writes the data in the observation data description file into the vehicle-mounted application on the device to be tested, updates the calibration amount, can consider that the data calibration process is completed at the moment, and returns a response of the completion of the calibration to the client; optionally, the calibration quantity can also be used as an observed quantity, so that the purpose of observing whether the calibration of the calibration quantity is successful is to observe whether the calibration is successful or not, namely after updating the calibration quantity, the server can return calibration observation data, wherein the calibration observation data is a parameter corresponding to the calibration quantity, and the server can observe whether the calibration is successful or not by receiving the calibration observation data.
In one or more embodiments of the present disclosure, the whole calibration observation process does not need to develop additional software and communicate with measurement calibration software in a service where the test device is located, only needs to develop a relevant interface by referring to a standard protocol, and optimizes a test processing flow by adopting a Set method based on a full communication mode, thereby greatly improving test processing efficiency;
Referring to fig. 5, fig. 5 is a schematic flow chart of calibration observation data reading set forth in the present specification. Specific:
s402: determining a data communication mode corresponding to the measurement calibration software;
reference may be made specifically to the method steps of other embodiments of the present disclosure, and details are not repeated here.
S404: and if the data communication mode is a file communication mode, reading the calibration observation data stored for the vehicle-mounted application from the device to be tested by the measurement calibration software through the target service communication protocol based on a Get method and/or a Notification method so as to perform data calibration processing and/or data observation processing based on the calibration observation data.
Schematically, as shown in fig. 4, fig. 4 is a schematic view of a scenario of data calibration, in which an embedded software developer sets on-board software to be observed and calibrated to be of a file type specified by an SOA protocol, and in an actual data observation stage, a test device reads calibration observation data stored for an on-board application from a device to be tested by measuring calibration software using a target service communication protocol (such as a SOMEIP/DDS communication protocol shown in fig. 4) based on a Get method and/or a Notification method;
Wherein the calibration observation data are parameters corresponding to the observed quantity and/or the calibration quantity of the vehicle-mounted application
Schematically, the side of the test device where the test calibration software is located is equivalent to a client, and the side of the device to be tested where the vehicle-mounted software is located is equivalent to a server;
the Get method generally includes that a client sends a request, and a server processes the client request and returns a response after receiving the request; for example, the client sends an observation request, the server processes the client observation request after receiving the request, and the server then returns calibration observation data to the client, where the calibration observation data may include parameters corresponding to the observation amount of the vehicle-mounted application. The test end can display the calibration observation data in measurement calibration software.
The Notification method generally sends data from a server after service discovery, and a client receives the data and transmits the data unidirectionally; namely, the device side to be tested where the vehicle-mounted software is located actively transmits the calibration observation data to the test device side where the test calibration software is located.
In one or more embodiments of the present disclosure, the whole calibration observation process does not need to develop additional software and communicate with measurement calibration software in a service where the test device is located, only needs to develop a relevant interface by referring to a standard protocol, and optimizes a test processing flow by adopting a Get method and/or a Notification method based on a file communication mode, thereby greatly improving test processing efficiency;
The software test processing device provided in the embodiment of the present disclosure will be described in detail below with reference to fig. 6. Note that, the software test processing apparatus shown in fig. 6 is used to execute the method of the embodiment shown in fig. 1 to 5 of the present specification, and for convenience of explanation, only the portion relevant to the embodiment of the present specification is shown, and specific technical details are not disclosed, please refer to the embodiment shown in fig. 1 to 6 of the present specification.
Referring to fig. 6, a schematic structural diagram of a software testing processing device according to an embodiment of the present disclosure is shown. The software test processing means 1 may be implemented as all or part of the user terminal by software, hardware or a combination of both. According to some embodiments, the software testing processing device 1 comprises a software testing processing module 11, a software testing processing module 12 and a software testing processing module 13, in particular for:
the software determining module 11 is configured to determine measurement calibration software for a vehicle-mounted application on a device to be tested, where the vehicle-mounted application is application software developed based on a vehicle-mounted software development platform, and the vehicle-mounted software development platform supports a target service communication protocol;
and the calibration observation module 12 is used for controlling the measurement calibration software to develop and test the vehicle-mounted application on the equipment to be tested through the target service communication protocol.
Optionally, the calibration observation module 12 is configured to:
controlling the measurement calibration software to read a calibration observation data description file, and transmitting the calibration observation data description file to the equipment to be tested by adopting the target service communication protocol so that the equipment to be tested writes the calibration observation data description file into the vehicle-mounted application to perform data calibration processing and/or data observation processing, wherein the calibration observation data description file is a data description file corresponding to the observed quantity and/or the calibration quantity set for the vehicle-mounted application; and/or the number of the groups of groups,
and controlling the measurement calibration software to read the calibration observation data stored for the vehicle-mounted application from the device to be measured through the target service communication protocol, and carrying out data calibration processing and/or data observation processing based on the calibration observation data, wherein the calibration observation data is a parameter corresponding to the observed quantity and/or the calibration quantity of the vehicle-mounted application.
Optionally, the software determining module 11 is configured to:
determining a vehicle-mounted software development platform corresponding to a vehicle-mounted application on a device to be tested, and acquiring a target service communication protocol configured by the vehicle-mounted software development platform;
And configuring measurement calibration software for the vehicle-mounted application based on the target service communication protocol.
Optionally, the software determining module 11 is configured to:
creating an upper computer client interface aiming at vehicle-mounted application based on the CANoe platform;
establishing communication connection between the client interface of the host computer and vehicle-mounted application on the equipment to be tested by using the target service communication protocol in the CANoe platform;
and setting the data communication mode of the measurement calibration software as a file communication mode by taking the client interface of the host computer as the measurement calibration software for vehicle-mounted application.
Optionally, the device 1 is configured to:
and acquiring the calibration observed quantity data input for the vehicle-mounted application through the measurement calibration software, and generating a calibration observed data description file containing the calibration observed quantity data.
Optionally, the device 1 is configured to:
and generating a calibration observation data description file containing the calibration observation data based on an ARXML file format.
Optionally, the calibration observation module 12 is configured to:
determining a data communication mode corresponding to the measurement calibration software;
if the data communication mode is a file communication mode, the target service communication protocol is adopted to transmit the calibration observation data description file to the equipment to be tested through the measurement calibration software, and data in the calibration observation data description file is written into the vehicle-mounted application on the equipment to be tested through a Set method so as to perform data calibration processing and/or data observation processing on the vehicle-mounted application.
Optionally, the calibration observation module 12 is configured to:
determining a data communication mode corresponding to the measurement calibration software;
if the data communication mode is a file communication mode, based on a Get method and/or a Notification method, the calibration observation data stored for the vehicle-mounted application is read from the device to be tested by the measurement calibration software through the target service communication protocol.
Optionally, the vehicle-mounted software development platform is an adaptive AUTOSAR platform, and the target service communication protocol is a SOMEIP/DDS protocol.
It should be noted that, when executing the software test processing method, the software test processing apparatus provided in the foregoing embodiment is only exemplified by the division of the foregoing functional modules, and in practical application, the foregoing functional allocation may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the software test processing device and the software test processing method provided in the foregoing embodiments belong to the same concept, which embody the detailed implementation process in the method embodiment, and are not repeated here.
The foregoing embodiment numbers of the present specification are merely for description, and do not represent advantages or disadvantages of the embodiments.
The embodiment of the present disclosure further provides a computer storage medium, where the computer storage medium may store a plurality of instructions, where the instructions are adapted to be loaded by a processor and executed by the processor, where the specific execution process may refer to the specific description of the embodiment shown in fig. 1 to 5, and details are not repeated herein.
The present disclosure further provides a computer program product, where at least one instruction is stored, where the at least one instruction is loaded by the processor and executed by the processor, where the specific execution process may refer to the specific description of the embodiment shown in fig. 1 to 5, and details are not repeated herein.
Referring to fig. 7, a block diagram of a vehicle according to an embodiment of the present disclosure is provided. The vehicle in this specification may include, but is not limited to, the following components: processor 110, memory 120, input device 130, output device 140, and bus 150. The processor 110, the memory 120, the input device 130, and the output device 140 may be connected by a bus 150.
Processor 110 may include one or more processing cores. The processor 110 connects various parts within the overall terminal using various interfaces and lines, performs various functions of the terminal 100 and processes data by executing or executing instructions, programs, code sets, or instruction sets stored in the memory 120, and invoking data stored in the memory 120. Alternatively, the processor 110 may be implemented in at least one hardware form of digital signal processing (digital signal processing, DSP), field-programmable gate array (field-programmable gate array, FPGA), programmable logic array (programmable logic Array, PLA). The processor 110 may integrate one or a combination of several of a central processor (central processing unit, CPU), an image processor (graphics processing unit, GPU), and a modem, etc. The CPU mainly processes an operating system, a user interface, an application program and the like; the GPU is used for being responsible for rendering and drawing of display content; the modem is used to handle wireless communications. It will be appreciated that the modem may not be integrated into the processor 110 and may be implemented solely by a single communication chip.
The memory 120 may include a random access memory (random Access Memory, RAM) or a read-only memory (ROM). Optionally, the memory 120 includes a non-transitory computer readable medium (non-transitory computer-readable storage medium). Memory 120 may be used to store instructions, programs, code, sets of codes, or sets of instructions.
The input device 130 is configured to receive input instructions or data, and the input device 130 includes, but is not limited to, a keyboard, a mouse, a camera, a microphone, or a touch device. The output device 140 is used to output instructions or data, and the output device 140 includes, but is not limited to, a display device, a speaker, and the like. In the embodiment of the present disclosure, the input device 130 may be a temperature sensor for acquiring an operation temperature of the terminal. The output device 140 may be a speaker for outputting audio signals.
In addition, those skilled in the art will appreciate that the configuration of the terminal illustrated in the above-described figures does not constitute a limitation of the terminal, and the terminal may include more or less components than illustrated, or may combine certain components, or may have a different arrangement of components. For example, the terminal further includes components such as a radio frequency circuit, an input unit, a sensor, an audio circuit, a wireless fidelity (wireless fidelity, WIFI) module, a power supply, a bluetooth module, and the like, which are not described herein again.
In the embodiment of the present specification, the execution subject of each step may be the terminal described above. Optionally, the execution subject of each step is an operating system of the terminal. The operating system may be an android system, an IOS system, or other operating systems, which embodiments of the present specification are not limited to.
In the vehicle of fig. 7, the processor 110 may be configured to invoke programs stored in the memory 120 and execute to implement the software test processing methods as described in the various method embodiments of the present specification.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory, a random access memory, or the like.
The foregoing disclosure is only illustrative of the preferred embodiments of the present invention and is not to be construed as limiting the scope of the claims, which follow the meaning of the claims of the present invention.

Claims (10)

1. A method of software testing processing, the method comprising:
determining measurement calibration software for vehicle-mounted application on equipment to be tested, wherein the vehicle-mounted application is application software developed based on a vehicle-mounted software development platform, and the vehicle-mounted software development platform supports a target service communication protocol;
and controlling the measurement calibration software to develop and test the vehicle-mounted application on the equipment to be tested through the target service communication protocol.
2. The method of claim 1, wherein controlling the measurement calibration software via the target service communication protocol to develop test the onboard application on the device under test comprises:
controlling the measurement calibration software to read a calibration observation data description file, and transmitting the calibration observation data description file to the equipment to be tested by adopting the target service communication protocol so that the equipment to be tested writes the calibration observation data description file into the vehicle-mounted application to perform data calibration processing and/or data observation processing, wherein the calibration observation data description file is a data description file corresponding to the observed quantity and/or the calibration quantity set for the vehicle-mounted application; and/or the number of the groups of groups,
And controlling the measurement calibration software to read the calibration observation data stored for the vehicle-mounted application from the device to be measured through the target service communication protocol, and carrying out data calibration processing and/or data observation processing based on the calibration observation data, wherein the calibration observation data is a parameter corresponding to the observed quantity and/or the calibration quantity of the vehicle-mounted application.
3. The method of claim 1, wherein prior to determining measurement calibration software for an in-vehicle application on a device under test, further comprising:
determining a vehicle-mounted software development platform corresponding to a vehicle-mounted application on a device to be tested, and acquiring a target service communication protocol configured by the vehicle-mounted software development platform;
and configuring measurement calibration software for the vehicle-mounted application based on the target service communication protocol.
4. A method according to claim 3, wherein said configuring measurement calibration software for said vehicle-mounted application based on said target service communication protocol comprises:
creating an upper computer client interface aiming at vehicle-mounted application based on the CANoe platform;
establishing communication connection between the client interface of the host computer and vehicle-mounted application on the equipment to be tested by using the target service communication protocol in the CANoe platform;
And setting the data communication mode of the measurement calibration software as a file communication mode by taking the client interface of the host computer as the measurement calibration software for vehicle-mounted application.
5. The method of claim 2, wherein prior to controlling the measurement calibration software to read the calibration observation data description file, further comprising:
and acquiring the calibration observed quantity data input for the vehicle-mounted application through the measurement calibration software, and generating a calibration observed data description file containing the calibration observed quantity data.
6. The method of claim 5, wherein generating the calibration observation data description file containing the calibration observation data comprises:
and generating a calibration observation data description file containing the calibration observation data based on an ARXML file format.
7. The method according to claim 2, wherein the transmitting the calibration observation data description file to the device under test using the target service communication protocol, so that the device under test writes the calibration observation data description file into the vehicle-mounted application for data calibration processing and/or data observation processing, includes:
Determining a data communication mode corresponding to the measurement calibration software;
if the data communication mode is a file communication mode, the target service communication protocol is adopted to transmit the calibration observation data description file to the equipment to be tested through the measurement calibration software, and data in the calibration observation data description file is written into the vehicle-mounted application on the equipment to be tested through a Set method so as to perform data calibration processing and/or data observation processing on the vehicle-mounted application.
8. The method of claim 2, wherein the controlling the measurement calibration software to read calibration observation data stored for the vehicle-mounted application from the device under test via the target service communication protocol comprises:
determining a data communication mode corresponding to the measurement calibration software;
if the data communication mode is a file communication mode, based on a Get method and/or a Notification method, the calibration observation data stored for the vehicle-mounted application is read from the device to be tested by the measurement calibration software through the target service communication protocol.
9. The method according to any one of claims 1 to 8, wherein the vehicle software development platform is an active auto sar platform and the target service communication protocol is a SOMEIP/DDS protocol.
10. A data processing apparatus, the apparatus comprising:
the software determining module is used for determining measurement calibration software aiming at vehicle-mounted application on the equipment to be tested, wherein the vehicle-mounted application is application software developed based on a vehicle-mounted software development platform, and the vehicle-mounted software development platform supports a target service communication protocol;
and the calibration observation module is used for controlling the measurement calibration software to develop and test the vehicle-mounted application on the equipment to be tested through the target service communication protocol.
CN202310671965.2A 2023-06-07 2023-06-07 Software test processing method and device, storage medium and vehicle Pending CN116820938A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310671965.2A CN116820938A (en) 2023-06-07 2023-06-07 Software test processing method and device, storage medium and vehicle

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310671965.2A CN116820938A (en) 2023-06-07 2023-06-07 Software test processing method and device, storage medium and vehicle

Publications (1)

Publication Number Publication Date
CN116820938A true CN116820938A (en) 2023-09-29

Family

ID=88115863

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310671965.2A Pending CN116820938A (en) 2023-06-07 2023-06-07 Software test processing method and device, storage medium and vehicle

Country Status (1)

Country Link
CN (1) CN116820938A (en)

Similar Documents

Publication Publication Date Title
CN109039824B (en) Automatic test system and method for wireless remote communication protocol of vehicle-mounted terminal
WO2022120717A1 (en) Simulation task scheduling method, execution method, simulation implementation method and device
JP6091625B2 (en) OBE, communication system, communication method and program
CN111813095A (en) Vehicle diagnosis method, device and medium
CN108563579A (en) White-box testing method, apparatus, system and storage medium
CN111352836A (en) Pressure testing method and related device
CN113268047B (en) Automobile diagnosis system and method and cloud server
JP2007246040A (en) Electronic control device, simulation device, testing device, and testing method
CN114489007A (en) Vehicle in-loop testing method, system, equipment and computer readable storage medium
CN114780326B (en) Cross-platform calibration test method, device and equipment
CN117827555A (en) Hardware-in-loop test method and device, electronic equipment and storage medium
CN104850478A (en) Method for establishing model of tested object, and virtual test method
CN116820938A (en) Software test processing method and device, storage medium and vehicle
CN109286689B (en) Information sending method and device and vehicle-mounted man-vehicle interaction terminal
CN116483693A (en) Vehicle-mounted controller software debugging method and system, electronic equipment and storage medium
CN115512459B (en) Data acquisition method, device, equipment and readable storage medium
CN116090252A (en) Matlab-based method, device, equipment and medium for automatically generating input interface model
CN111615080A (en) Application method and device of vehicle-mounted intelligent terminal, computer equipment and storage medium
CN113934198A (en) Vehicle diagnosis method, vehicle diagnosis device, electronic device, and storage medium
CN114896168A (en) Rapid debugging system, method and memory for automatic driving algorithm development
CN112464825B (en) Drawing method, device and system of automobile signal waveform and mobile terminal
CN118194492A (en) Method and device for building automobile Xil testing environment, electronic equipment and storage medium
CN116643835A (en) Scene script generation method and device, electronic equipment and storage medium
Alvear et al. VEWE: A Vehicle ECU Wireless Emulation Tool Supporting OBD-II Communication and Geopositioning
CN116089282A (en) Automobile automatic test 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