CN116383086A - Automatic test method, device, equipment and medium based on vehicle body controller - Google Patents
Automatic test method, device, equipment and medium based on vehicle body controller Download PDFInfo
- Publication number
- CN116383086A CN116383086A CN202310463746.5A CN202310463746A CN116383086A CN 116383086 A CN116383086 A CN 116383086A CN 202310463746 A CN202310463746 A CN 202310463746A CN 116383086 A CN116383086 A CN 116383086A
- Authority
- CN
- China
- Prior art keywords
- test
- vehicle body
- target
- body controller
- information
- 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
Links
- 238000010998 test method Methods 0.000 title claims abstract description 20
- 238000012360 testing method Methods 0.000 claims abstract description 298
- 238000013515 script Methods 0.000 claims abstract description 103
- 230000006870 function Effects 0.000 claims description 65
- 238000004891 communication Methods 0.000 claims description 20
- 238000004088 simulation Methods 0.000 claims description 17
- 238000004590 computer program Methods 0.000 claims description 12
- 238000011990 functional testing Methods 0.000 claims description 7
- 230000000391 smoking effect Effects 0.000 claims description 7
- 238000012423 maintenance Methods 0.000 claims description 4
- 238000000034 method Methods 0.000 abstract description 11
- 238000010586 diagram Methods 0.000 description 17
- 230000003287 optical effect Effects 0.000 description 4
- 238000012545 processing Methods 0.000 description 4
- 239000000779 smoke Substances 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 238000009434 installation Methods 0.000 description 3
- 230000005540 biological transmission Effects 0.000 description 2
- 238000012812 general test Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 239000004065 semiconductor Substances 0.000 description 2
- 238000012546 transfer Methods 0.000 description 2
- 238000012795 verification Methods 0.000 description 2
- 206010063385 Intellectualisation Diseases 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000001680 brushing effect Effects 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000013100 final test Methods 0.000 description 1
- 239000013307 optical fiber Substances 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/368—Test management for test version control, e.g. updating test cases to a new software version
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
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)
- Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)
Abstract
The invention provides an automatic test method, device, equipment and medium based on a vehicle body controller, wherein the method comprises the steps of obtaining target application version information and target test script of the vehicle body controller, sending the target application version information to the vehicle body controller, enabling the vehicle body controller to carry out version refreshing based on the target application version information, carrying out target function test on the vehicle body controller after version refreshing according to the target test script, obtaining function feedback information, and generating an automatic test report based on the function feedback information and the target test script; the invention solves the problems of getting version, writing, testing flow and completing and managing the whole life cycle of the test report of the vehicle body controller, realizes the automatic test of the whole link, reduces the testing period and improves the testing efficiency.
Description
Technical Field
The application relates to the technical field of vehicle testing, in particular to an automatic testing method, device, equipment and medium based on a vehicle body controller.
Background
With the popularization of intelligent automobiles, consumers also put forward higher, faster, safer and other requirements for automobile intellectualization. For the whole vehicle electronic and electric architecture, the domain control scheme is a popular intelligent automobile solution, and an automobile adopting the domain control architecture is generally divided into three control domains, namely a driving control domain, a cabin control domain, a vehicle body control domain and the like, wherein each domain is controlled in the domain by an independent domain controller, and the domain controllers are connected by Ethernet, so that cross-domain high-speed communication and calling are realized. The vehicle body domain controller usually adopts an embedded control system, and the general test verification steps of the embedded control system include version acquisition, manual version writing, test bench test access, test report making, long test period and low efficiency.
Content of the application
The application provides an automatic test method, device, equipment and medium based on a vehicle body controller, so as to solve the technical problems of long test period and low test efficiency.
In an embodiment of the present application, the present application provides an automated testing method based on a vehicle body controller, including: acquiring target application version information and target test scripts of a vehicle body controller; the target application version information is sent to the vehicle body controller, so that the vehicle body controller performs version refreshing based on the target application version information; performing target function test on the vehicle body controller with the version written according to the target test script to obtain function feedback information; and generating an automatic test report based on the functional feedback information and the target test script.
In an embodiment of the present application, before obtaining the target application version information and the target test script of the vehicle body controller, the automated test method based on the vehicle body controller further includes: acquiring current application version information, and preset number of application version information to be tested and test requirements; determining target application version information in each application version information to be tested according to the test requirement and the current application version information, and determining a target test script according to the test requirement and the target application version information; and sending the target application version information and the target test script to an upper computer.
In an embodiment of the present application, the sending the target application version information to the vehicle body controller includes: determining a target configuration file according to the configuration information in the target application version information; and sending the target configuration file to a vehicle body controller through a preset batch script so that the vehicle body controller performs version refreshing according to the target configuration file.
In an embodiment of the present application, performing, according to the target test script, a target function test on the vehicle body controller after version writing, including at least one of the following: if the target test script is a smoking test script, performing a function admission test on the vehicle body controller based on the smoking test script; if the target test script is a core test script, performing core function test on the vehicle body controller based on the core test script; if the target test script is a full-quantity test script, performing all function tests on the vehicle body controller based on the full-quantity test script; wherein the target functional test includes at least one of the functional admission test, the core functional test, and the all functional test.
In an embodiment of the present application, generating an automated test report based on the functional feedback information and the target test script includes: comparing the function feedback information with the prediction information to obtain comparison information; generating an automatic test report based on the comparison information and a preset report template; and the prediction information is obtained from the target test script.
In an embodiment of the present application, after generating an automated test report based on the functional feedback information and the target test script, the automated test method based on the vehicle body controller further includes: receiving the automated test report, the automated test report including a hypertext markup language report and a text report; and generating a communication application text notification according to the text report so as to carry out maintenance notification according to the communication application text notification.
In an embodiment of the present application, the present application provides an automated testing apparatus based on a vehicle body controller, wherein the automated testing apparatus based on a vehicle body controller includes: the acquisition module is used for acquiring target application version information and target test scripts of the vehicle body controller; the refreshing module is used for sending the target application version information to the vehicle body controller so that the vehicle body controller can carry out version refreshing based on the target application version information; the test module is used for carrying out target function test on the vehicle body controller after version writing according to the target test script to obtain function feedback information; and the report generation module is used for generating an automatic test report based on the functional feedback information and the target test script.
In an embodiment of the application, the automated testing device based on the vehicle body controller further includes a version management system, a cloud end, an upper computer, an information simulation card and a vehicle body controller testing rack: the version management system is used for acquiring a preset number of application version information to be tested; the cloud end is used for determining target application version information in the application version information to be tested and determining a target test script according to the target application version information; the upper computer is connected with the vehicle body controller rack through an Ethernet and used for starting version refreshing of the vehicle body controller, and is connected with the information simulation card through a universal serial bus and used for carrying out target function test based on the target test script; the information simulation card is connected with the vehicle body controller test rack through a local area network bus or a controller local area network flexible data rate bus, and is used for sending test information to the vehicle body controller test rack, receiving the function feedback information based on the target test script and sending the function feedback information to the upper computer; the vehicle body controller test bench is used for carrying out version writing on the vehicle body controller and responding to the test information to obtain the function feedback information, and sending the function feedback information to the information simulation card.
In an embodiment of the present application, there is provided an electronic device including: one or more processors; and a storage means for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the vehicle control method as described in the above embodiments.
In an embodiment of the present application, there is provided a computer-readable storage medium having stored thereon a computer program that is executed by a processor to implement the vehicle control method as described in the above embodiments.
The invention has the beneficial effects that: according to the embodiment of the application, the target application version information of the vehicle body controller is sent to the vehicle body controller, so that the vehicle body controller carries out version refreshing based on the target application version information, target function testing is carried out on the refreshed vehicle body controller according to target test scripts, function feedback information is obtained, and an automatic test report is generated based on the function feedback information and a target test framework. The method solves the problems of opening and management of the whole life cycle of the test of the vehicle body controller from version acquisition, writing, test flow and test report, realizes automatic test of the whole link, reduces the test cycle length and improves the test efficiency.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the application.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the application and together with the description, serve to explain the principles of the application. It is apparent that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained from these drawings without inventive effort for a person of ordinary skill in the art. In the drawings:
FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of embodiments of the present application may be applied;
FIG. 2 illustrates a flow diagram of an automated test method based on a body controller according to one embodiment of the present application;
FIG. 3 illustrates a flow diagram of an automated test service based on a body controller according to one embodiment of the present application;
FIG. 4 illustrates a first block diagram of an automated test equipment based on a body controller according to one embodiment of the present application;
FIG. 5 illustrates a second block diagram of an automated test equipment based on a body controller according to one embodiment of the present application;
fig. 6 shows a schematic diagram of a computer system suitable for use in implementing the electronic device of the embodiments of the present application.
Detailed Description
Further advantages and effects of the present application will be readily apparent to those skilled in the art from the disclosure in the present specification, by describing embodiments of the present application with reference to the accompanying drawings and preferred examples. The present application may be embodied or carried out in other specific embodiments, and the details of the present application may be modified or changed from various points of view and applications without departing from the spirit of the present application. It should be understood that the preferred embodiments are presented by way of illustration only and not by way of limitation to the scope of the present application.
It should be noted that, the illustrations provided in the following embodiments merely illustrate the basic concepts of the application by way of illustration, and only the components related to the application are shown in the drawings and are not drawn according to the number, shape and size of the components in actual implementation, and the form, number and proportion of the components in actual implementation may be arbitrarily changed, and the layout of the components may be more complex.
In the following description, numerous details are set forth to provide a more thorough explanation of embodiments of the present application, however, it will be apparent to one skilled in the art that embodiments of the present application may be practiced without these specific details, in other embodiments, well-known structures and devices are shown in block diagram form, rather than in detail, in order to avoid obscuring the embodiments of the present application.
Referring to fig. 1, fig. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application may be applied. As shown in fig. 1, the system architecture may include a cloud 101, a version management system 102, an upper computer 103, a signal emulation card 104, and a body controller rack 105. The upper computer 103 may be a general-purpose computer. Related technicians can acquire a preset number of application version information to be tested from the version management system 102 through the cloud 101, determine target application version information according to test requirements and current application version information, determine target test scripts according to the target application version information, and send the target application version information and the target test scripts to the upper computer 102; the upper computer 102 is used for carrying out version refreshing on the vehicle body controller based on the target test version information, the target test script is used for carrying out target function test on the vehicle body controller through the signal simulation card 104, the function feedback information is obtained, an automatic test report is generated according to the function feedback information and the target test script, and the vehicle body controller is located on the vehicle body controller rack 105.
It should be noted that, the vehicle body domain controller often adopts an embedded control system, and the general test verification steps of the embedded control system include version acquisition, manual version writing, test bench test access, test report making, long test period and low efficiency.
In order to solve the technical problems, the application provides an automatic test method, device, equipment and medium based on a vehicle body controller.
Referring to fig. 2, fig. 2 is a flow chart illustrating an automated test method based on a vehicle body controller according to one embodiment of the present application. As shown in fig. 2, in an exemplary embodiment, the automated testing method based on the vehicle body controller at least includes steps S210 to S240, which are described in detail as follows:
step S210, acquiring target application version information and target test scripts of the vehicle body controller.
In one embodiment of the present application, before the target application version information and the target test script of the vehicle body controller are acquired, the automated test method based on the vehicle body controller further includes: acquiring current application version information, and preset number of application version information to be tested and test requirements; determining target application version information in each application version information to be tested according to the test requirements and the current application version information, and determining a target test script according to the test requirements and the target application version information; and sending the target application version information and the target test script to the upper computer so that the upper computer can acquire the target application version information through the target application version information.
In one embodiment of the application, a tester logs in a pipeline management system of the cloud end, and selects a test pipeline corresponding to a vehicle body controller. The assembly line can obtain the software version information corresponding to the current vehicle body controller from the version management system, a tester selects an application version needing to be refreshed and a test strategy needing to be executed in the current test, namely a test script), and the assembly line starts to trigger after the selection is completed.
In one embodiment of the application, the cloud uses a relatively mature open source software project jenkins as a pipeline management system, and creates a pipeline for automatic testing of the vehicle body controller, namely pipeline pipline. The triggering of the assembly line is called construction, and the current triggering mode is manual and the construction is selected to start, and meanwhile, the automatic timing construction can be realized, so that the flexible selection of the application version to be tested is ensured each time. The pipeline is divided into 5 modules: version downloading, version writing, functional testing, report uploading and report notifying, the above 5 modules are serially connected to form a complete pipeline, and specific business logic in the 5 modules is realized by using shell script.
In one embodiment of the present application, a preset number of application versions to be tested are obtained from the version management platform at the build interface, for example, the preset number may be 3, that is, the latest first 3 software versions of the vehicle body controller are obtained.
In one embodiment of the present application, the test requirements include rules for determining target application version information from a plurality of application version information under test and rules for selecting a test policy, the test policy including a test script.
In one embodiment of the present application, the test strategies are collectively divided into a smoke test, a core test, and a full-scale test, each denoted by 0/1/2. The smoking test is a function admission test, i.e. it is determined by the smoking test whether the function of a vehicle body controller can be turned on, for example, for a light control test, the smoking test includes whether the light can be turned on or off. And (5) core testing. The core test is a core function test, for example, for a light control test, the core test includes a driving light switching test. The full test is a full functional test, e.g., for a light control test, the full test includes all light control test content. The target test script includes at least one of a smoke test script, a core test script, and a full-scale test script.
In one embodiment of the present application, to improve efficiency, the target application version information obtained by the pipeline management system from the version management system only includes the target application version identity, and does not include the configuration information of the target application version, that is, the installation package. The upper computer can call a version downloading interface of the version management platform to download the configuration information of the target application version to the local.
Step S220, the target application version information is sent to the vehicle body controller, so that the vehicle body controller performs version writing based on the target application version information.
In one embodiment of the present application, a target configuration file is determined according to configuration information in the target application version information; and sending the target configuration file to the vehicle body controller through a preset batch script so that the vehicle body controller performs version refreshing according to the target configuration file.
In one embodiment of the present application, the upper computer decompresses the installation package of the target application version to obtain the target configuration file. And opening the refreshing software, and directly refreshing through an Ethernet protocol. The method comprises the steps that an ini type configuration file management and refreshing configuration is obtained through a vehicle body controller, and if refreshing updating exists in an application version, the ini type configuration file is modified and refreshing is triggered to start according to a target configuration file through a bat type preset batch script. The version refreshing tool is divided into a hardware tool and a software tool, and the traditional manual refreshing needs to connect the refreshing hardware with a vehicle body controller, so that hardware refreshing is not needed in the embodiment, and automatic target application version refreshing is realized.
In one embodiment of the application, the progress of the writing of the version writing can be reported to a pipeline management system of the cloud through a communication service of the upper computer, so that the pipeline can see the progress of the writing of the version writing.
And step S230, performing target function test on the vehicle body controller with the updated version according to the target test script to obtain function feedback information.
In one embodiment of the present application, a target function test is performed on a vehicle body controller after version writing according to a target test framework, including at least one of the following: if the target test script is a smoke test script, performing function admission test on the vehicle body controller based on the smoke test script; if the target test script is a core test script, performing core function test on the vehicle body controller based on the core test script; if the target test script is a full-quantity test script, performing full-function test on the vehicle body controller based on the full-quantity test script; wherein the target function test includes at least one of a function admission test, a core function test, and a full function test.
In one embodiment of the present application, the test script is managed by the host computer, and in the foregoing, we have selected the test strategy, and 0/1/2 represents different test orders respectively, and different test scripts will be executed. The target test script is called through the automatic test framework, the additional parameters (the test magnitude of 0/1/2) during the calling are supported, and the automatic test framework executes different test scripts according to the additional parameters.
In one embodiment of the application, when an automatic test is performed, the signal simulation card generates test information, namely an analog test signal, according to a target test script, and sends the test information to the vehicle body controller, the vehicle body controller performs functional response according to the analog test signal, generates a functional feedback signal, and sends the functional feedback signal to the upper computer through the signal simulation card to obtain the functional feedback information.
In one embodiment of the present application, the automated test framework is typically the python language, and the primary function is to automatically test the data distribution service (Data Distribution Service, DDS) interface of the body controller. An environment for automatic testing, such as a python installation environment, is deployed in advance on an upper computer.
Step S240, an automated test report is generated based on the functional feedback information and the target test script.
In one embodiment of the present application, generating an automated test report based on functional feedback information and a target test script includes: comparing the function feedback information with the prediction information to obtain comparison information; generating an automatic test report based on the comparison information and a preset report template; the prediction information is obtained by the target test script.
In one embodiment of the present application, an automated test report is generated based on the comparison information and the preset report template, i.e., the automated test report is generated by the automated test framework and the comparison information. And storing the automatic test report locally, and uploading the automatic test report to a pipeline management system of the cloud by the upper computer. After uploading, an accessible link is returned through which the automated test report can be viewed.
In one embodiment of the present application, an automated test report is received, the automated test report including a hypertext markup language report and a text report; and generating a communication application text notification according to the text report so as to carry out maintenance notification according to the communication application text notification.
In one embodiment of the present application, the automated test report includes both a hypertext markup language html report and a text json report. Communication application text notifications include, but are not limited to, weChat text and mail text. For example, the cloud end sends the communication application text notification to a preset notification device through a notification interface opened by WeChat and/or an automatic mail sending mode, and maintains the notification to the related party according to the communication application text notification. The communication application text notification includes, but is not limited to, the build results of each step of the pipeline and the final test summary including, but not limited to, use case count, success rate, etc., and the mail notification may include links to html reports.
In one embodiment of the present application, referring to fig. 3, fig. 3 shows a schematic flow diagram of an automated test service based on a vehicle body controller according to one embodiment of the present application. As shown in fig. 3, the test cloud (i.e., cloud), the host computer, and the test rack (i.e., body controller rack). In the test cloud, a flush version is selected: determining target application version information according to the test requirements and the application version information to be tested; selecting a testing strategy: and determining a target test script according to the test requirement and the target application version information, and sending the target application version information and the target test script to the upper computer. In the upper computer, downloading the target version: downloading the version information of the target application; version brush writing: version refreshing is carried out on the vehicle body controller according to the version information of the target application; calling an automation test framework to execute a script: calling a target test script through an automatic test framework to perform target function test on the vehicle body controller, so as to obtain function feedback information; generating a report: the automatic test framework generates an automatic test report based on the functional feedback information; report upload: and uploading the automated test report to a test cloud. In the test bench, version upgrade: receiving version brush writing; the tested system comprises: and generating an analog test signal according to the target test script through the signal simulation card, performing functional response by the vehicle body controller according to the analog test signal, generating a functional feedback signal, and sending the functional feedback signal to the upper computer through the signal simulation card to obtain functional feedback information. In the test cloud, report parsing: generating a communication application text notification according to the automatic test report; mail or WeChat notification: and sending the communication application text notification to preset notification equipment to carry out maintenance notification.
Referring to fig. 4, fig. 4 shows a first block diagram of an automated test equipment based on a body controller according to one embodiment of the present application. The apparatus may be applied to the implementation environment shown in fig. 1, and is specifically configured in the upper computer 103. The apparatus may also be adapted to other exemplary implementation environments and may be specifically configured in other devices, and the present embodiment is not limited to the implementation environments to which the apparatus is adapted.
As shown in fig. 4, the exemplary vehicle body controller-based automated test equipment 400 includes: an acquisition module 401, a brushing module 402, a testing module 403, and a report generation module 404.
The acquiring module 401 is configured to acquire target application version information and a target test script of the vehicle body controller; the flashing module 402 is configured to send the target application version information to the vehicle body controller, so that the vehicle body controller performs version flashing based on the target application version information; the test module 403 is configured to perform a target function test on the vehicle body controller after version writing according to the target test script, so as to obtain function feedback information; the report generation module 404 is configured to generate an automated test report based on the functional feedback information and the target test script.
Referring to fig. 5, fig. 5 shows a second block diagram of an automated test equipment based on a body controller according to one embodiment of the present application. The device may be applied to the implementation environment shown in fig. 1. The apparatus may also be adapted to other exemplary implementation environments and may be specifically configured in other devices, and the present embodiment is not limited to the implementation environments to which the apparatus is adapted.
As shown in fig. 5, the exemplary vehicle body controller-based automated test apparatus includes: version management system 510, cloud 520, host computer 530, signal emulation card 540, and body controller rack 550.
The version management system 510 is configured to obtain version information of a preset number of applications to be tested; the cloud 520 is configured to determine target application version information from the application version information to be tested, and determine a target test script according to the target application version information; the upper computer 530 is connected with the vehicle body controller rack through the Ethernet and is used for starting version refreshing of the vehicle body controller, and the upper computer is connected with the information simulation card through the universal serial bus and is used for carrying out target function test based on the target test script; the information simulation card 540 is connected with the vehicle body controller test rack through a local area network bus or a controller local area network flexible data rate bus, and is used for sending test information and receiving function feedback information to the vehicle body controller test rack based on a target test script, and sending the function feedback information to the upper computer; the vehicle body controller test bench 550 is used for performing version writing and responding to test information on the vehicle body controller to obtain function feedback information, and sending the function feedback information to the information simulation card.
In one embodiment of the present application, please continue to refer to fig. 5, fig. 5 shows a second block diagram of an automated test equipment based on a vehicle body controller according to one embodiment of the present application. As shown in fig. 5, the information transmission modes of the cloud 520 and the upper computer 530 include socket and hypertext transfer http protocol; the information transmission modes of the version management system 510 and the upper computer comprise hypertext transfer http protocol; the upper computer 530 is connected with the vehicle body controller rack 550 through an Ethernet ETH, and the upper computer 530 is connected with the signal simulation card 540 through a universal serial bus USB; the signal emulation card 540 and the body controller rack 530 are connected by a local interconnect LIN bus or controller area network flexible data rate CANFD bus. The host computer 530 further includes a host communication service 531, a version download 532, an automation framework driver 533, a version flush & version read 534, and a data upload 535. The upper computer communication service 531 is used for transmitting information; version download 532 is used to download the target application version information; the automation frame driver 533 is configured to invoke a target test script through the automation test frame to perform a target function test on the vehicle body controller; version flush & version read 534 is used to target application version flush for the body controller; the data upload 535 is used to upload the progress of the swipe and upload the automated test report.
It should be noted that, the automatic test device based on the vehicle body controller provided in the foregoing embodiment and the automatic test method based on the vehicle body controller provided in the foregoing embodiment belong to the same concept, and the specific manner in which each module and unit perform the operation has been described in detail in the method embodiment, which is not repeated herein. In practical application, the automatic test device based on the vehicle body controller provided in the above embodiment may allocate the functions to different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above, which is not limited herein.
The embodiment of the application also provides electronic equipment, which comprises: one or more processors; and a storage device for storing one or more programs, which when executed by the one or more processors, cause the electronic device to implement the automated vehicle body controller-based test method provided in the above embodiments.
Referring to fig. 6, fig. 6 shows a schematic diagram of a computer system suitable for implementing the electronic device of the embodiments of the present application. It should be noted that, the computer system 600 of the electronic device shown in fig. 6 is only an example, and should not impose any limitation on the functions and the application scope of the embodiments of the present application.
As shown in fig. 6, the computer system 600 includes a central processing unit (Central Processing Unit, CPU) 601, which can perform various appropriate actions and processes according to a program stored in a Read-only memory (ROM) 602 or a program loaded from a storage section 608 into a random access memory (Random Access Memory, RAM) 603, for example, performing the method described in the above embodiment. In the RAM 603, various programs and data required for system operation are also stored. The CPU 601, ROM 602, and RAM 603 are connected to each other through a bus 604. An Input/Output (I/O) interface 605 is also connected to bus 604.
The following components are connected to the I/O interface 605: an input portion 606 including a keyboard, mouse, etc.; an output portion 607 including a Cathode Ray Tube (CRT), a liquid crystal display (Liquid Crystal Display, LCD), and a speaker, etc.; a storage section 608 including a hard disk and the like; and a communication section 609 including a network interface card such as a LAN (Local AreaNetwork ) card, a modem, or the like. The communication section 609 performs communication processing via a network such as the internet. The drive 610 is also connected to the I/O interface 605 as needed. Removable media 611 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, or the like is installed as needed on drive 610 so that a computer program read therefrom is installed as needed into storage section 608.
According to embodiments of the present application, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising a computer program for performing the method shown in the flowchart. In such an embodiment, the computer program may be downloaded and installed from a network through the communication portion 609, and/or installed from the removable medium 611. When executed by a Central Processing Unit (CPU) 601, performs the various functions defined in the system of the present application.
It should be noted that, the computer readable medium shown in the embodiments of the present application may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium may be, for example, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-Only Memory (ROM), an erasable programmable read-Only Memory (Erasable Programmable Read Only Memory, EPROM), flash Memory, an optical fiber, a portable compact disc read-Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present application, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with a computer-readable computer program embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. A computer program embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Where each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present application may be implemented by means of software, or may be implemented by means of hardware, and the described units may also be provided in a processor. Wherein the names of the units do not constitute a limitation of the units themselves in some cases.
Another aspect of the present application also provides a computer-readable storage medium having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the automated vehicle body controller-based test method provided in the above embodiments. The computer-readable storage medium may be included in the electronic device described in the above embodiment or may exist alone without being incorporated in the electronic device.
The above embodiments are merely illustrative of the principles of the present application and its effectiveness and are not intended to limit the present application. Modifications and variations may be made to the above-described embodiments by those of ordinary skill in the art without departing from the spirit and scope of the present application. It is therefore contemplated that the appended claims will cover all such equivalent modifications and changes as fall within the true spirit and scope of the disclosure.
Claims (10)
1. An automatic test method based on a vehicle body controller is characterized by comprising the following steps of:
acquiring target application version information and target test scripts of a vehicle body controller;
the target application version information is sent to the vehicle body controller, so that the vehicle body controller performs version refreshing based on the target application version information;
performing target function test on the vehicle body controller with the version written according to the target test script to obtain function feedback information;
and generating an automatic test report based on the functional feedback information and the target test script.
2. The automated test method of claim 1, wherein prior to obtaining the target application version information and the target test script for the vehicle body controller, the automated test method further comprises:
acquiring current application version information, and preset number of application version information to be tested and test requirements;
determining target application version information in each application version information to be tested according to the test requirement and the current application version information, and determining a target test script according to the test requirement and the target application version information;
and sending the target application version information and the target test script to an upper computer.
3. The automated vehicle body controller-based testing method of claim 2, wherein transmitting the target application version information to the vehicle body controller comprises:
determining a target configuration file according to the configuration information in the target application version information;
and sending the target configuration file to a vehicle body controller through a preset batch script so that the vehicle body controller performs version refreshing according to the target configuration file.
4. The automated vehicle body controller-based testing method of claim 3, wherein performing a target function test on the version-brushed vehicle body controller according to the target test script comprises at least one of:
if the target test script is a smoking test script, performing a function admission test on the vehicle body controller based on the smoking test script;
if the target test script is a core test script, performing core function test on the vehicle body controller based on the core test script;
if the target test script is a full-quantity test script, performing all function tests on the vehicle body controller based on the full-quantity test script;
wherein the target functional test includes at least one of the functional admission test, the core functional test, and the all functional test.
5. The vehicle body controller-based automated test method of any of claims 1-4, wherein generating an automated test report based on the functional feedback information and the target test script comprises:
comparing the function feedback information with the prediction information to obtain comparison information;
generating an automatic test report based on the comparison information and a preset report template;
and the prediction information is obtained from the target test script.
6. The automated test method of claim 5, wherein after generating an automated test report based on the functional feedback information and the target test script, the automated test method further comprises:
receiving the automated test report, the automated test report including a hypertext markup language report and a text report;
and generating a communication application text notification according to the text report so as to carry out maintenance notification according to the communication application text notification.
7. An automated testing device based on a vehicle body controller, characterized in that the automated testing device based on a vehicle body controller comprises:
the acquisition module is used for acquiring target application version information and target test scripts of the vehicle body controller;
the refreshing module is used for sending the target application version information to the vehicle body controller so that the vehicle body controller can carry out version refreshing based on the target application version information;
the test module is used for carrying out target function test on the vehicle body controller after version writing according to the target test script to obtain function feedback information;
and the report generation module is used for generating an automatic test report based on the functional feedback information and the target test script.
8. The automated test equipment based on the vehicle body controller according to claim 7, further comprising a version management system, a cloud, an upper computer, an information simulation card and a vehicle body controller test bench:
the version management system is used for acquiring a preset number of application version information to be tested;
the cloud end is used for determining target application version information in the application version information to be tested and determining a target test script according to the target application version information;
the upper computer is connected with the vehicle body controller rack through an Ethernet and used for starting version refreshing of the vehicle body controller, and is connected with the information simulation card through a universal serial bus and used for carrying out target function test based on the target test script;
the information simulation card is connected with the vehicle body controller test rack through a local area network bus or a controller local area network flexible data rate bus, and is used for sending test information to the vehicle body controller test rack, receiving the function feedback information based on the target test script and sending the function feedback information to the upper computer;
the vehicle body controller test bench is used for carrying out version writing on the vehicle body controller and responding to the test information to obtain the function feedback information, and sending the function feedback information to the information simulation card.
9. An electronic device, the electronic device comprising:
one or more processors;
storage means for storing one or more programs that, when executed by the one or more processors, cause the electronic device to implement the automated vehicle body controller-based testing method of any one of claims 1 to 6.
10. A computer-readable storage medium, having stored thereon a computer program which, when executed by a processor of a computer, causes the computer to perform the automated vehicle body controller-based test method of any one of claims 1 to 6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310463746.5A CN116383086A (en) | 2023-04-26 | 2023-04-26 | Automatic test method, device, equipment and medium based on vehicle body controller |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310463746.5A CN116383086A (en) | 2023-04-26 | 2023-04-26 | Automatic test method, device, equipment and medium based on vehicle body controller |
Publications (1)
Publication Number | Publication Date |
---|---|
CN116383086A true CN116383086A (en) | 2023-07-04 |
Family
ID=86969388
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310463746.5A Pending CN116383086A (en) | 2023-04-26 | 2023-04-26 | Automatic test method, device, equipment and medium based on vehicle body controller |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN116383086A (en) |
-
2023
- 2023-04-26 CN CN202310463746.5A patent/CN116383086A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109039824B (en) | Automatic test system and method for wireless remote communication protocol of vehicle-mounted terminal | |
CN107608901B (en) | Jmeter-based testing method and device, storage medium and electronic equipment | |
CN109460396B (en) | Model processing method and device, storage medium and electronic equipment | |
CN109740222A (en) | A kind of test device and system for grid motor connectionization scene | |
CN111786939B (en) | Method, device and system for testing management platform of Internet of things | |
CN112631919A (en) | Comparison test method and device, computer equipment and storage medium | |
CN115225537A (en) | Test method and device for vehicle networking controller, computer and storage medium | |
CN115268964A (en) | Data reinjection method and system, electronic device and readable storage medium | |
CN112860559B (en) | Upgrade test system and method | |
CN114510421A (en) | Test method, test device, chip and module equipment | |
CN116383086A (en) | Automatic test method, device, equipment and medium based on vehicle body controller | |
CN116418706A (en) | Automatic test method, device and equipment for protocol conversion and storage medium | |
CN111162973A (en) | Data flow acquisition method and device, electronic equipment and medium | |
CN116302034A (en) | Processing method, device, equipment and medium for software release | |
CN107562629B (en) | Method and device for testing | |
CN116126710A (en) | Vehicle-mounted software simulation method, device, equipment and medium | |
CN116483693A (en) | Vehicle-mounted controller software debugging method and system, electronic equipment and storage medium | |
CN116203922A (en) | Automobile controller fault diagnosis method, device, equipment and storage medium | |
CN115114250A (en) | Log storage method and system, electronic equipment and storage medium | |
CN113341767A (en) | Method, system and computer readable storage medium for automated testing | |
CN115811488A (en) | Internet of vehicles multi-protocol testing system and method | |
CN115964212A (en) | Data simulation test method, system, device and medium | |
CN115426386B (en) | Abandoned equipment activation method and device based on Internet of vehicles, electronic equipment and storage medium | |
CN115729218B (en) | Model test method, device, equipment and medium for various gear shifting modes | |
CN113419966A (en) | Pressure measurement method and device based on Jmeter thread |
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 |