CN115437912A - Test method and device for vehicle electric detection system - Google Patents

Test method and device for vehicle electric detection system Download PDF

Info

Publication number
CN115437912A
CN115437912A CN202111453770.8A CN202111453770A CN115437912A CN 115437912 A CN115437912 A CN 115437912A CN 202111453770 A CN202111453770 A CN 202111453770A CN 115437912 A CN115437912 A CN 115437912A
Authority
CN
China
Prior art keywords
electric detection
message
information
electric
electrical inspection
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
CN202111453770.8A
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.)
Beijing Co Wheels Technology Co Ltd
Original Assignee
Beijing Co Wheels Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Co Wheels Technology Co Ltd filed Critical Beijing Co Wheels Technology Co Ltd
Priority to CN202111453770.8A priority Critical patent/CN115437912A/en
Publication of CN115437912A publication Critical patent/CN115437912A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3696Methods or tools to render software testable

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 And Monitoring For Control Systems (AREA)

Abstract

The application provides a test method and a test device for a vehicle electrical inspection system, and relates to the technical field of vehicle detection. The method comprises the following steps: acquiring a test case, and sending an electrical inspection instruction to a vehicle electrical inspection system based on the test case; monitoring an electric detection message, wherein the electric detection message is generated by an electric detection system based on an electric detection instruction; and responding to the monitoring of the electric detection message, and generating a test result of the electric detection system based on the test case and the electric detection message. In the application, the automated diagnosis and simulation can be carried out on the electric inspection system of the vehicle, the complex flow is avoided, the human resources are saved, and the electric inspection cost is reduced.

Description

Test method and device for vehicle electric detection system
Technical Field
The application relates to the technical field of vehicle detection, in particular to a test method and a test device of a vehicle electrical detection system.
Background
In the related art, when an End of Line (EOL) system test is performed on a vehicle, a Controller Area Network (CAN) bus communication Network device is generally used to manually edit a CAN according to different electrical inspection functions, so as to perform simulation and test of a Universal Diagnostic Service (UDS). The method cannot utilize the existing tools to carry out extensive programming and development, needs to manually configure complex response message data, is complicated in compiling process, long in time consumption and difficult to maintain, so that how to carry out automatic diagnosis and simulation on the electric inspection system of the vehicle avoids the complicated process, saves human resources and reduces the electric inspection cost becomes one of important research directions.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art. An embodiment of a first aspect of the present application provides a method for testing a vehicle electrical inspection system, which is executed by an upper computer, and includes:
acquiring a test case, and sending an electrical inspection instruction to a vehicle electrical inspection system based on the test case;
monitoring an electric detection message, wherein the electric detection message is generated by an electric detection system based on an electric detection instruction;
and responding to the monitored electric detection message, and generating a test result of the electric detection system based on the test case and the electric detection message.
In the embodiment of the application, the automatic diagnosis and simulation can be carried out on the electric detection system of the vehicle, so that a complex flow is avoided, human resources are saved, and the electric detection cost is reduced.
The embodiment of the second aspect of the present application provides a testing apparatus for a vehicle electrical inspection system, including:
the sending module is used for acquiring the test case and sending an electric detection instruction to the vehicle electric detection system based on the test case;
the monitoring module is used for monitoring the electric detection message, and the electric detection message is generated by the electric detection system based on the electric detection instruction;
and the generating module is used for responding to the monitoring of the electric detection message and generating a test result of the electric detection system based on the test case and the electric detection message.
An embodiment of a third aspect of the present application provides an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform the method of testing the vehicle electrical inspection system provided in the embodiments of the first aspect of the present application.
An embodiment of a fourth aspect of the present application provides a computer-readable storage medium, on which computer instructions are stored, where the computer instructions are used to cause a computer to execute the test method of the vehicle electrical inspection system provided in the embodiment of the first aspect of the present application.
To achieve the above object, an embodiment of a fifth aspect of the present application provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the method for testing the vehicle electrical inspection system provided in the embodiment of the first aspect of the present application.
Drawings
FIG. 1 is a flow chart of a method for testing a vehicle electrical inspection system according to one embodiment of the present application;
FIG. 2 is a flow chart of a method for testing a vehicle electrical inspection system according to one embodiment of the present application;
FIG. 3 is a schematic diagram of a testing method of a vehicle electrical inspection system according to an embodiment of the present application;
FIG. 4 is a flow chart of a method for testing a vehicle electrical inspection system according to one embodiment of the present application;
FIG. 5 is a flow chart of a method for testing a vehicle electrical inspection system according to one embodiment of the present application;
FIG. 6 is a block diagram of a test model of a vehicle electrical inspection system according to one embodiment of the present application;
fig. 7 is a block diagram illustrating a test apparatus of a vehicle electrical inspection system according to an embodiment of the present application;
FIG. 8 is a schematic view of a test system of the vehicle electrical inspection system of one embodiment of the present application;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
The following describes a test method and a device of a vehicle electrical inspection system according to an embodiment of the present application with reference to the accompanying drawings.
Fig. 1 is a flowchart of a testing method of a vehicle electrical inspection system according to an embodiment of the present application, and as shown in fig. 1, the method is executed by an upper computer and includes the following steps:
s101, obtaining a test case, and sending an electric inspection instruction to a vehicle electric inspection system based on the test case.
In the embodiment of the application, the test case is description of a test task of the electrical inspection system, the test case is a document comprising an electrical inspection target, a test environment, test steps, expected information, a test script and the like, and the test case can be used for verifying whether the electrical inspection system meets the use requirement.
In some implementations, the upper computer generates the electrical inspection request based on the test case, and then generates the electrical inspection instruction according to the electrical inspection request and sends the electrical inspection instruction to the controller of the electrical inspection system.
Optionally, the electric test indication is used to instruct the electric test system to start electric test. Optionally, in this embodiment of the present application, the controller of the electrical inspection system may be an eXtended domain Control Unit (XCU).
S102, monitoring the electric detection message, wherein the electric detection message is generated by the electric detection system based on the electric detection indication.
In some implementations, the electrical inspection system starts electrical inspection and acquires an electrical inspection message based on the electrical inspection instruction, and after the electrical inspection message is acquired, the electrical inspection message is sent to a Controller Area Network (CAN) bus, and the upper computer monitors the CAN bus.
Optionally, the identification information may be an identification number of the electrical examination target, and optionally, the identification information may also be a unique serial number allocated to the electrical examination target by the upper computer.
S103, responding to the electric detection message, and generating a test result of the electric detection system based on the test case and the electric detection message.
In some implementations, the upper computer monitors the electrical inspection message corresponding to the identification information of the electrical inspection target on the CAN bus, analyzes the electrical inspection message based on the test case, judges whether the content of the electrical inspection message conforms to the expected information of the test case, and judges whether the information interaction between the upper computer and the electrical inspection system conforms to the test step of the test case, thereby generating the test result of the electrical inspection system.
In some implementations, the upper computer monitors the electrical detection message corresponding to the identification information of the electrical detection target on the CAN bus, and the upper computer CAN generate a response message of the electrical detection target based on the test case and the electrical detection message, automatically respond to the electrical detection system, and further generate a test result of the electrical detection system according to the response message.
In the embodiment of the application, the test case is obtained, and the electric test instruction is sent to the vehicle electric test system based on the test case; monitoring an electric detection message, wherein the electric detection message is generated by an electric detection system based on an electric detection instruction; and responding to the monitored electric detection message, and generating a test result of the electric detection system based on the test case and the electric detection message. In the application, the automated diagnosis and simulation can be carried out on the electric inspection system of the vehicle, the complex flow is avoided, the human resources are saved, and the electric inspection cost is reduced.
Fig. 2 is a flowchart of a testing method of a vehicle electrical inspection system according to an embodiment of the present application, and as shown in fig. 2, the method is executed by an upper computer and includes the following steps:
s201, obtaining a test case, and sending an electric inspection instruction to a vehicle electric inspection system based on the test case.
S202, the electric detection messages are monitored, and the electric detection messages are obtained by the electric detection system based on the electric detection instructions.
For the related descriptions of step S201 and step S202, reference may be made to the contents in the foregoing embodiments, and details are not described here.
S203, responding to the electric detection message, and generating a response message of the electric detection message based on the electric detection message and the test case.
In some implementations, the upper computer may obtain a diagnostic matrix configuration file, where the diagnostic matrix configuration file includes an Electronic Control Unit (ECU) -CAN matrix relationship, and the upper computer obtains coping strategies indicated by different electrical tests in the current test environment based on the diagnostic matrix configuration file, the test cases, and a preset response logic relationship, and further generates a response message of the electrical test target according to the coping strategies and the target electrical test message, so as to automatically respond to the electrical test system. For example, if the vehicle speed needs to be detected, the electrical detection message may include data such as a wheel speed and a tire rolling radius, and the upper computer processes the data according to a coping strategy to generate a response message for detecting the vehicle speed.
And S204, generating a test result of the electric inspection system based on the test case and the response message.
Optionally, the upper computer sends the response message to the electrical inspection system, the electrical inspection system analyzes the response message and generates an electrical inspection result, the upper computer performs local inspection on the electrical inspection system to obtain the electrical inspection result, in some implementations, the upper computer generates an expected result according to the response message and the test case, and matches the electrical inspection result with the expected result to obtain the test result of the electrical inspection system. Optionally, in response to the electrical detection result being consistent with the expected result, the test result of the electrical detection system is determined to be normal, and in response to the electrical detection result not being consistent with the expected result, the test result of the electrical detection system is determined to be abnormal. For example, when detecting the vehicle speed, the electrical detection system obtains the first vehicle speed V as the electrical detection result 1 =40km/h, the upper computer generates the expected result as the second vehicle speed V 2 And =40km/h, the test result of the electric detection system is determined to be normal.
Optionally, if the test result of the electrical inspection system is abnormal, the relevant contents of the above steps may be repeated, the electrical inspection system is again electrically inspected, and if the test result is still abnormal, the electrical inspection system is adjusted according to the detection result.
In the embodiment of the application, the response message of the electric detection message is generated based on the electric detection message and the test case, and the test result of the electric detection system is generated based on the test case and the response message. The embodiment of the application can automatically diagnose and simulate the electric inspection system of the vehicle, avoids complex processes, saves human resources, can realize complex simulation response logic, improves the electric inspection efficiency and accuracy and reduces the electric inspection cost.
In some implementations, in order to improve the electrical inspection efficiency, two threads CAN be started simultaneously in the electrical inspection process, wherein one thread executes a test case, for example, the test case is loaded, and a response message is generated based on the test case and an intercepted target electrical inspection message on the CAN bus; the other thread is used for transmitting data and/or information generated in the electric detection process with the electric detection system, for example, sending an electric detection instruction to the electric detection system. As shown in fig. 3, the upper computer triggers the electrical inspection, sends an electrical inspection instruction to the electrical inspection system, the electrical inspection system generates an electrical inspection instruction according to the electrical inspection instruction, that is, an electrical inspection Message is sent on the CAN BUS, the upper computer obtains the electrical inspection Message through BUS Message Collection and transmission Equipment (BMCSE), automatically responds to the electrical inspection Message, sends the response Message to the electrical inspection system, the electrical inspection system generates an electrical inspection result based on the response Message, the upper computer obtains an expected result according to the response Message, compares the electrical inspection result with the expected result, and generates a test result of the electrical inspection system.
Fig. 4 is a flowchart of a testing method of a vehicle electrical inspection system according to an embodiment of the present application, and as shown in fig. 4, the method includes the following steps:
s401, obtaining a test case, and sending an electrical inspection instruction to a vehicle electrical inspection system based on the test case.
S402, monitoring the electric detection message, wherein the electric detection message is generated by the electric detection system based on the electric detection indication.
And S403, responding to the electric detection message, and generating a response message of the electric detection message based on the electric detection message and the test case.
For the related descriptions of step S401, step S402, and step S403, reference may be made to the contents in the foregoing embodiments, and details are not repeated here.
S404, first check information is generated based on the response message.
In some implementations, the upper computer analyzes the response message to generate an expected result, and acquires the first verification information by combining the interaction information between the upper computer and the electric inspection system. Optionally, the first verification information may be a first detection log of the upper computer, and the first detection log includes interactive information between the upper computer and the electric inspection system and a transceiving operation process of the interactive information.
S405, receiving second check information sent by the electric detection system, wherein the second check information is generated by the electric detection system according to the response message.
In some implementations, the upper computer sends the response message to the electrical inspection system, and the electrical inspection system parses the received response message to generate an electrical inspection result, and acquires second check information in combination with interaction information between the electrical inspection system and the upper computer, where optionally, the second check information may be a second detection log of the electrical inspection system, and the second detection log includes interaction information between the electrical inspection system and the upper computer and a transceiving operation process of the interaction information.
In some implementations, the host computer performs local file detection on the electrical detection system, thereby reading second check information of the electrical detection system.
S406, verifying the first verification information and the second verification information based on the verification strategy of the test case to generate a test result of the electrical inspection system.
Optionally, the test case further includes a verification policy, that is, expected information and an assertion relationship of interaction between the upper computer and the electrical inspection system in the electrical inspection process, and in some implementations, the reference response information is extracted from the first verification information, the response information to be verified is extracted from the second verification information, and the matching condition between the response information to be verified and the reference response information is obtained based on the expected information and the assertion relationship.
Optionally, the matching condition includes a first matching condition and a second matching condition, the first matching condition of the to-be-verified response information and the reference response information is obtained based on the expected information, and the first matching condition is that the to-be-verified response information and the reference response information are received and sent correspondingly; and acquiring a second matching condition of the response information to be verified and the reference response information based on the assertion relation, wherein the second matching condition is that the contents of the response information to be verified and the reference response information are consistent.
Optionally, if the response information to be verified and the reference response information meet the matching condition, determining that the test result of the electrical inspection system is normal; and if the response information to be verified and the reference response information do not meet the matching condition, determining that the test result of the electric inspection system is abnormal.
In the embodiment of the application, first check information is generated based on the response message, second check information sent by the electrical inspection system is received, the first check information and the second check information are checked based on the check strategy of the test case, and the test result of the electrical inspection system is generated. The embodiment of the application can automatically diagnose and simulate the electric inspection system of the vehicle, avoids complex processes, saves human resources, can realize complex simulation response logic, further improves the electric inspection efficiency and accuracy and reduces the electric inspection cost.
Fig. 5 is a flowchart of a testing method of a vehicle electrical inspection system according to an embodiment of the present application, and as shown in fig. 5, the method includes the following steps:
s501, a test case is obtained.
For the related description of step S501, reference may be made to the contents in the foregoing embodiments, and details are not repeated here.
S502, generating and sending an HTTP request to the cloud server based on the test case, wherein the HTTP request is used for generating a power test instruction by the cloud server and sending the power test instruction to the power test system.
In some implementations, in order to further improve the electrical inspection accuracy, the interaction information between the upper computer and the electrical inspection system is forwarded by the cloud server, for example, when the electrical inspection instruction is sent to the electrical inspection system based on the test case, a hypertext Transfer Protocol (HTTP) request may be sent to the cloud server by the upper computer according to the test case, where the HTTP request is used for generating the electrical inspection instruction by the cloud server and sending the electrical inspection instruction to the electrical inspection system.
S503, monitoring the electric detection message, wherein the electric detection message is generated by the electric detection system based on the electric detection instruction.
S504, responding to the electric detection message, and generating a response message of the electric detection message based on the electric detection message and the test case.
And S505, generating first check information based on the response message, and sending the response message to the electric detection system.
For the related descriptions of step S503, step S504, and step S505, reference may be made to the contents in the foregoing embodiments, which are not described herein again.
S506, second check information is obtained, and the second check information is generated by the electric examination system according to the response message.
The electric detection system acquires the second check information and sends the second check information to the cloud server, and then the upper computer downloads the second check information on the cloud server.
The process of acquiring the second check information by the electrical inspection system can refer to the relevant contents in the above embodiments, and details are not described here.
And S507, verifying the first verification information and the second verification information based on the verification strategy of the test case to generate a test result of the electrical inspection system.
The content in the above embodiment can be referred to for the related description of step S507, and is not described herein again.
In the embodiment of the application, the cloud server is used for forwarding the interactive information between the upper computer and the electric detection system, so that the test result generated according to the response information also comprises the test result of the cloud server.
In some implementations, format conversion can be performed on the receiving and sending of the interactive information through the dynamic link library, so that the interactive information is converted into a uniform format, a test process of the electric examination system can call functions which do not belong to executable codes of the electric examination system, the method is beneficial to sharing data and resources, and the compatibility of automatic electric examination can be improved.
Fig. 6 is a block diagram of a test model of a vehicle electrical inspection system according to an embodiment of the present application, and as shown in fig. 6, the test model of the vehicle electrical inspection system includes a message transceiver module 610, an automatic response module 620, a test case module 630, a configuration module 640, a log processing module 650, and a test result obtaining module 660. After the electrical inspection is triggered, the message transceiver module 610 acquires an electrical inspection message from a CAN node, the automatic response module 620 calls a test case in the test case module 630, a preset logic relationship in the configuration module 640 and an ECU-CAN matrix relationship perform automatic response on the electrical inspection message to generate a first detection log, the electrical inspection system generates a second detection log according to the automatic response and sends the second detection log to the log processing module 650, the log processing module 650 filters, monitors and stores the first detection log and the second detection log, and the test result acquisition module 660 generates a detection result of the electrical inspection system according to the first detection log and the second detection log in the log processing module 650.
Fig. 7 is a block diagram of a testing apparatus of a vehicle electrical inspection system according to the present application, and as shown in fig. 7, the testing apparatus 700 of the vehicle electrical inspection system includes:
the sending module 710 is configured to obtain a test case, and send an electrical inspection instruction to the vehicle electrical inspection system based on the test case;
the monitoring module 720 is configured to monitor an electrical inspection message, where the electrical inspection message is generated by the electrical inspection system based on the electrical inspection instruction;
the generating module 730 is configured to generate a test result of the electrical inspection system based on the test case and the electrical inspection message in response to the monitoring of the electrical inspection message.
In a possible implementation manner, the generating module 730 is further configured to generate a response message of the electrical inspection message based on the electrical inspection message and the test case; and generating a test result of the electric inspection system based on the test case and the response message.
In a possible implementation manner, the generating module 730 is further configured to generate first check information based on the response packet; receiving second check information sent by the electric detection system, wherein the second check information is generated by the electric detection system according to the response message; and verifying the first verification information and the second verification information based on the verification strategy of the test case to generate a test result of the electrical inspection system.
In a possible implementation manner, the verification policy includes expected information and an assertion relationship, and the generating module 730 is further configured to: extracting reference response information from the first check information, and extracting response information to be verified from the second check information; and verifying the reference response information and the response information to be verified based on the expected information and the assertion relation to generate a test result of the electric detection system.
In a possible implementation manner, the generating module 730 is further configured to obtain a matching condition between the response information to be verified and the reference response information based on the expected information and the assertion relationship; in response to the response information to be verified and the reference response information meeting the matching condition, determining that the test result of the electric inspection system is normal; and determining that the test result of the electric detection system is abnormal in response to the response information to be verified and the reference response information not meeting the matching condition.
In a possible implementation manner, the generating module 730 is further configured to obtain a first matching condition of the to-be-verified response information and the reference response information based on the expected information, where the first matching condition is that the receiving and sending of the to-be-verified response information and the reference response information correspond to each other; and acquiring a second matching condition of the to-be-verified response information and the reference response information based on the assertion relation, wherein the second matching condition is that the contents of the to-be-verified response information and the reference response information are consistent.
In a possible implementation manner, the testing apparatus 700 for the vehicle electrical inspection system further includes a filtering module 740, configured to perform format conversion on the interaction information between the upper computer and the electrical inspection system through the dynamic link library.
The embodiment of the application can automatically diagnose and simulate the electric inspection system of the vehicle, avoids complex processes, saves human resources, can realize complex simulation response logic, further improves the electric inspection efficiency and accuracy and reduces the electric inspection cost.
Fig. 8 is a schematic view of a test system of the vehicle electrical inspection system provided in the present application, and as shown in fig. 8, the test system 800 of the vehicle electrical inspection system includes an upper computer 810 and an electrical inspection system 820, wherein:
the upper computer 810 is used for acquiring a test case and sending an electric inspection instruction to the electric inspection system 820 based on the test case; monitoring the electric detection message, wherein the electric detection message is generated by the electric detection system 820 based on the electric detection instruction; and generating a test result of the electric inspection system 820 based on the test case and the electric inspection message in response to the electric inspection message being monitored.
The electric detection system 820 is used for receiving an electric detection instruction sent by the upper computer 810 and generating an electric detection message based on the electric detection instruction.
In some implementations, the upper computer 810 is further configured to generate a response message of the electrical inspection message based on the electrical inspection message and the test case; and generating a test result of the electric inspection system 820 based on the test case and the response message.
In some implementations, the upper computer 810 is further configured to send the response message to the electrical inspection system 820, and the electrical inspection system 820 is further configured to generate second check information based on the response message and send the second check information to the upper computer 810.
In some implementations, the upper computer 810 is further configured to generate first check information based on the response message; receiving second check information sent by the electrical inspection system 820, wherein the second check information is generated by the electrical inspection system 820 according to the response message; and verifying the first verification information and the second verification information based on the verification strategy of the test case to generate a test result of the electrical inspection system 820.
In some implementations, the verification policy includes expected information and an assertion relationship, and the upper computer 810 is further configured to extract reference response information from the first verification information and extract response information to be verified from the second verification information; and verifying the reference response information and the response information to be verified based on the expected information and the assertion relation to generate a test result of the electric inspection system 820.
In some implementations, the upper computer 810 is further configured to obtain matching conditions of the response information to be verified and the reference response information based on the expected information and the assertion relationship; in response to the response information to be verified and the reference response information meeting the matching condition, determining that the test result of the electric inspection system 820 is normal; and in response to the response information to be verified and the reference response information not meeting the matching condition, determining that the test result of the electric inspection system 820 is abnormal.
In some implementations, the upper computer 810 is further configured to obtain a first matching condition of the to-be-verified response information and the reference response information based on the expected information, where the first matching condition is that the receiving and sending of the to-be-verified response information and the reference response information correspond to each other; and acquiring a second matching condition of the response information to be verified and the reference response information based on the assertion relation, wherein the second matching condition is that the contents of the response information to be verified and the reference response information are consistent.
In some implementations, the upper computer 810 is further configured to perform format conversion on the interaction information between the upper computer and the electric examination system through a dynamic link library.
In some implementations, the test system 800 of the vehicle electrical inspection system further includes a cloud server 830 for forwarding interaction information between the upper computer 810 and the electrical inspection system 820.
The embodiment of the application can automatically diagnose and simulate the electric inspection system of the vehicle, avoids complex processes, saves human resources, can realize complex simulation response logic, further improves the electric inspection efficiency and accuracy and reduces the electric inspection cost.
In order to implement the foregoing embodiment, an embodiment of the present application further provides an electronic device 900, as shown in fig. 9, where the electronic device 900 includes: the processor 910 is communicatively coupled to the processor, and the memory 920 stores instructions executable by the at least one processor, the instructions being executable by the at least one processor 910 to implement a method for testing a vehicle electrical inspection system as disclosed herein.
In order to achieve the above embodiments, the present application also proposes a non-transitory computer readable storage medium storing computer instructions for causing a computer to implement the test method of the vehicle electrical inspection system according to the present application.
In order to implement the foregoing embodiments, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the computer program implements the testing method of the vehicle electrical inspection system according to the present application.
As will be appreciated by one skilled in the art, embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and so forth) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The application can be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or to implicitly indicate the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
While the preferred embodiments of the present application have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all alterations and modifications as fall within the scope of the application.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (13)

1. A test method of a vehicle electric detection system is characterized by being executed by an upper computer and comprising the following steps:
acquiring a test case, and sending an electrical inspection instruction to a vehicle electrical inspection system based on the test case;
monitoring an electric detection message, wherein the electric detection message is generated by the electric detection system based on the electric detection indication;
and responding to the monitoring of the electric detection message, and generating a test result of the electric detection system based on the test case and the electric detection message.
2. The method according to claim 1, wherein the generating a test result of the electrical inspection system based on the test case and the electrical inspection message comprises:
generating a response message of the electric detection message based on the electric detection message and the test case;
and generating a test result of the electric examination system based on the electric examination message and the response message.
3. The method of claim 2, wherein generating the test result of the electrical inspection system based on the electrical inspection message and the response message comprises:
generating first check information based on the response message;
the electric detection message also comprises second check information, and the second check information is a message generated by the electric detection system according to the response message;
and verifying the first verification information and the second verification information based on the verification strategy of the test case to generate a test result of the electrical inspection system.
4. The method of claim 3, wherein the verification policy includes expected information and an assertion relationship, and wherein the verifying the first verification information and the second verification information based on the verification policy of the test case to generate the test result of the electrical inspection system comprises:
extracting reference response information from the first check information, and extracting response information to be verified from the second check information;
and verifying the reference response information and the response information to be verified based on the expected information and the assertion relation to generate a test result of the electrical inspection system.
5. The method according to claim 4, wherein the verifying the reference response information and the response information to be verified based on the expected information and the assertion relationship to generate the test result of the electrical inspection system comprises:
acquiring matching conditions of the to-be-verified response information and the reference response information based on the expected information and the assertion relation;
in response to the response information to be verified and the reference response information meeting the matching condition, determining that the test result of the electric inspection system is normal;
and determining that the test result of the electric inspection system is abnormal in response to the response information to be verified and the reference response information not meeting the matching condition.
6. The method according to claim 5, wherein the matching conditions include a first matching condition and a second matching condition, and the obtaining the matching conditions of the response information to be verified and the reference response information based on the expected information and the assertion relationship comprises:
acquiring a first matching condition of the response information to be verified and the reference response information based on the expected information, wherein the first matching condition is that the response information to be verified and the reference response information are received and sent correspondingly;
and acquiring a second matching condition of the to-be-verified response information and the reference response information based on the assertion relation, wherein the second matching condition is that the contents of the to-be-verified response information and the reference response information are consistent.
7. The method of any one of claims 1-6, further comprising:
and carrying out format conversion on the interactive information between the upper computer and the electric inspection system through a dynamic link library.
8. A testing device of a vehicle electrical inspection system is characterized by comprising:
the sending module is used for obtaining a test case and sending an electric detection instruction to the vehicle electric detection system based on the test case;
the monitoring module is used for monitoring an electric detection message, and the electric detection message is generated by the electric detection system based on the electric detection instruction;
and the generating module is used for responding to the monitoring of the electric detection message and generating a test result of the electric detection system based on the test case and the electric detection message.
9. The apparatus of claim 8, wherein the generating module is further configured to:
generating a response message of the electric detection message based on the electric detection message and the test case;
and generating a test result of the electric detection system based on the test case and the response message.
10. The utility model provides a test system of vehicle electrical inspection system which characterized in that, includes host computer and vehicle electrical inspection system, wherein:
the upper computer is used for acquiring a test case and sending an electric inspection instruction to the electric inspection system based on the test case; monitoring an electric detection message, wherein the electric detection message is generated by the electric detection system based on the electric detection indication; and responding to the monitoring of the electric detection message, and generating a test result of the electric detection system based on the test case and the electric detection message.
The electric detection system is used for receiving the electric detection indication sent by the upper computer and generating the electric detection message based on the electric detection indication.
11. The system of claim 10, further comprising:
and the cloud server is used for forwarding the interactive information between the upper computer and the electric detection system.
12. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of any one of claims 1-7.
13. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202111453770.8A 2021-12-01 2021-12-01 Test method and device for vehicle electric detection system Pending CN115437912A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111453770.8A CN115437912A (en) 2021-12-01 2021-12-01 Test method and device for vehicle electric detection system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111453770.8A CN115437912A (en) 2021-12-01 2021-12-01 Test method and device for vehicle electric detection system

Publications (1)

Publication Number Publication Date
CN115437912A true CN115437912A (en) 2022-12-06

Family

ID=84272134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111453770.8A Pending CN115437912A (en) 2021-12-01 2021-12-01 Test method and device for vehicle electric detection system

Country Status (1)

Country Link
CN (1) CN115437912A (en)

Similar Documents

Publication Publication Date Title
CN107918382B (en) Automobile fault diagnosis method, automobile fault diagnosis device and electronic equipment
CN108107875B (en) Automobile diagnosis method and device and vehicle communication interface
CN105115119B (en) Fault detection method, device and equipment for air-conditioner set
US11514731B2 (en) Method and system for remote vehicle diagnostics
CN103954011B (en) The indoor unit and outdoor unit matching process and device and air-conditioner set of air-conditioner set
CN111538312B (en) Vehicle remote diagnosis method, system, equipment connector and vehicle connector
CN113608518B (en) Data generation method, device, terminal equipment and medium
CN110545220A (en) Automobile diagnosis protocol detection method and related product
CN114326672A (en) ECU simulation detection method, electronic device and storage medium
CN115542875A (en) Vehicle detection method based on SOA service and related equipment
CN107632909B (en) Method and system for automatically testing device functions
CN112311627B (en) Universal power protocol testing method and system based on protocol description file in XML format
CN115437912A (en) Test method and device for vehicle electric detection system
CN107483618B (en) Radiotherapy quality control file transmission method, device and system
CN109086185B (en) Fault detection method, device and equipment of storage cluster and storage medium
CN114338451B (en) Controller local area network bus test system, method and storage medium
CN113434411A (en) TIAS function test method and system
CN115733871A (en) Communication interaction method, device, equipment and storage medium
CN115118577A (en) Method and device for determining remote upgrade abnormal reason, electronic equipment and storage medium
CN109039770B (en) Server CMC refreshing method and device and related equipment
CN112256265A (en) H5 page stability testing method and device, storage medium and electronic equipment
CN113076238B (en) Pressure testing method and device, storage medium and electronic equipment
CN111443683B (en) Electronic control unit testing method and device based on vehicle CAN bus structure
CN116224976B (en) Test method and device
CN112319495B (en) Method, device and equipment for determining automobile system model 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