CN117971688A - Automatic test method, device, equipment and medium for vehicle-mounted system - Google Patents

Automatic test method, device, equipment and medium for vehicle-mounted system Download PDF

Info

Publication number
CN117971688A
CN117971688A CN202410188994.8A CN202410188994A CN117971688A CN 117971688 A CN117971688 A CN 117971688A CN 202410188994 A CN202410188994 A CN 202410188994A CN 117971688 A CN117971688 A CN 117971688A
Authority
CN
China
Prior art keywords
feedback
vehicle
automatic test
information
test
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
CN202410188994.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.)
Beidou Zhilian Technology Co ltd
Original Assignee
Beidou Zhilian 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 Beidou Zhilian Technology Co ltd filed Critical Beidou Zhilian Technology Co ltd
Priority to CN202410188994.8A priority Critical patent/CN117971688A/en
Publication of CN117971688A publication Critical patent/CN117971688A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases
    • 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
    • YGENERAL 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
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/02Total 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)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses an automatic test method, device, equipment and medium for a vehicle-mounted system. The method comprises the following steps: reading a configuration file of the locomotive terminal, generating a corresponding automatic test program, transmitting a pre-stored instruction feedback code segment to the locomotive terminal, executing the automatic test program to generate an action instruction, and transmitting the action instruction to the locomotive terminal; and the receiving vehicle machine terminal executes the instruction feedback code section, analyzes the feedback information according to the feedback information fed back by the action instruction to obtain feedback analysis information, judges whether the feedback analysis information is correct according to the judgment strategy to obtain a test result, and if the test result is correct, continues to execute the automatic test program. According to the method, the automatic test program can be automatically generated and executed based on the configuration file of the vehicle terminal, the feedback information is acquired and analyzed, and the feedback analysis information is judged, so that a test result is obtained, the loophole of the vehicle system software can be tested and searched, and the test efficiency and the test accuracy are greatly improved.

Description

Automatic test method, device, equipment and medium for vehicle-mounted system
Technical Field
The invention relates to the technical field of intelligent testing, in particular to an automatic testing method, device, equipment and medium of a vehicle-mounted system.
Background
In order to realize interactive control on intelligent equipment configured in an automobile, an intelligent control terminal (namely an automobile machine terminal) is generally configured in the automobile, and the intelligent control terminal is used in actual operation by installing automobile machine system software. In the development process of the vehicle system, a great deal of details need to be paid attention to, so that the vehicle system must be fully tested and can be used after being qualified. In the traditional technical method, an operator usually performs actual operation on the vehicle-mounted system to test the vehicle-mounted system, however, a great deal of labor cost is required to be consumed in the test process, and due to the fact that a great number of repeated steps of manual test are more in the test process, some details are easy to neglect in the test work, and the efficiency of testing the vehicle-mounted system software is affected. Therefore, the problem of poor testing efficiency exists in the process of testing the vehicle-mounted system in the prior art.
Disclosure of Invention
The embodiment of the invention provides an automatic test method, device, equipment and medium for a vehicle-mounted system, and aims to solve the problem of poor test efficiency in the process of testing the vehicle-mounted system in the prior art.
In a first aspect, an embodiment of the present invention provides an automated testing method for a vehicle-mounted system, where the method is applied to an automated testing platform, and the automated testing platform establishes a network connection with at least one vehicle-mounted terminal to implement transmission of data information, and the method includes:
reading a configuration file of the vehicle terminal and generating a corresponding automatic test program;
the pre-stored instruction feedback code segments are sent to the vehicle-mounted terminal;
Executing the automatic test program to generate a corresponding action instruction and sending the action instruction to the vehicle terminal;
If the command feedback code segment is received and executed by the vehicle terminal, analyzing each piece of feedback information according to the feedback information fed back by the action command to obtain corresponding feedback analysis information;
judging whether the feedback analysis information is correct or not according to a judgment strategy corresponding to the automatic test program to obtain a corresponding test result;
and if the test result is correct, returning to execute the automatic test program until the automatic test program is completely executed.
In a second aspect, an embodiment of the present invention provides an automated testing apparatus for a vehicle-mounted system, where the apparatus is configured in an automated testing platform, and the automated testing platform establishes a network connection with at least one vehicle-mounted terminal to implement transmission of data information, and the apparatus is configured to perform the automated testing method for a vehicle-mounted system according to the first aspect, and the apparatus includes:
the automatic test program generating unit is used for reading the configuration file of the vehicle terminal and generating a corresponding automatic test program;
the command feedback code section sending unit is used for sending a pre-stored command feedback code section to the vehicle-mounted terminal;
the action instruction sending unit is used for executing the automatic test program to generate a corresponding action instruction and sending the action instruction to the vehicle terminal;
The feedback information analysis unit is used for analyzing each piece of feedback information to obtain corresponding feedback analysis information if receiving the feedback information fed back by the action instruction and executing the instruction feedback code section by the vehicle terminal;
The test result acquisition unit is used for judging whether the feedback analysis information is correct or not according to a judgment strategy corresponding to the automatic test program to obtain a corresponding test result;
and the return execution unit is used for returning to execute the automatic test program until the automatic test program is executed if the test result is correct.
In a third aspect, an embodiment of the present invention further provides a computer device, where the computer device includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, where the computer device implements the automated testing method of the vehicle system according to the first aspect when the computer program is executed by the computer device.
In a fourth aspect, an embodiment of the present invention further provides a computer readable storage medium, where the computer readable storage medium stores a computer program, where the computer program, when executed by a processor, implements the automated test method for a vehicle system according to the first aspect.
The embodiment of the invention provides an automatic test method, device, equipment and medium for a vehicle-mounted system. The method comprises the following steps: reading a configuration file of the locomotive terminal, generating a corresponding automatic test program, transmitting a pre-stored instruction feedback code segment to the locomotive terminal, executing the automatic test program to generate an action instruction, and transmitting the action instruction to the locomotive terminal; and the receiving vehicle machine terminal executes the instruction feedback code section, analyzes the feedback information according to the feedback information fed back by the action instruction to obtain feedback analysis information, judges whether the feedback analysis information is correct according to the judgment strategy to obtain a test result, and if the test result is correct, continues to execute the automatic test program. By the method, an automatic test program can be automatically generated and executed based on the configuration file of the vehicle terminal, feedback information is acquired and analyzed, and feedback analysis information is judged, so that a test result is obtained, the test efficiency is greatly improved, and the loopholes of the vehicle system software can be tested and searched; the uncertainty caused by manual testing is avoided, and the method is applicable to batch testing of the vehicle-mounted terminals.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for the description of the embodiments will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of an automated testing method of a vehicle-mounted system according to an embodiment of the present invention;
Fig. 2 is an application scenario schematic diagram of an automated testing method of a vehicle-mounted system according to an embodiment of the present invention;
FIG. 3 is a schematic block diagram of an automated test equipment for a vehicle-to-machine system provided by an embodiment of the present invention;
fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
It should be understood that the terms "comprises" and "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It is also to be understood that the terminology used in the description of the invention herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the invention. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
It should be further understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
Referring to fig. 1 and fig. 2, fig. 1 is a schematic flow chart of an automated testing method for a vehicle system according to an embodiment of the present invention, and fig. 2 is a schematic application scenario diagram of an automated testing method for a vehicle system according to an embodiment of the present invention; the automatic test method of the vehicle-mounted system is applied to an automatic test platform 10, and the automatic test platform 10 and at least one vehicle-mounted terminal 20 are connected in a network manner so as to realize the transmission of data information; the automatic test method of the vehicle-mounted system is executed through application software installed in the automatic test platform 10; the automated test platform 10 is a server platform for executing an automated test method of a vehicle system to test vehicle system software installed in the vehicle terminal 20, such as a test server configured in an enterprise; the vehicle terminal 20 is an intelligent terminal device mounted in an automobile, and the vehicle terminal 20 at least comprises a display screen for displaying information, a touch panel for inputting touch operation, and control keys for inputting key operation. As shown in fig. 1, the method includes steps S110 to S160.
S110, reading the configuration file of the vehicle terminal and generating a corresponding automatic test program.
And reading the configuration file of the vehicle terminal and generating a corresponding automatic test program. The vehicle system software is installed in the vehicle terminal and comprises page base classes corresponding to each page, and the page base classes corresponding to each page comprise father class information, page identity information, current page state and page layout information. The page layout information of each page base class is stored in a configuration file according to a certain sequence and a certain rule, and the specific configuration structure of the page can be directly obtained through the configuration file.
The automatic test platform can read the configuration file of the vehicle terminal and generate a corresponding automatic test program according to the configuration file. The specific embodiment of the application mainly aims at the specific explanation of the process of testing a trolley machine terminal; in the practical application process, the automatic test platform can be respectively connected with the plurality of car terminals and test the plurality of car terminals at the same time, and the plurality of car terminals connected with the automatic test platform can be the same type of car terminals or different types of car terminals. Meanwhile, the specific process of testing the plurality of car terminals can be obtained by analogy according to the actual process of testing one car terminal.
In a specific embodiment, the step S110 specifically includes the following sub-steps: analyzing the configuration file to obtain a page scene event; acquiring test cases corresponding to each page scene event from a preset test case library; and sequentially combining the test cases according to the arrangement sequence of the page scene events to obtain a corresponding automatic test program.
Specifically, the configuration file may be parsed, that is, the page layout information of each page in the configuration file may be parsed, and the page scene event corresponding to each page element may be extracted from the page layout information, where each page layout information includes one or more page elements, and each page element corresponds to one or more page scene events. Specifically, the page scene time corresponding to each page element can be determined according to the element type of the page element. For example, for a page element that is a picture, dragging or zooming in two page scene events may be included correspondingly.
The automatic test platform is pre-configured with a test case library, the test case library comprises a plurality of test cases, each test case corresponds to one page scene event, and then the test cases respectively corresponding to each page scene event can be obtained from the test case library.
Determining the arrangement sequence of the page scene events according to the arrangement correspondence of the page elements in the configuration file, and sequentially combining the test cases corresponding to the page scene events according to the arrangement sequence of the page scene events to obtain a corresponding automatic test program, wherein the automatic test program comprises a plurality of code segments, and each code segment corresponds to one page scene event.
And S120, transmitting a pre-stored instruction feedback code segment to the vehicle terminal.
And sending a pre-stored instruction feedback code segment to the vehicle-mounted terminal. The automatic test platform is pre-stored with an instruction feedback code segment, an event feedback method is configured in the instruction feedback code segment, and the instruction feedback code segment is sent to the vehicle terminal, so that the vehicle terminal configures the instruction feedback code segment and realizes the event feedback method therein.
And S130, executing the automatic test program to generate a corresponding action instruction and sending the action instruction to the vehicle terminal.
And executing the automatic test program to generate a corresponding action instruction and sending the action instruction to the vehicle terminal. The automatic test platform can execute the generated automatic test program, the automatic test program comprises a plurality of code segments, and each execution of one code segment can correspondingly generate an action instruction and send the action instruction to the vehicle terminal; and in the process of executing the automatic test program, the automatic test platform sequentially generates corresponding action instructions according to the sequence of the code segments in the automatic test program. The automatic test platform can realize uevent method, and the automatic test program can be executed by uevent method.
In a specific embodiment, the step S130 specifically includes the following sub-steps: determining a corresponding action type according to a code segment currently executed by the automatic test program; invoking a generation script corresponding to the action type to generate an action instruction corresponding to the currently executed code segment; and sending the action instruction to the vehicle terminal.
Specifically, in executing the automatic test program, a code segment currently executed by the automatic test program may be acquired, and a corresponding action type may be determined according to code content in the code segment, where the action type may include a simulated touch type or a key event type. The simulated touch type is to simulate the operation of a user on the touch panel and input a corresponding touch control instruction; the key event type is to simulate the user to press a key and input a corresponding key control instruction.
Calling a corresponding generation script according to the determined action type, wherein the action type is a simulated touch type, and calling the generation script corresponding to the simulated touch type to generate an action instruction based on a currently executed code segment, for example, the action instruction can report page information level coordinate information to be processed and the like; and if the determined action type is the key event type, calling a generation script corresponding to the key event type to generate an action instruction based on the currently executed code segment. And sending the generated action instruction to the vehicle terminal.
And S140, if the command feedback code segment is received and executed by the vehicle terminal, and the feedback information fed back by the action command is analyzed according to the feedback information, so that corresponding feedback analysis information is obtained.
And if the command feedback code segment is received and executed by the vehicle terminal, analyzing each piece of feedback information according to the feedback information fed back by the action command to obtain corresponding feedback analysis information. The vehicle terminal executes the received event feedback method, the vehicle terminal responds to the command after receiving the action command, and meanwhile, the executed event feedback method in the vehicle terminal generates corresponding feedback information on one side of the vehicle terminal according to the execution process and state of the action command, and the vehicle terminal sends the feedback information to the automatic test platform. After receiving feedback information corresponding to the action instruction, the automatic test platform can analyze the feedback information, so that feedback analysis information is obtained.
In a specific embodiment, the step S140 specifically includes the following sub-steps: acquiring an analysis rule corresponding to the feedback type of the feedback information; and analyzing the feedback information according to the analysis rule to obtain corresponding feedback analysis information.
Specifically, the corresponding feedback type may be determined according to the feedback information, where the feedback type may be an interface design (UI) action type, or an information reading type. If the feedback type of the feedback information is determined to be the interface design action type, acquiring a corresponding analysis rule as an interface image analysis rule; if the feedback type of the feedback information is determined to be the information reading type, the corresponding analysis rule is obtained to be the information analysis rule.
And analyzing the feedback information according to the analysis rule, thereby obtaining corresponding feedback analysis information. And if the feedback information of the corresponding feedback type is subjected to image analysis through an interface image analysis rule, obtaining feedback analysis information of the current display page and page adjustment information (page amplification, page left shift or page right shift). And analyzing the feedback information of the corresponding feedback type through the information analysis rule to obtain feedback analysis information such as information length, information type and the like.
And S150, judging whether the feedback analysis information is correct or not according to a judgment strategy corresponding to the automatic test program, and obtaining a corresponding test result.
And judging whether the feedback analysis information is correct or not according to a judgment strategy corresponding to the automatic test program to obtain a corresponding test result. Further, whether the feedback analysis information is correct or not is judged according to a judgment strategy corresponding to the automatic test program, so that a test result corresponding to the current test step is obtained.
In a specific embodiment, the step S150 specifically includes the following substeps: acquiring a judging condition corresponding to the test case of the feedback analysis information from the judging strategy; and judging whether the feedback analysis information is correct or not according to the judging conditions to obtain a corresponding test result.
Specifically, a judging condition matched with the test case corresponding to the feedback analysis information can be obtained from the judging strategy, each test case correspondingly comprises a judging condition in the judging strategy, and whether the feedback analysis information is correct or not is judged according to the determined judging condition; judging whether all the information in the feedback analysis information is matched with the judging condition, and if so, obtaining a correct test result; if any information in the feedback analysis information is not matched with the judgment condition, an incorrect test result is obtained.
In a specific embodiment, after the step S150, the method further includes the steps of: and if the test result is incorrect, generating corresponding error prompt information according to the current test page of the vehicle terminal.
If the test result is incorrect, corresponding error prompt information is generated according to the current test page displayed by the vehicle machine, the error prompt information can report errors and prompt a specific page where a tester is currently located, and at the moment, the automatic test program stops executing.
And S160, if the test result is correct, returning to execute the automatic test program until the automatic test program is executed.
And if the test result is correct, returning to execute the automatic test program until the automatic test program is completely executed. That is, the process returns to the execution step S130, and the steps S130 to S160 are circularly executed until all the code segments included in the automatic test program are executed. If the test result is correct, the execution step S130 may be returned to, that is, the execution of the subsequent code segment in the automatic test program is continued, and steps S130 to S160 are circularly executed until the automatic test program is completed.
In the automated testing method of the vehicle-mounted system provided by the embodiment of the invention, the method comprises the following steps: reading a configuration file of the locomotive terminal, generating a corresponding automatic test program, transmitting a pre-stored instruction feedback code segment to the locomotive terminal, executing the automatic test program to generate an action instruction, and transmitting the action instruction to the locomotive terminal; and the receiving vehicle machine terminal executes the instruction feedback code section, analyzes the feedback information according to the feedback information fed back by the action instruction to obtain feedback analysis information, judges whether the feedback analysis information is correct according to the judgment strategy to obtain a test result, and if the test result is correct, continues to execute the automatic test program. By the method, an automatic test program can be automatically generated and executed based on the configuration file of the vehicle terminal, feedback information is acquired and analyzed, and feedback analysis information is judged, so that a test result is obtained, the test efficiency is greatly improved, and the loopholes of the vehicle system software can be tested and searched; the uncertainty caused by manual testing is avoided, and the method is applicable to batch testing of the vehicle-mounted terminals.
The embodiment of the invention also provides an automatic testing device of the vehicle-mounted system, which can be configured in the automatic testing platform 10, wherein the automatic testing platform 10 and at least one vehicle-mounted terminal 20 are connected in a network manner to realize the transmission of data information; the automatic test method of the vehicle-mounted system is executed through application software installed in the automatic test platform 10; the automated test platform 10 is a server platform for executing an automated test method of a vehicle system to test vehicle system software installed in the vehicle terminal 20, such as a test server configured in an enterprise; the vehicle terminal 20 is an intelligent terminal device assembled in a vehicle, and the vehicle terminal 20 at least comprises a display screen for displaying information, a touch panel for inputting touch operation and control keys for inputting key operation, and the automated testing device of the vehicle system is used for executing any embodiment of the automated testing method of the vehicle system. Specifically, referring to fig. 3, fig. 3 is a schematic block diagram of an automated testing apparatus for a vehicle system according to an embodiment of the present invention.
As shown in fig. 3, the automated test apparatus 100 of the vehicle system includes an automatic test program generating unit 110, an instruction feedback code segment transmitting unit 120, an action instruction transmitting unit 130, a feedback information analyzing unit 140, a test result acquiring unit 150, and a return executing unit 160.
And the automatic test program generating unit 110 is configured to read the configuration file of the vehicle terminal and generate a corresponding automatic test program.
In a more specific embodiment, the automatic test program generating unit 110 includes: the page scene event acquisition unit is used for analyzing the configuration file to acquire page scene events; the test case acquisition unit is used for acquiring test cases corresponding to each page scene event from a preset test case library; and the test case combination unit is used for sequentially combining the test cases according to the arrangement sequence of the page scene events to obtain a corresponding automatic test program.
And the instruction feedback code segment sending unit 120 is configured to send a pre-stored instruction feedback code segment to the vehicle terminal.
And the action instruction sending unit 130 is used for executing the automatic test program to generate a corresponding action instruction and sending the corresponding action instruction to the vehicle terminal.
And the feedback information analysis unit 140 is configured to, if receiving feedback information fed back by the action instruction and executing the instruction feedback code segment by the vehicle terminal, analyze each piece of feedback information to obtain corresponding feedback analysis information.
And the test result obtaining unit 150 is configured to determine whether the feedback analysis information is correct according to a determination policy corresponding to the automatic test program, so as to obtain a corresponding test result.
And the return execution unit 160 is configured to return to execute the automatic test program until the automatic test program is executed if the test result is correct.
The automatic testing device of the vehicle-mounted system provided by the embodiment of the invention is applied to the automatic testing method of the vehicle-mounted system, and the method comprises the following steps: reading a configuration file of the locomotive terminal, generating a corresponding automatic test program, transmitting a pre-stored instruction feedback code segment to the locomotive terminal, executing the automatic test program to generate an action instruction, and transmitting the action instruction to the locomotive terminal; and the receiving vehicle machine terminal executes the instruction feedback code section, analyzes the feedback information according to the feedback information fed back by the action instruction to obtain feedback analysis information, judges whether the feedback analysis information is correct according to the judgment strategy to obtain a test result, and if the test result is correct, continues to execute the automatic test program. By the method, an automatic test program can be automatically generated and executed based on the configuration file of the vehicle terminal, feedback information is acquired and analyzed, and feedback analysis information is judged, so that a test result is obtained, the test efficiency is greatly improved, and the loopholes of the vehicle system software can be tested and searched; the uncertainty caused by manual testing is avoided, and the method is applicable to batch testing of the vehicle-mounted terminals.
The above-described automated test method of the vehicle system may be implemented in the form of a computer program, and the automated test apparatus of the vehicle system may be implemented as a computer device, which may be run on the computer device as shown in fig. 4. The computer device includes a memory, a processor, and a computer program stored on the memory and executable on the processor; the computer program when executed by the computer device implements the automated test method for the vehicle-mounted system as described in the above embodiment.
Referring to fig. 4, fig. 4 is a schematic block diagram of a computer device according to an embodiment of the present invention. The computer device may be a server platform for executing an automated test method of a vehicle-to-vehicle system to test vehicle-to-vehicle system software installed in a vehicle-to-vehicle terminal.
With reference to FIG. 4, the computer device 500 includes a processor 502, a memory, and a network interface 505, connected by a system bus 501, where the memory may include a storage medium 503 and an internal memory 504.
The storage medium 503 may store an operating system 5031 and a computer program 5032. The computer program 5032, when executed, may cause the processor 502 to perform an automated test method for a vehicle system, wherein the storage medium 503 may be a volatile storage medium or a non-volatile storage medium.
The processor 502 is used to provide computing and control capabilities to support the operation of the overall computer device 500.
The internal memory 504 provides an environment for the execution of a computer program 5032 in the storage medium 503, which computer program 5032, when executed by the processor 502, causes the processor 502 to perform an automated test method for a vehicle system.
The network interface 505 is used for network communication, such as providing for transmission of data information, etc. It will be appreciated by those skilled in the art that the architecture shown in fig. 4 is merely a block diagram of some of the architecture relevant to the present inventive arrangements and is not limiting of the computer device 500 to which the present inventive arrangements may be implemented, and that a particular computer device 500 may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
The processor 502 is configured to execute a computer program 5032 stored in the memory, so as to implement the corresponding functions in the automated testing method of the vehicle system.
Those skilled in the art will appreciate that the embodiment of the computer device shown in fig. 4 is not limiting of the specific construction of the computer device, and in other embodiments, the computer device may include more or less components than those shown, or certain components may be combined, or a different arrangement of components. For example, in some embodiments, the computer device may include only a memory and a processor, and in such embodiments, the structure and function of the memory and the processor are consistent with the embodiment shown in fig. 4, and will not be described again.
It should be appreciated that in embodiments of the present invention, the Processor 502 may be a central processing unit (Central Processing Unit, CPU), the Processor 502 may also be other general purpose processors, digital signal processors (DIGITAL SIGNAL processors, DSPs), application SPECIFIC INTEGRATED Circuits (ASICs), off-the-shelf Programmable gate arrays (Field-Programmable GATE ARRAY, FPGA) or other Programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. Wherein the general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
In another embodiment of the invention, a computer-readable storage medium is provided. The computer readable storage medium may be a volatile or nonvolatile computer readable storage medium. The computer readable storage medium stores a computer program which, when executed by a processor, implements the steps included in the automated test method for a vehicle-to-machine system described above.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, specific working procedures of the apparatus, device and unit described above may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein. Those of ordinary skill in the art will appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied in electronic hardware, in computer software, or in a combination of the two, and that the elements and steps of the examples have been generally described in terms of function in the foregoing description to clearly illustrate the interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
In the several embodiments provided by the present invention, it should be understood that the disclosed apparatus, device and method may be implemented in other manners. For example, the apparatus embodiments described above are merely illustrative, and for example, the division of the units is merely a logical function division, there may be another division manner in actual implementation, or units having the same function may be integrated into one unit, for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. In addition, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices, or elements, or may be an electrical, mechanical, or other form of connection.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the embodiment of the present invention.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention is essentially or part of what contributes to the prior art, or all or part of the technical solution may be embodied in the form of a software product stored in a computer-readable storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned computer-readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a magnetic disk, an optical disk, or other various media capable of storing program codes.
While the invention has been described with reference to certain preferred embodiments, it will be understood by those skilled in the art that various changes and substitutions of equivalents may be made and equivalents will be apparent to those skilled in the art without departing from the scope of the invention. Therefore, the protection scope of the invention is subject to the protection scope of the claims.

Claims (10)

1. An automated testing method of a vehicle-mounted system, the method being applied to an automated testing platform, the automated testing platform establishing network connection with at least one vehicle-mounted terminal to enable transmission of data information, the method comprising:
reading a configuration file of the vehicle terminal and generating a corresponding automatic test program;
the pre-stored instruction feedback code segments are sent to the vehicle-mounted terminal;
Executing the automatic test program to generate a corresponding action instruction and sending the action instruction to the vehicle terminal;
If the command feedback code segment is received and executed by the vehicle terminal, analyzing each piece of feedback information according to the feedback information fed back by the action command to obtain corresponding feedback analysis information;
judging whether the feedback analysis information is correct or not according to a judgment strategy corresponding to the automatic test program to obtain a corresponding test result;
and if the test result is correct, returning to execute the automatic test program until the automatic test program is completely executed.
2. The automated testing method of a vehicle system according to claim 1, wherein the reading the configuration file of the vehicle terminal and generating the corresponding automated testing program includes:
Analyzing the configuration file to obtain a page scene event;
acquiring test cases corresponding to each page scene event from a preset test case library;
and sequentially combining the test cases according to the arrangement sequence of the page scene events to obtain a corresponding automatic test program.
3. The automated testing method of a vehicle system according to claim 1 or 2, wherein the executing the automated testing program to generate corresponding action instructions is sent to the vehicle terminal, comprises:
determining a corresponding action type according to a code segment currently executed by the automatic test program;
invoking a generation script corresponding to the action type to generate an action instruction corresponding to the currently executed code segment;
and sending the action instruction to the vehicle terminal.
4. The automated testing method of the vehicle-mounted system according to claim 1, wherein the analyzing each piece of feedback information to obtain corresponding feedback analysis information further includes:
Acquiring an analysis rule corresponding to the feedback type of the feedback information;
and analyzing the feedback information according to the analysis rule to obtain corresponding feedback analysis information.
5. The automated testing method of the vehicle-mounted system according to claim 1, wherein the determining whether the feedback analysis information is correct according to the determination policy corresponding to the automated testing program, to obtain a corresponding testing result, includes:
Acquiring a judging condition corresponding to the test case of the feedback analysis information from the judging strategy;
And judging whether the feedback analysis information is correct or not according to the judging conditions to obtain a corresponding test result.
6. The automated testing method of the vehicle-mounted system according to claim 1 or 5, wherein the determining whether the feedback analysis information is correct according to the determination policy corresponding to the automated testing program, after obtaining the corresponding testing result, further includes:
And if the test result is incorrect, generating corresponding error prompt information according to the current test page of the vehicle terminal.
7. An automated testing apparatus for a vehicle system, the apparatus being configured in an automated testing platform, the automated testing platform establishing a network connection with at least one vehicle terminal for transmission of data information, the apparatus for performing an automated testing method for a vehicle system according to any one of claims 1-6, the apparatus comprising:
the automatic test program generating unit is used for reading the configuration file of the vehicle terminal and generating a corresponding automatic test program;
the command feedback code section sending unit is used for sending a pre-stored command feedback code section to the vehicle-mounted terminal;
the action instruction sending unit is used for executing the automatic test program to generate a corresponding action instruction and sending the action instruction to the vehicle terminal;
The feedback information analysis unit is used for analyzing each piece of feedback information to obtain corresponding feedback analysis information if receiving the feedback information fed back by the action instruction and executing the instruction feedback code section by the vehicle terminal;
The test result acquisition unit is used for judging whether the feedback analysis information is correct or not according to a judgment strategy corresponding to the automatic test program to obtain a corresponding test result;
and the return execution unit is used for returning to execute the automatic test program until the automatic test program is executed if the test result is correct.
8. The automated test method of the vehicle system according to claim 7, wherein the automated test program generating unit comprises:
the page scene event acquisition unit is used for analyzing the configuration file to acquire page scene events;
the test case acquisition unit is used for acquiring test cases corresponding to each page scene event from a preset test case library;
And the test case combination unit is used for sequentially combining the test cases according to the arrangement sequence of the page scene events to obtain a corresponding automatic test program.
9. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the computer device implements the automated testing method of a vehicle system according to any one of claims 1 to 6 when the computer program is executed by the computer device.
10. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, which when executed by a processor, implements the automated test method of a vehicle system according to any one of claims 1 to 6.
CN202410188994.8A 2024-02-20 2024-02-20 Automatic test method, device, equipment and medium for vehicle-mounted system Pending CN117971688A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410188994.8A CN117971688A (en) 2024-02-20 2024-02-20 Automatic test method, device, equipment and medium for vehicle-mounted system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410188994.8A CN117971688A (en) 2024-02-20 2024-02-20 Automatic test method, device, equipment and medium for vehicle-mounted system

Publications (1)

Publication Number Publication Date
CN117971688A true CN117971688A (en) 2024-05-03

Family

ID=90855257

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410188994.8A Pending CN117971688A (en) 2024-02-20 2024-02-20 Automatic test method, device, equipment and medium for vehicle-mounted system

Country Status (1)

Country Link
CN (1) CN117971688A (en)

Similar Documents

Publication Publication Date Title
CN108388514B (en) Interface automation test method, device, equipment and computer readable storage medium
CN107145440B (en) Application program testing method and device and computer equipment
CN109408375B (en) Method and device for generating interface document
CN111198797B (en) Operation monitoring method and device and operation analysis method and device
CN110569194A (en) interface testing method and device, electronic equipment and storage medium
CN110908702A (en) Version switching method, version switching device, computer equipment and storage medium
CN115437933A (en) Automatic testing method and device, computer equipment and storage medium
CN111858354A (en) Method and device for automatically generating test report, storage medium and electronic equipment
CN111693294A (en) Vehicle detection method and device, terminal equipment and storage medium
CN110888800A (en) Service interaction function test method, device, storage medium and test system
CN113778878A (en) Interface testing method and device, electronic equipment and storage medium
CN116955193A (en) Interface testing method, device, equipment and storage medium
CN111949510B (en) Test processing method, device, electronic equipment and readable storage medium
CN112416735A (en) Application program detection method and device, terminal equipment and storage medium
CN111352610A (en) Interface return value modification method and device, electronic equipment and storage medium
CN117971688A (en) Automatic test method, device, equipment and medium for vehicle-mounted system
CN114356769A (en) Software learning method, device, equipment and storage medium
KR20120111618A (en) Apparatus and method for testing plc command
US20080195906A1 (en) Test pattern generation apparatus and test pattern generation method
CN115269285A (en) Test method and device, equipment and computer readable storage medium
CN114780412A (en) Page testing method, system, device and medium
CN114371866A (en) Version reconfiguration test method, device and equipment of service system
CN115129575A (en) Code coverage result generation method and device
CN108108369B (en) Method and device for processing calling error of common interface library
CN111026650B (en) Method and device for testing software, storage medium and electronic equipment

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