CN116663295A - Automatic testing method and device for clutch, upper computer, medium and system - Google Patents

Automatic testing method and device for clutch, upper computer, medium and system Download PDF

Info

Publication number
CN116663295A
CN116663295A CN202310650885.9A CN202310650885A CN116663295A CN 116663295 A CN116663295 A CN 116663295A CN 202310650885 A CN202310650885 A CN 202310650885A CN 116663295 A CN116663295 A CN 116663295A
Authority
CN
China
Prior art keywords
test
clutch
result
script
logic
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
CN202310650885.9A
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.)
FAW Group Corp
Original Assignee
FAW Group Corp
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 FAW Group Corp filed Critical FAW Group Corp
Priority to CN202310650885.9A priority Critical patent/CN116663295A/en
Publication of CN116663295A publication Critical patent/CN116663295A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Testing Of Devices, Machine Parts, Or Other Structures Thereof (AREA)
  • Hydraulic Clutches, Magnetic Clutches, Fluid Clutches, And Fluid Joints (AREA)

Abstract

The invention discloses a clutch automatic test method, a device, an upper computer, a medium and a system. The method comprises the following steps: acquiring a test input table, and importing the test input table into a clutch test script, wherein the test input table comprises input variables of a plurality of scenes; executing the clutch test script, and calling test logic in the clutch script to generate a test result; comparing the test result with an actual result through the clutch test script, and determining the correctness of the test logic call according to the comparison result; and if the test logic call is correct, generating a test report for the test result and outputting the test report. The method can cover various test scenes, and can automatically complete the clutch test by executing the clutch test script. In addition, the correctness of the test logic call can be judged, and the success rate of the test is improved.

Description

Automatic testing method and device for clutch, upper computer, medium and system
Technical Field
The embodiment of the invention relates to the technical field of automatic testing, in particular to a clutch automatic testing method, a device, an upper computer, a medium and a system.
Background
The HIL test of transmission controller clutches is a software test performed by simulating the operating scenario of a whole vehicle transmission. The clutch control module belongs to a clutch control part in a TCU (Transmission Control Unit) transmission controller, and is mainly responsible for controlling the output of the speed, torque and the like of the transmission, a calibration measuring tool and an HIL test environment are used in the test process, the test working condition of the whole vehicle is simulated through the HIL, and an input value and an output value acquired by the calibration measuring tool are observed and compared with an expected value.
The existing manual testing method only aims at a plurality of scenes to test, cannot cover all conditions, has complex module logic, various testing conditions, huge manual testing task quantity, unrepeatability and low testing efficiency.
Disclosure of Invention
The invention provides an automatic testing method, device, upper computer, medium and system for a clutch, which are used for solving the problems that the manual testing efficiency is low and all testing scenes cannot be covered.
According to an aspect of the present invention, there is provided a clutch automation test method including:
acquiring a test input table, and importing the test input table into a clutch test script, wherein the test input table comprises input variables of a plurality of scenes;
executing the clutch test script, and calling test logic in the clutch script to generate a test result;
comparing the test result with an actual result through the clutch test script, and determining the correctness of the test logic call according to the comparison result;
and if the test logic call is correct, generating a test report for the test result and outputting the test report.
According to another aspect of the present invention, there is provided an automated clutch testing apparatus comprising:
the system comprises an acquisition module, a test input table and a control module, wherein the acquisition module is used for acquiring a test input table, importing the test input table into a clutch test script, and the test input table comprises input variables of a plurality of scenes;
the execution module is used for executing the clutch test script and calling test logic in the clutch script to generate a test result;
the determining module is used for comparing the test result with the actual result through the clutch test script and determining the correctness of the test logic call according to the comparison result;
and the generating module is used for generating a test report to output the test result if the test logic call is correct.
According to another aspect of the present invention, there is provided an upper computer, including: at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the clutch automatic test method of any one of the embodiments of the present invention.
According to another aspect of the present invention, there is provided a computer readable storage medium storing computer instructions for causing a processor to execute the clutch automation test method according to any one of the embodiments of the present invention.
According to another aspect of the invention, an automatic test system is provided, the system comprises the upper computer, the simulation equipment and the controller according to the one aspect of the invention, the simulation equipment is connected with the upper computer, and the controller is connected with the upper computer through a hardware CAN interface;
the upper computer comprises a man-machine interface and a data acquisition interface, simulation model operation data in the simulation equipment are obtained through the man-machine interface, and simulation test parameters of the controller are obtained through the data acquisition interface;
and the upper computer executes clutch automation test through the clutch test script.
According to the technical scheme, the test input table is obtained and is imported into the clutch test script, and the test input table comprises input variables of a plurality of scenes; executing the clutch test script, and calling test logic in the clutch script to generate a test result; comparing the test result with an actual result through the clutch test script, and determining the correctness of the test logic call according to the comparison result; if the test logic call is correct, the test result is generated to output a test report, so that the problems of low manual test efficiency and small test coverage are solved, and the beneficial effects of wide test coverage, test efficiency improvement and test logic call correctness judgment are achieved.
It should be understood that the description in this section is not intended to identify key or critical features of the embodiments of the invention or to delineate the scope of the invention. Other features of the present invention will become apparent from the description that follows.
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 apparent that the drawings in the following description are only 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 a clutch automatic test method according to a first embodiment of the present invention;
fig. 2 is a schematic flow chart of a clutch automatic testing method according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of an automatic clutch testing device according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a host computer of the clutch automatic test method according to the embodiment of the invention;
fig. 5 is a schematic structural diagram of an automated testing system according to a fifth embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the present invention, a technical solution in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in which it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the present invention without making any inventive effort, shall fall within the scope of the present invention. It should be understood that the various steps recited in the method embodiments of the present invention may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the invention is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present invention and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the invention described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those skilled in the art will appreciate that "one or more" is intended to be construed as "one or more" unless the context clearly indicates otherwise.
The names of messages or information interacted between the devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of such messages or information.
Example 1
Fig. 1 is a schematic flow chart of a clutch automatic testing method according to an embodiment of the present invention, where the method is applicable to a case of automatically testing a clutch module of a vehicle, and the method may be performed by a clutch automatic testing device, where the device may be implemented by software and/or hardware and is generally integrated on a HIL hardware-in-loop simulation test apparatus, and in this embodiment, may be performed by an upper computer.
As shown in fig. 1, a clutch automation testing method provided in an embodiment of the present invention includes the following steps:
s110, acquiring a test input table, and importing the test input table into a clutch test script, wherein the test input table comprises input variables of a plurality of scenes.
The plurality of scenes may include a vehicle driving scene, a vehicle stationary scene, a vehicle turning scene, and the like, among others. The input variables may include clutch-related variables such as temperature change, gear change, clutch oil pressure change, and the like.
The test input table can comprise pre-conditions of different working conditions, input variables and corresponding actual results. The clutch test script may include cyclical inputs of variables, execution of test logic, execution of a subject of a test, test results, and generation of a test report.
In the present embodiment, the acquisition manner of the test input form is not particularly limited, and may be acquired in any possible manner. For example, the test input form may be written by a tester.
In the present embodiment, the test input form may be imported into the clutch test script in various ways, without specific limitation. Illustratively, the variable input is performed in a loop by writing a Python-based script, traversing the test input form.
S120, executing the clutch test script, and calling test logic in the clutch script to generate a test result.
All possible test steps included in the clutch test script do not need to additionally generate test cases.
In this embodiment, the test logic may be invoked according to an input variable, at least one algorithm may be determined according to the input variable, and a calculation formula corresponding to the algorithm may be used as a test logic.
The test results corresponding to different input variables and different test logics are different, and the test results can be understood as results obtained through calculation of a calculation formula.
S130, comparing the test result with an actual result through the clutch test script, and determining the correctness of the test logic call according to the comparison result.
Because the clutch module has complex characteristics, the input variables correspond to a plurality of different test logics, and if the test logics are called incorrectly, the accuracy of the test results is reduced, so that whether the test logics are correct or not is verified to be a key step.
In this embodiment, the correctness of the called test logic is verified through the clutch test script, that is, the clutch test script can verify whether the call of the test logic is correct.
In this embodiment, the clutch test script may compare the test result with the actual result to obtain a comparison result, and further determine whether the test logic call is correct according to the comparison result.
The actual result can be understood as a real calculation result, the actual result can be calculated from a controller, and the controller can calculate the input variable according to a correct calculation formula to obtain the actual result.
Wherein determining whether the test logic call is correct based on the comparison result may include: if the comparison result represents that the test result is the same as the actual result, the test logic can be determined to be correctly called; if the comparison result represents that the test result is different from the actual result, the test logic call error can be determined.
The clutch torque is tested by executing a clutch test script, the test logic is called according to the clutch torque test, and a torque value, namely a test result, is obtained by operation according to the called test logic; and comparing the torque value with a corresponding actual torque value, and determining whether the test logic call is correct or not according to the comparison result.
And S140, if the test logic call is correct, generating a test report for outputting the test result.
The specific form of the test report is not limited, and the test report may be in the form of a table, a picture or a document. It is understood that the test results are formed into a test report in the form of a table, a picture, or a document.
In this embodiment, if the test result characterizes that the test logic call is correct, the test result may be generated to output a test report, and a process of generating the test report is not described herein.
The first embodiment of the invention provides an automatic clutch testing method, which comprises the steps of firstly, acquiring a testing input table, and importing the testing input table into a clutch testing script, wherein the testing input table comprises input variables of a plurality of scenes; then executing the clutch test script, and calling test logic in the clutch script to generate a test result; comparing the test result with an actual result through the clutch test script, and determining the correctness of the test logic call according to the comparison result; and finally, if the test logic call is correct, generating a test report for the test result and outputting the test report. The method can cover various test scenes, can automatically complete the clutch test by executing the clutch test script, and can also judge the correctness of the test logic call so as to improve the test success rate.
On the basis of the above embodiments, modified embodiments of the above embodiments are proposed, and it is to be noted here that only the differences from the above embodiments are described in the modified embodiments for the sake of brevity of description.
In one embodiment, the input variables for the plurality of scenes include one or more of: temperature variation, environmental variation, gear type variation, clutch oil pressure variation, battery valve current variation, engine speed variation, and clutch speed variation.
The input variables of a plurality of scenes can be obtained from a controller, and the controller obtains simulation data from the HIL whole-vehicle semi-physical simulation system.
Further, the determining process of the test logic includes: and determining at least one algorithm according to the input variable through the clutch test script, and taking a calculation formula corresponding to the algorithm as a test logic to obtain at least one test logic.
In one embodiment, the input variables are gear type and current environment variable, correspondingly, a plurality of torque algorithms are determined according to the gear type and the current environment variable through the clutch test script, and a formula corresponding to one torque algorithm is used as a test logic to calculate a clutch torque value as a test result.
The formula corresponding to one torque algorithm can be used as a test logic, the clutch torque value calculated according to the formula corresponding to the torque algorithm can be used as a test result, and a plurality of torque algorithms can calculate a plurality of test results.
In one embodiment, determining the correctness of the test logic call based on the comparison result includes: if the comparison result shows that the error between the test result and the actual result is within the preset range, determining that the test logic call is correct; and if the comparison result shows that the error between the test result and the actual result is larger than a preset range, determining that the test logic calls the error.
The preset range may be a preset error range, and the preset range may be set according to a test requirement, which is not specifically limited herein.
The preset range is 0.1-0.3, and if the error between the calculated torque value and the actual torque value is 0.1, the test logic can be determined to be correctly called, namely, the formula for calculating the torque is correct; if the error between the calculated torque value and the actual torque value is 0.5, it can be determined that the test logic calls for errors, and other test logic needs to be called again.
Example two
Fig. 2 is a schematic flow chart of a clutch automation testing method according to a second embodiment of the present invention, where the second embodiment is optimized based on the above embodiments. For details not yet described in detail in this embodiment, refer to embodiment one.
As shown in fig. 2, a clutch automation testing method provided in a second embodiment of the present invention includes the following steps:
s210, acquiring a test input table, and importing the test input table into a clutch test script, wherein the test input table comprises input variables of a plurality of scenes.
S220, executing the clutch test script, and calling test logic in the clutch script to generate a test result.
S230, comparing the test result with an actual result through the clutch test script, and determining the correctness of the test logic call according to the comparison result.
S240, if the test logic call is correct, generating a test report for outputting the test result.
S250, if the test logic is incorrectly called, calling other test logic in the clutch test script again to generate a new test result until the correctly called test logic is determined, and generating a test report output from the test result corresponding to the correctly called test logic.
The new test result generated each time needs to be compared with the actual result, and whether the called test logic is correct or not is determined according to the comparison result.
The clutch torque test corresponds to three test logics, the test logic 1 is called for the first time to generate a test result 1, the test result 1 is compared with an actual result, if the test logic call error is determined according to the comparison result, the test logic 2 can be called to generate a test result 2, the test result 2 is compared with the actual result, and if the test logic call is determined to be correct according to the comparison result, the test result 2 is generated to generate a test report and output.
It should be noted that, if it is determined that all the corresponding test logics are incorrectly called, the test result with the smallest error with the actual result in all the test results is generated and output. For example, if all of the 3 test logics corresponding to the clutch torque test call errors, a test result with the smallest error with the actual result may be selected from the test result 1, the test result 2 and the test result 3 to generate a test report output.
The embodiment of the invention provides a clutch automatic test method, which is used for explaining the condition that test logic call is incorrect. According to the method, the correct test logic can be used for testing by changing the call of the test logic, so that the accuracy of a test result is improved.
Example III
Fig. 3 is a schematic structural diagram of a clutch automatic testing device according to a third embodiment of the present invention, which is applicable to the case of performing automatic testing on a clutch module of a vehicle, wherein the device may be implemented by software and/or hardware and is generally integrated on an upper computer.
As shown in fig. 3, the apparatus includes: the system comprises an acquisition module 110, an execution module 120, a determination module 130 and a generation module 140.
An obtaining module 110, configured to obtain a test input table, and import the test input table into a clutch test script, where the test input table includes input variables of a plurality of scenes;
the execution module 120 is configured to execute the clutch test script, and call test logic in the clutch script to generate a test result;
the determining module 130 is configured to compare the test result with an actual result through the clutch test script, and determine the correctness of the test logic call according to the comparison result;
and the generating module 140 is used for generating a test report to output the test result if the test logic call is correct.
In this embodiment, the device first acquires a test input table through the acquisition module 110, and imports the test input table into a clutch test script, where the test input table includes input variables of a plurality of scenes; then executing the clutch test script through the execution module 120, and calling test logic in the clutch script to generate a test result; comparing the test result with an actual result through the clutch test script by a determining module 130, and determining the correctness of the test logic call according to the comparison result; finally, the generating module 140 is configured to generate a test report for outputting the test result if the test logic call is correct.
The embodiment provides an automatic clutch testing device which can cover various testing scenes, automatically complete clutch testing and improve testing success rate.
Further, the input variables of the plurality of scenes include one or more of: temperature variation, environmental variation, gear type variation, clutch oil pressure variation, battery valve current variation, engine speed variation, and clutch speed variation.
Further, the determining module 130 is specifically configured to: if the comparison result shows that the error between the test result and the actual result is within the preset range, determining that the test logic call is correct; and if the comparison result shows that the error between the test result and the actual result is larger than a preset range, determining that the test logic calls the error.
Further, the determining process of the test logic includes: and determining at least one algorithm according to the input variable through the clutch test script, and taking a calculation formula corresponding to the algorithm as a test logic to obtain at least one test logic.
Further, the input variables are gear type and current environment variable, correspondingly, a plurality of torque algorithms are determined according to the gear type and the current environment variable through the clutch test script, and a formula corresponding to one torque algorithm is used as a test logic to calculate a clutch torque value as a test result.
Further, the device also comprises a calling module, which is used for calling other test logics in the clutch test script again to generate new test results if the test logic is incorrectly called until the correctly called test logic is determined, and generating test report output according to the test results corresponding to the correctly called test logic.
The clutch automatic test device can execute the clutch automatic test method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
Example IV
Fig. 4 shows a schematic diagram of a host computer 10 that may be used to implement an embodiment of the present invention. The upper computer may refer to a computer that directly issues a manipulation command. The components shown herein, their connections and relationships, and their functions, are meant to be exemplary only, and are not meant to limit implementations of the inventions described and/or claimed herein.
As shown in fig. 4, the upper computer 10 includes at least one processor 11, and a memory, such as a Read Only Memory (ROM) 12, a Random Access Memory (RAM) 13, etc., communicatively connected to the at least one processor 11, in which the memory stores a computer program executable by the at least one processor, and the processor 11 may perform various appropriate actions and processes according to the computer program stored in the Read Only Memory (ROM) 12 or the computer program loaded from the storage unit 18 into the Random Access Memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the upper computer 10 can also be stored. The processor 11, the ROM 12 and the RAM 13 are connected to each other via a bus 14. An input/output (I/O) interface 15 is also connected to bus 14.
A plurality of components in the host computer 10 are connected to the I/O interface 15, including: an input unit 16 such as a keyboard, a mouse, etc.; an output unit 17 such as various types of displays, speakers, and the like; a storage unit 18 such as a magnetic disk, an optical disk, or the like; and a communication unit 19 such as a network card, modem, wireless communication transceiver, etc. The communication unit 19 allows the upper computer 10 to exchange information/data with other devices through a computer network such as the internet and/or various telecommunication networks.
The processor 11 may be a variety of general and/or special purpose processing components having processing and computing capabilities. Some examples of processor 11 include, but are not limited to, a Central Processing Unit (CPU), a Graphics Processing Unit (GPU), various specialized Artificial Intelligence (AI) computing chips, various processors running machine learning model algorithms, digital Signal Processors (DSPs), and any suitable processor, controller, microcontroller, etc. The processor 11 performs the various methods and processes described above, such as clutch automated testing methods.
In some embodiments, the clutch automated test method may be implemented as a computer program tangibly embodied on a computer-readable storage medium, such as the storage unit 18. In some embodiments, part or all of the computer program may be loaded and/or installed onto the electronic device 10 via the ROM 12 and/or the communication unit 19. When a computer program is loaded into RAM 13 and executed by processor 11, one or more of the steps of the clutch automation test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the clutch automation test method in any other suitable manner (e.g., by means of firmware).
Various implementations of the systems and techniques described here above may be implemented in digital electronic circuitry, integrated circuit systems, field Programmable Gate Arrays (FPGAs), application Specific Integrated Circuits (ASICs), application Specific Standard Products (ASSPs), systems On Chip (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs, the one or more computer programs may be executed and/or interpreted on a programmable system including at least one programmable processor, which may be a special purpose or general-purpose programmable processor, that may receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device.
A computer program for carrying out 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, special purpose computer, or other programmable data processing apparatus, such that the computer programs, when executed by the processor, cause the functions/acts specified in the flowchart and/or block diagram block or blocks to be implemented. The computer program may execute entirely on the machine, partly on the machine, as a stand-alone software package, partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of the present invention, a computer-readable storage medium may be a tangible medium that can contain, or store a computer program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable storage medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. Alternatively, the computer readable storage medium may be a machine readable signal medium. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
To provide for interaction with a user, the systems and techniques described here can be implemented on a host computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) through which a user can provide input to the host computer. Other kinds of devices may also be used to provide for interaction with a user; for example, 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, speech input, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a background component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such background, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), wide Area Networks (WANs), blockchain networks, and the internet.
The computing system may include clients and servers. The client and server are typically remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other. The server can be a cloud server, also called a cloud computing server or a cloud host, and is a host product in a cloud computing service system, so that the defects of high management difficulty and weak service expansibility in the traditional physical hosts and VPS service are overcome.
Example five
Fig. 5 is a schematic structural diagram of an automated test system according to a fifth embodiment of the present invention, as shown in fig. 5, the system includes an upper computer 100, a simulation device 200 and a controller 300, the simulation device 200 is connected to the upper computer 100, and the controller 300 is connected to the upper computer 100 through a hardware CAN interface 400;
the upper computer 100 comprises a man-machine interface 101 and a data acquisition interface 102, wherein simulation model operation data in the simulation equipment 200 are acquired through the man-machine interface 101, and simulation test parameters of the controller 300 are acquired through the data acquisition interface 102;
the upper computer 100 performs clutch automation testing through a clutch test script.
The simulation device 200 may be a dstoce HIL simulation device, and the human-machine interface 101 may be a control desk interface.
In this embodiment, the process of executing the clutch automation test by the upper computer 100 through the clutch test script includes:
acquiring a test input table, and importing the test input table into a clutch test script, wherein the test input table comprises input variables of a plurality of scenes;
executing the clutch test script, and calling test logic in the clutch script to generate a test result;
comparing the test result with an actual result through the clutch test script, and determining the correctness of the test logic call according to the comparison result;
if the test logic call is correct, generating a test report from the test result and outputting the test report;
and if the test logic is incorrectly called, calling other test logic in the clutch test script again to generate a new test result until the correctly called test logic is determined, and generating a test report output according to the test result corresponding to the correctly called test logic.
The automatic test system can execute the clutch automatic test method provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be appreciated that various forms of the flows shown above may be used to reorder, add, or delete steps. For example, the steps described in the present invention may be performed in parallel, sequentially, or in a different order, so long as the desired results of the technical solution of the present invention are achieved, and the present invention is not limited herein.
The above embodiments do not limit the scope of the present invention. It will be apparent to those skilled in the art that various modifications, combinations, sub-combinations and alternatives are possible, depending on design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of the present invention should be included in the scope of the present invention.

Claims (10)

1. A method for automated testing of a clutch, the method comprising:
acquiring a test input table, and importing the test input table into a clutch test script, wherein the test input table comprises input variables of a plurality of scenes;
executing the clutch test script, and calling test logic in the clutch script to generate a test result;
comparing the test result with an actual result through the clutch test script, and determining the correctness of the test logic call according to the comparison result;
and if the test logic call is correct, generating a test report for the test result and outputting the test report.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
and if the test logic is incorrectly called, calling other test logic in the clutch test script again to generate a new test result until the correctly called test logic is determined, and generating a test report output according to the test result corresponding to the correctly called test logic.
3. The method of claim 1, wherein the input variables for the plurality of scenes comprise one or more of: temperature variation, environmental variation, gear type variation, clutch oil pressure variation, battery valve current variation, engine speed variation, and clutch speed variation.
4. The method of claim 1, wherein determining the correctness of the test logic call based on the comparison result comprises:
if the comparison result shows that the error between the test result and the actual result is within the preset range, determining that the test logic call is correct;
and if the comparison result shows that the error between the test result and the actual result is larger than a preset range, determining that the test logic calls the error.
5. The method of claim 1, wherein the determining of the test logic comprises: and determining at least one algorithm according to the input variable through the clutch test script, and taking a calculation formula corresponding to the algorithm as a test logic to obtain at least one test logic.
6. The method according to claim 5, wherein the input variables are a gear type and a current environment variable, and the clutch test script is used for determining a plurality of torque algorithms according to the gear type and the current environment variable, and a formula corresponding to one torque algorithm is used as a test logic to calculate a clutch torque value as a test result.
7. An automated clutch testing device, the device comprising:
the system comprises an acquisition module, a test input table and a control module, wherein the acquisition module is used for acquiring a test input table, importing the test input table into a clutch test script, and the test input table comprises input variables of a plurality of scenes;
the execution module is used for executing the clutch test script and calling test logic in the clutch script to generate a test result;
the determining module is used for comparing the test result with the actual result through the clutch test script and determining the correctness of the test logic call according to the comparison result;
and the generating module is used for generating a test report to output the test result if the test logic call is correct.
8. The utility model provides a host computer which characterized in that, the host computer includes:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein,,
the memory stores a computer program executable by the at least one processor to enable the at least one processor to perform the clutch automation test method of any one of claims 1-6.
9. A computer readable storage medium storing computer instructions for causing a processor to execute the clutch automation test method of any one of claims 1-6.
10. An automated testing system, comprising the host computer, simulation equipment and a controller according to claim 8, wherein the simulation equipment is connected with the host computer, and the controller is connected with the host computer through a hardware CAN interface;
the upper computer comprises a man-machine interface and a data acquisition interface, simulation model operation data in the simulation equipment are obtained through the man-machine interface, and simulation test parameters of the controller are obtained through the data acquisition interface;
and the upper computer executes clutch automation test through the clutch test script.
CN202310650885.9A 2023-06-02 2023-06-02 Automatic testing method and device for clutch, upper computer, medium and system Pending CN116663295A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310650885.9A CN116663295A (en) 2023-06-02 2023-06-02 Automatic testing method and device for clutch, upper computer, medium and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310650885.9A CN116663295A (en) 2023-06-02 2023-06-02 Automatic testing method and device for clutch, upper computer, medium and system

Publications (1)

Publication Number Publication Date
CN116663295A true CN116663295A (en) 2023-08-29

Family

ID=87716756

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310650885.9A Pending CN116663295A (en) 2023-06-02 2023-06-02 Automatic testing method and device for clutch, upper computer, medium and system

Country Status (1)

Country Link
CN (1) CN116663295A (en)

Similar Documents

Publication Publication Date Title
CN116663295A (en) Automatic testing method and device for clutch, upper computer, medium and system
WO2023213094A1 (en) Dynamic data area selection method, system and device applied to integrated circuit device, and computer-readable storage medium
CN116626473A (en) Testing method, device, equipment and medium for vehicle-gauge master control chip
CN116684302A (en) Method and device for testing vehicle-mounted Ethernet
CN116467161A (en) Application testing method and device, electronic equipment and storage medium
CN113590498A (en) Method and system for testing application starting time of desktop operating system
CN117492822B (en) Change contrast method, device, electronic equipment and storage medium
CN117061564A (en) Verification method, device, equipment and medium for vehicle signal transmission state
CN118170777A (en) Method, device and equipment for processing ring data of hybrid motor hardware
CN115576902B (en) Method, device, equipment and medium for processing calibration description file
CN115080445B (en) Game test management method and system
CN116643549A (en) Safety-related calibration data determining method and device, electronic equipment and medium
CN117472751A (en) Vehicle system function analysis method, device, equipment and medium
CN117609064A (en) Unit test method and device, electronic equipment and storage medium
CN117784763A (en) Message sending method and device, electronic equipment and storage medium
CN118098322A (en) Method, device, equipment and medium for testing rotation vibration of hard disk
CN116756061A (en) External equipment adaptation method, device, equipment and storage medium
CN116383058A (en) Conversion method and device of software system model, electronic equipment and medium
CN116820903A (en) Three-dimensional digital simulation method and system for intelligent equipment
CN117632874A (en) Automatic drawing storage method, device, equipment and medium for CAD software
CN117288486A (en) Automatic calibration method and device for electronic parking brake system and storage medium
CN116303071A (en) Interface testing method and device, electronic equipment and storage medium
CN116400669A (en) Automatic test method, device, test equipment and medium for security level instrument control system
CN117195553A (en) Combustion system testing method, device, equipment and storage medium
CN117667666A (en) Software testing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination