Test method, device, equipment, medium and product

By obtaining test requirement information, determining test cases and creating a test pipeline, the problem of low test method efficiency and resource waste in the development process of vehicle domain controllers is solved, automated testing is realized, and test efficiency and resource utilization are improved.

CN118626320APending Publication Date: 2024-09-10CHINA FAW CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410837714.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-09-10

AI Technical Summary

Technical Problem

During the development process of vehicle domain controllers, existing testing methods have problems such as designers independently conducting static code testing, high communication and management costs, resource waste due to test system customization, and time-consuming and labor-intensive upgrades of third-party testing tools.

Method used

By obtaining test requirement information, determining test cases based on the preset test case library, creating a test pipeline and generating test result reports, automated testing is achieved, the test cycle is shortened and human resources are saved.

Benefits of technology

It realizes automated testing according to different testing requirements, shortens the testing cycle, reduces communication and management costs, improves testing efficiency, and avoids resource waste and manpower consumption.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118626320A
    Figure CN118626320A
Patent Text Reader

Abstract

The invention discloses a test method, device and equipment, a medium and a product. The method comprises the following steps: acquiring test demand information; determining at least one test case from a preset test case library according to the test demand information; creating a test pipeline according to each test case; and performing test operation according to the test assembly line, and generating a test result report. Through the technical scheme of the invention, different test cases can be selected from the preset test case library according to different test requirements and configured into the assembly line for testing to obtain the test result, automatic testing aiming at different test requirements can be realized, a test result report is fed back, the test period is shortened, and human resources are saved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the technical field of automated testing of domain controllers, and in particular to a testing method, device, equipment, medium and product. Background Art

[0002] During the development of the vehicle domain controller, the testing phase usually encounters the following problems: 1. Each designer conducts static code testing separately and submits test reports and other documents separately. During the development process, the development progress is not completely consistent. In addition, during the development process and unit testing phase, in order to control the project quality, designers and project managers need to communicate and deliver test reports and approvals, etc., which increases communication and management costs; 2. The test content of the test system is single, and the test system and test content are highly customized. There are some basic test modules and signals that are repeatedly configured and tested, which increases the test cycle and wastes some resources; 3. The system introduces third-party testing tools, and third-party testing tools need to spend a lot of time reinstalling and configuring the software when upgrading functions, which can easily affect the project progress and consume a lot of human resources. Summary of the invention

[0003] The embodiments of the present invention provide a testing method, device, equipment, medium and product to realize automated testing according to different testing requirements and to feedback a test result report.

[0004] According to one aspect of the present invention, there is provided a testing method, comprising:

[0005] Obtain test requirement information;

[0006] Determine at least one test case from a preset test case library according to the test requirement information;

[0007] Creating a test pipeline according to each of the test cases;

[0008] Perform test operations according to the test pipeline and generate a test result report.

[0009] In some embodiments of the present invention, the test requirement information carries vehicle development stage information, wherein the vehicle development stage information includes: a primary vehicle stage, a first tooling sample stage, and a second tooling sample stage.

[0010] In some embodiments of the present invention, determining at least one test case from a preset test case library according to the test requirement information includes:

[0011] According to the vehicle development stage information, a preset relationship table is queried to obtain a set of test cases corresponding to the vehicle development stage information, wherein the preset relationship table includes a corresponding relationship between each vehicle development stage and a required test case;

[0012] At least one test case is selected from the preset test case library according to the test case set.

[0013] In some embodiments of the present invention, the preset test case library includes at least one of: port test cases, CAN communication test cases, Ethernet communication test cases, LIN communication test cases, functional test cases, static code test cases and fault test cases.

[0014] In some embodiments of the present invention, creating a test pipeline according to at least one of the test cases includes:

[0015] Creating an initial pipeline according to the test requirement information;

[0016] Insert at least one of the test cases into the initial pipeline in a preset order to obtain a test pipeline, wherein the preset order is obtained by querying a preset relationship table according to the vehicle development stage information, and the preset relationship table includes the correspondence between each vehicle development stage and the arrangement order of the test cases required for each vehicle development stage.

[0017] In some embodiments of the present invention, after generating the test result report, the method further includes:

[0018] The test result report is sent to the target system, and the test task status corresponding to the test requirement information is updated.

[0019] According to another aspect of the present invention, there is provided a testing device, the device comprising:

[0020] Acquisition module, used to obtain test requirement information;

[0021] A determination module, used to determine at least one test case from a preset test case library according to the test requirement information;

[0022] A creation module, used to create a test pipeline according to each of the test cases;

[0023] A generation module is used to perform test operations according to the test pipeline and generate a test result report.

[0024] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0025] at least one processor; and

[0026] a memory communicatively connected to the at least one processor; wherein,

[0027] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the testing method described in any embodiment of the present invention.

[0028] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the test method described in any embodiment of the present invention when executed.

[0029] According to another aspect of the present invention, an embodiment of the present invention further provides a computer program product, the computer program product includes a computer program, and when the computer program is executed by a processor, the test method described in any embodiment of the present invention is implemented.

[0030] The embodiment of the present invention obtains test requirement information, determines at least one test case from a preset test case library according to the test requirement information, creates a test pipeline according to each test case, performs test operations according to the test pipeline, and generates a test result report. Through the technical solution of the present invention, different test cases can be selected from a preset test case library according to different test requirements, configured into a pipeline for testing, and test results can be obtained. It is possible to implement automated testing for different test requirements, and feedback test result reports, shorten the test cycle, and save human resources.

[0031] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments are briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without creative work.

[0033] Figure 1 is a flow chart of a testing method in an embodiment of the present invention;

[0034] Figure 2 is a schematic structural diagram of a testing device in an embodiment of the present invention;

[0035] Figure 3It is a schematic diagram of the structure of an electronic device for implementing the testing method of an embodiment of the present invention. DETAILED DESCRIPTION

[0036] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0037] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and their meanings are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0038] It is understandable that before using the technical solutions disclosed in the embodiments of the present disclosure, the types, scope of use, usage scenarios, etc. of the personal information involved in the present disclosure should be informed to the user and the user's authorization should be obtained in an appropriate manner in accordance with relevant laws and regulations.

[0039] Embodiment 1

[0040] Figure 1 is a flow chart of a test method in an embodiment of the present invention. This embodiment is applicable to the test situation. The method can be executed by the test device in an embodiment of the present invention. The device can be implemented in software and / or hardware. Figure 1 As shown, the method specifically comprises the following steps:

[0041] S101. Obtain test requirement information.

[0042] In this embodiment, the test requirement information may be information of the test requirement determined according to the actual test task. For example, the actual test task may be, for example, testing whether the heating function of the seat installed on the vehicle is normal, and the test requirement information may be, for example, testing the seat heating function.

[0043] In actual operation, the test method of this embodiment can be configured in an assembly line automation test system. Specifically, the tester can input the test requirement information in the assembly line automation test system according to the actual test task, and the assembly line automation test system obtains the test requirement information input by the tester.

[0044] S102: Determine at least one test case from a preset test case library according to the test requirement information.

[0045] In this embodiment, each test case can be pre-written as a test module, and each test module can be stored in a database to form a preset test case library, that is, each test case in the preset test case library exists in the form of a test module during actual operation.

[0046] Specifically, the assembly line automation test system selects required test modules, that is, required test cases, from a preset test case library according to different test requirement information input.

[0047] S103: Create a test pipeline according to at least one test case.

[0048] The test pipeline may be composed of test cases and executed in sequence during the test process.

[0049] Specifically, after selecting test cases corresponding to the test requirement information from the preset test case library, these test cases are arranged and combined in sequence to create a test pipeline.

[0050] S104: Perform test operations according to the test pipeline and generate a test result report.

[0051] The test result report may be a test report generated according to the test results.

[0052] Specifically, test operations are performed according to the test pipeline to generate test results and test reports, where the test results can be, for example, a test success or a test failure. The test report can display the specific test content, test results, reasons for test failure or problems encountered during the test.

[0053] The embodiment of the present invention obtains test requirement information, determines at least one test case from a preset test case library according to the test requirement information, creates a test pipeline according to each test case, performs test operations according to the test pipeline, and generates a test result report. Through the technical solution of the present invention, different test cases can be selected from a preset test case library according to different test requirements, configured into a pipeline for testing, and test results can be obtained. It is possible to implement automated testing for different test requirements, and feedback test result reports, shorten the test cycle, and save human resources.

[0054] Optionally, the test requirement information carries vehicle development stage information.

[0055] In this embodiment, required test cases can be selected from a preset test case library according to the vehicle development stage information.

[0056] It should be noted that the vehicle development stage information can be understood as information about which development stage the vehicle belongs to during the development process.

[0057] Among them, the vehicle development stage information includes: primary vehicle stage, first tooling prototype stage and second tooling prototype stage.

[0058] In this embodiment, the primary vehicle stage can be understood as the mule car stage, the first tooling sample stage can be the OTS1 stage of the whole vehicle development, and the second tooling sample stage can be the OTS2 stage of the whole vehicle development. OTS is the full name of Off Tooling Samples in English, which means tooling samples, that is, samples manufactured under non-beat production conditions under full tooling state, which are used to verify the design capabilities of the product.

[0059] Optionally, determining at least one test case from a preset test case library according to the test requirement information includes:

[0060] According to the vehicle development stage information, the preset relationship table is queried to obtain a set of test cases corresponding to the vehicle development stage information.

[0061] In this embodiment, the preset relationship table may be a relationship table of required test cases corresponding to different vehicle development stages, which may be in a list form.

[0062] Among them, the preset relationship table includes the corresponding relationship between each vehicle development stage and the required test cases.

[0063] In this embodiment, the test case set may be a set consisting of required test cases corresponding to the vehicle development stage information.

[0064] Exemplarily, the preset relationship table records: the test case set corresponding to the primary vehicle stage is: test case 1, test case 3, test case 5; the test case set corresponding to the first tooling sample stage is: test case 1, test case 2, test case 4; the test case set corresponding to the second tooling sample stage is: test case 2, test case 5, test case 6. According to the vehicle development stage information (for example, the vehicle development stage information is the second tooling sample stage), the preset relationship table is queried to obtain the test case set (test case 2, test case 5, test case 6) corresponding to the vehicle development stage information (the second tooling sample stage).

[0065] The embodiment of the present invention determines a corresponding test case set according to different vehicle development stage information, so that the test is more in line with the vehicle testing requirements in the vehicle development stage, and the vehicle test is more accurate.

[0066] At least one test case is selected from a preset test case library according to the test case set.

[0067] Specifically, after querying the preset relationship table according to the vehicle development stage information to obtain the test case set corresponding to the vehicle development stage information, each test case in the test case set corresponding to the vehicle development stage information is selected from the preset test case library.

[0068] Optionally, the preset test case library includes at least one of: port test cases, CAN communication test cases, Ethernet communication test cases, LIN communication test cases, functional test cases, static code test cases and fault test cases.

[0069] In this embodiment, each test case can exist in a preset test case library in the form of a module. The pipeline automation test system combines test modules such as port test, CAN communication test, Ethernet communication test, LIN communication test, functional test, static code test, and fault test to build a test module library, that is, a preset test case library, providing a diversified and configurable test pipeline.

[0070] In a certain embodiment of the present invention, the pipeline automation test system can use a framework structure for the connected third-party test software to optimize the test functions of the test modules such as the static code toolbox. When optimization iteration is required, there is no need to reinstall and configure the environment, etc. The test module can be directly upgraded by supplementing the framework test package (the static code toolbox can be configured with several different standard static code toolkits), providing an open and developable framework structure rather than a closed test system.

[0071] The code is statically checked, connected to the static code toolbox, and the static code is analyzed to check for problems such as code division by zero, data overflow, and array out of bounds, and a test result report is generated.

[0072] If the static code toolbox needs to be optimized and upgraded, and the C language code standard check needs to be optimized, the C language code check package can be updated directly in the toolbox framework and can be run directly without redeployment and configuration.

[0073] Optionally, create a test pipeline based on at least one test case, including:

[0074] Create an initial pipeline based on the test requirement information.

[0075] It should be noted that the initial pipeline can be the initial framework of the test pipeline built after receiving the test requirement information. For example, after receiving the test requirement information, a process framework that can complete the test function is built, and the process framework can include a test start mark, inserting several test cases, inserting the connection relationship between each test case, and a test end mark.

[0076] Insert at least one test case into the initial pipeline in a preset order to obtain a test pipeline.

[0077] Among them, the preset order is obtained by querying the preset relationship table according to the vehicle development stage information, and the preset relationship table includes the correspondence between each vehicle development stage and the arrangement order of the test cases required for each vehicle development stage.

[0078] Exemplarily, the preset relationship table records: the test case set corresponding to the primary vehicle stage is: test case 1, test case 3, test case 5, and the preset order corresponding to each test case is: test case 1→test case 5→test case 3; the test case set corresponding to the first tooling sample stage is: test case 1, test case 2, test case 4, and the preset order corresponding to each test case is: test case 2→test case 1→test case 4; the test case set corresponding to the second tooling sample stage is: test case 2, test case 5, test case 6, and the preset order corresponding to each test case is: test case 6→test case 2→test case 5. According to the vehicle development stage information (for example, the vehicle development stage information is the second tooling prototype stage), query the preset relationship table to obtain the test case set (test case 2, test case 5, test case 6) and the preset order (test case 6→test case 2→test case 5) corresponding to the vehicle development stage information (second tooling prototype stage), and insert each test case (test case 2, test case 5, test case 6) into the initial pipeline according to the preset order (test case 6→test case 2→test case 5) to obtain the test pipeline.

[0079] The technical solution of the embodiment of the present invention can configure the pipeline of test content on demand without the need for code foundation. Through interface settings and operations, the threshold of configuration and operation is lowered. At the same time, the optimized test architecture and test toolbox can be updated in an architectural manner, and the test modules can be flexibly replaced to optimize the test functions of the test modules.

[0080] Optionally, after generating the test result report, it also includes:

[0081] Send the test result report to the target system and update the test task status corresponding to the test requirement information.

[0082] In this embodiment, the target system may be a system capable of visually displaying test results.

[0083] The test task status includes: not tested, testing, tested successfully, and tested failed.

[0084] Specifically, after the test is completed, the test result report is sent to the target system for visual display, and the test task status corresponding to the test requirement information is updated so that the user can know the test result more intuitively.

[0085] As an exemplary description of an embodiment of the present invention, the test method of this embodiment can be configured in an assembly line automation test system, and the assembly line automation test system can simultaneously interact with the project management system and the instant messaging office software. Project managers can issue test tasks to testers in the project management system. Testers receive work notifications in the instant messaging office software and can log in to the assembly line automation test system to view task-related plans. Testers click on the task to log in to the assembly line automation test system, configure the test, and start the test. The assembly line automation test system updates the test status in real time, records the test log, and after the test is completed, sends the test result report to the project management system and the instant messaging office software to inform the project manager and tester, etc. In this process, software development engineers, test engineers, and project managers can accurately control the progress of the test and read the test results.

[0086] For example, the development and testing process of the domain controller: First, the project manager releases the development task of the domain controller, and the developers and testers receive the task notification. The developers carry out specific function development, such as the seat heating signal processing function module. According to the test requirements, the testers configure the seat heating signal processing function module test pipeline, configure the Inerface interface test, CAN signal interface test and static code test, etc. After the developer submits the code and software generated by the model, the tester and the project manager receive the project progress notification in the instant messaging system. The tester deploys the code and software, debugs the pipeline, and starts testing. For the configuration of the test pipeline, different test modules can be selected from the test module library according to the test requirements for sequential testing. For the same test object, multiple pipelines can be configured as needed at different stages. For example, for the seat heating signal processing function module, a fast test pipeline can be established, such as a pipeline for protecting static code testing and Inerface interface testing, or a more detailed pipeline including module function testing, CAN signal testing, LIN signal testing, static code testing, Inerface interface testing, etc. can be established. After the test is completed, the pipeline automation test system records the test data and test report. The tester receives the test end notification, logs in to the pipeline automation test system to confirm the test results, confirms that the test results are correct, submits the test report, and confirms that the test is completed. The pipeline automation test system synchronizes information to the project management system and updates the test task status. At the same time, the development engineer and project manager also receive the test task completion notification and test report in the instant messaging system. The pipeline automation test system of the embodiment of the present invention breaks through the information barrier between the project management system and the instant messaging office software through the interface with the work communication software, updates the software test progress and test results in real time, and sends the test results and test reports to the tester and project leader after the test is completed, so that the software development engineers, test engineers and project managers can reduce the communication costs, have a precise control over the progress and test results of the software, and complete the entire test work and communication closed loop.

[0087] Embodiment 2

[0088] Figure 2 is a schematic diagram of the structure of a test device in an embodiment of the present invention. This embodiment is applicable to the case of testing. The device can be implemented in software and / or hardware. The device can be integrated in any device that provides a test function, such as Figure 2 As shown, the testing device specifically includes: an acquisition module 201 , a determination module 202 , a creation module 203 and a generation module 204 .

[0089] Wherein, the acquisition module 201 is used to acquire test requirement information;

[0090] A determination module 202, configured to determine at least one test case from a preset test case library according to the test requirement information;

[0091] A creation module 203, used to create a test pipeline according to each of the test cases;

[0092] The generating module 204 is used to perform a test operation according to the test pipeline and generate a test result report.

[0093] Optionally, the test requirement information carries vehicle development stage information, wherein the vehicle development stage information includes: primary vehicle stage, first tooling sample stage and second tooling sample stage.

[0094] Optionally, the determining module 202 includes:

[0095] A query unit, configured to query a preset relationship table according to the vehicle development stage information to obtain a set of test cases corresponding to the vehicle development stage information, wherein the preset relationship table includes a correspondence between each vehicle development stage and a required test case;

[0096] The selection unit is used to select at least one test case from the preset test case library according to the test case set.

[0097] Optionally, the preset test case library includes at least one of: port test cases, CAN communication test cases, Ethernet communication test cases, LIN communication test cases, functional test cases, static code test cases and fault test cases.

[0098] Optionally, the creation module 203 includes:

[0099] A creation unit, used to create an initial pipeline according to the test requirement information;

[0100] An insertion unit is used to insert at least one of the test cases into the initial pipeline in a preset order to obtain a test pipeline, wherein the preset order is obtained by querying a preset relationship table according to the vehicle development stage information, and the preset relationship table includes the correspondence between each vehicle development stage and the arrangement order of the test cases required for each vehicle development stage.

[0101] Optionally, the device further comprises:

[0102] The sending and updating module is used to send the test result report to the target system after generating the test result report, and to update the test task status corresponding to the test requirement information.

[0103] The above-mentioned product can execute the test method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0104] Embodiment 3

[0105] Figure 3 A schematic diagram of the structure of an electronic device 30 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0106] like Figure 3 As shown, the electronic device 30 includes at least one processor 31, and a memory connected to the at least one processor 31, such as a read-only memory (ROM) 32, a random access memory (RAM) 33, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 31 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 32 or the computer program loaded from the storage unit 38 to the random access memory (RAM) 33. In the RAM 33, various programs and data required for the operation of the electronic device 30 can also be stored. The processor 31, the ROM 32, and the RAM 33 are connected to each other through a bus 34. An input / output (I / O) interface 35 is also connected to the bus 34.

[0107] A number of components in the electronic device 30 are connected to the I / O interface 35, including: an input unit 36, such as a keyboard, a mouse, etc.; an output unit 37, such as various types of displays, speakers, etc.; a storage unit 38, such as a disk, an optical disk, etc.; and a communication unit 39, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 39 allows the electronic device 30 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0108] The processor 31 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 31 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The processor 31 performs the various methods and processes described above, such as the test method:

[0109] Obtain test requirement information;

[0110] Determine at least one test case from a preset test case library according to the test requirement information;

[0111] Creating a test pipeline according to at least one of the test cases;

[0112] Perform test operations according to the test pipeline and generate a test result report.

[0113] In some embodiments, the test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 38. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 30 via the ROM 32 and / or the communication unit 39. When the computer program is loaded into the RAM 33 and executed by the processor 31, one or more steps of the test method described above may be performed. Alternatively, in other embodiments, the processor 31 may be configured to execute the test method in any other appropriate manner (e.g., by means of firmware).

[0114] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0115] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0116] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0117] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0118] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0119] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0120] In one embodiment, the present invention further includes a computer program product, the computer program product includes a computer program, and the computer program implements the testing method of any embodiment of the present invention when executed by a processor.

[0121] In the process of implementation, the computer program product can be written in one or more programming languages ​​or a combination thereof to perform the computer program code of the present invention, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet).

[0122] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0123] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A testing method, characterized in that: include: Obtain test requirement information; Determine at least one test case from a preset test case library according to the test requirement information; Creating a test pipeline according to at least one of the test cases; Perform test operations according to the test pipeline and generate a test result report.

2. The method according to claim 1, characterized in that The test requirement information carries vehicle development stage information, wherein the vehicle development stage information includes: a primary vehicle stage, a first tooling sample stage, and a second tooling sample stage.

3. The method according to claim 2, characterized in that Determining at least one test case from a preset test case library according to the test requirement information includes: According to the vehicle development stage information, a preset relationship table is queried to obtain a set of test cases corresponding to the vehicle development stage information, wherein the preset relationship table includes a corresponding relationship between each vehicle development stage and a required test case; At least one test case is selected from the preset test case library according to the test case set.

4. The method according to claim 1, characterized in that: The preset test case library includes: at least one of: port test cases, CAN communication test cases, Ethernet communication test cases, LIN communication test cases, functional test cases, static code test cases and fault test cases.

5. The method according to claim 3, characterized in that: Creating a test pipeline according to at least one of the test cases comprises: Creating an initial pipeline according to the test requirement information; Insert at least one of the test cases into the initial pipeline in a preset order to obtain a test pipeline, wherein the preset order is obtained by querying a preset relationship table according to the vehicle development stage information, and the preset relationship table includes the correspondence between each vehicle development stage and the arrangement order of the test cases required for each vehicle development stage.

6. The method according to claim 1, characterized in that After the test result report is generated, it also includes: The test result report is sent to the target system, and the test task status corresponding to the test requirement information is updated.

7. A testing device, characterized in that: include: Acquisition module, used to obtain test requirement information; A determination module, used to determine at least one test case from a preset test case library according to the test requirement information; A creation module, used to create a test pipeline according to each of the test cases; A generation module is used to perform test operations according to the test pipeline and generate a test result report.

8. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the testing method according to any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the testing method according to any one of claims 1 to 6 when executed.

10. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the computer program implements the testing method according to any one of claims 1 to 6.