A test procedure recording and playback apparatus and method

By designing a test process recording and playback device, the problem that existing tools cannot be applied to the testing of automotive electronic products was solved, achieving efficient test process recording and playback, improving testing efficiency and reducing costs.

CN116302920BActive Publication Date: 2026-02-27ZHENGZHOU JINGYIDA AUTO PARTS
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211544009.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-12-04
Publication Date
2026-02-27
Estimated Expiration
2042-12-04

AI Technical Summary

Technical Problem

Existing testing tools are not suitable for testing automotive electronic products, especially during rapid iterative development, leading to frequent maintenance and high costs.

Method used

A test process recording and playback device was designed, including an industrial-grade computer, an analog switch component, an analog load component, and a signal transmission and reception component. The device records and plays back the test process of automotive electronic products through a human-machine interaction module and a component control module, and uses human language encoding to store automated test scripts.

Benefits of technology

It enables efficient recording and playback of the test process, reduces the workload of testers, improves testing efficiency, is suitable for iterative development and regression testing, and reduces the development time and maintenance costs of automated test scripts.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116302920B_ABST
    Figure CN116302920B_ABST
Patent Text Reader

Abstract

A kind of test process recording and playback device, the device includes industrial grade computer, the industrial grade computer includes artificial interaction module, component control module, use case recording module and use case playback module, the artificial interaction module is connected with component control module, use case recording module, use case playback module and signal sending and receiving component respectively;The component control module is connected with analog switch component, the component control module sends to analog switch component after obtaining the operation information of artificial interaction module, the analog switch component is connected with the product to be tested by connecting component, and sends level signal to the product to be tested to control the product to be tested;The device of the application has high integration, adopts man-machine interface, and the unified interface facilitates the operation and observation of test personnel, on the basis of realizing product manual testing, integrates manual test process recording and playback function, so that the device is more suitable for iterative development and regression testing of product, reduces the labor intensity of test personnel.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application belongs to the technical field of computer, and particularly relates to a test process recording and playback device and method. BACKGROUND

[0002] In early vehicles, less electronic products are installed, and the functions are relatively simple. With the development of the times, the promotion of new energy technology, the development of vehicle automation and electrification, vehicles enter pure electrification, intelligentization and networking, and more and more electronic products are applied to vehicles, which increases the complexity of the functions of automobile electronic products. For example, with the attention of the state to the operation safety of passenger cars, especially the issuance and implementation of JT / T 1094-2016 "Safety Technical Conditions for Operating Passenger Cars", the management of the safety technology of operating passenger cars is further strengthened, and passenger cars are required to be equipped with many functions such as vehicle recorders, lane departure warning systems and forward collision warning systems.

[0003] In order to meet the market and the rapid iterative development based on customer demand, iterative development is developed. Iterative development is the development of a part of the functions or business logic code of a product in one iteration to meet the rapidly changing customer demand and market environment. Iterative development causes the number of product regression tests to increase, and automation testing is required.

[0004] At present, the general method is to develop an automatic test script to convert the human-driven test behavior into machine execution, so as to realize the rapid regression test of the product. However, the process of developing an automatic test script is usually independent of the manual test process of the product, occupies a separate time length, and faces the problems of frequent maintenance, poor usability and high cost caused by rapid iteration.

[0005] At present, there are also test process recording and playback tools based on computer screens, such as the WEB automatic test tool selenium used for web development and testing. However, in the test of automobile electronic products, the input is mostly a switch, the output is mostly current driving, and the screen display on the electronic product itself, etc. Based on these characteristics, the above recording tool based on computer screen cannot be applied.

[0006] How to design an automatic test process recording and playback device that can meet the rapid regression test has become a key problem to be solved. SUMMARY

[0007] In order to solve the above problems, a test process recording and playback device and method are provided.

[0008] The purpose of the present application is achieved in the following manner:

[0009] A test process recording and playback device, the device comprising: an industrial computer, an analog switch assembly, an analog load assembly and a signal sending and receiving assembly; the industrial computer comprising a manual interaction module, an assembly control module, a use case recording module and a use case playback module, the manual interaction module being connected with the assembly control module, the use case recording module, the use case playback module and the signal sending and receiving assembly respectively;

[0010] The assembly control module is connected with the analog switch assembly, the assembly control module sends the operation information of the manual interaction module to the analog switch assembly, the analog switch assembly is connected with the product under test through a connecting assembly and sends a level signal to the product under test to control the product under test;

[0011] The output of the product under test is connected with the analog load assembly, the product under test sends a level start signal to the analog load assembly; the analog load assembly is used to provide a load for the output of the product under test and to detect whether the output of the product under test is successful;

[0012] The analog load assembly is connected with the manual interaction module, and an indicator light of the analog load assembly is displayed on the manual interaction module;

[0013] One end of the signal sending and receiving assembly is connected with the manual interaction module in communication, and the other end is connected with the product under test in communication;

[0014] The use case recording module is used to record and save the operation process data in the test process of the product under test into a test case file; the use case playback module plays back the operation process data in the test case file.

[0015] The analog switch assembly is a switch board card, the analog load assembly is a resistance board card, the signal sending and receiving assembly is a CAN communication board card, and the connecting assembly comprises a wire harness and a plug-in.

[0016] A test process recording and playback method, the method comprises the following steps: selecting a test process recording through an industrial computer, loading a test scene; interpreting the test scene and displaying it to a tester; after the tester loads pre-defined product pin information through the matching software of the industrial computer, the artificial interaction module displays the simulation state information of the pin, the tester clicks the pin on the artificial interaction module to switch it to an effective state, the operation information is recorded and stored in the use case recording module, at the same time, the operation information is transmitted to the simulation switch component through the artificial interaction module and the component control module, the simulation switch component converts the information into high and low voltage, the voltage is transmitted to the test product through the connection component, the test product outputs a high signal to the simulation load component, the simulation load outputs a signal to the artificial interaction module, and the icon of the product is lit, then the tester clicks the product pin again to switch it to an ineffective state, the information is transmitted to the product in the same way, and the icon of the product is extinguished; after the test is completed, the tester confirms the test scene on the artificial interaction module, and if the test is passed, it means that the temporary storage information is valid, and the information is stored in the file in the form of human language, that is, a test case file is generated;

[0017] When the above test scene function needs to be repeatedly tested, the tester loads the recorded test case file in the industrial computer and clicks start playback, the use case playback module parses the information stored in the file and transmits it to the simulation switch component through the component control module; the simulation switch component converts the information into high and low voltage, the voltage is transmitted to the test product through the connection component, and the tester waits for the tester to confirm whether the product test is passed or not through the artificial interaction module; the result of the confirmation is stored in the test case file again through the use case recording module, so that the above test scene function is repeatedly tested.

[0018] The operation information includes clicking the switch and sending data; the sending data realizes the bidirectional communication between the artificial interaction module and the product under test through the signal sending and receiving component.

[0019] The device has the advantages that: the device has high integration, adopts a man-machine interface, and facilitates the operation and observation of the tester, on the basis of realizing the manual test of the product, the device integrates the manual test process recording and playback function, so that the device is more suitable for the iterative development and regression test of the product, and the labor intensity of the tester is reduced. BRIEF DESCRIPTION OF DRAWINGS

[0020] Figure 1 It is a principle block diagram of the device. DETAILED DESCRIPTION

[0021] The application will be further described in detail below in combination with the drawings and specific embodiments.

[0022] It should be noted that the following detailed description is exemplary in nature and is intended to provide further description of the application. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs.

[0023] A test process recording and playback device, the device comprising: an industrial computer, an analog switch assembly, an analog load assembly and a signal sending and receiving assembly; the industrial computer comprising a manual interaction module, an assembly control module, a use case recording module and a use case playback module, the manual interaction module being connected with the assembly control module, the use case recording module, the use case playback module and the signal sending and receiving assembly respectively;

[0024] The assembly control module is connected with the analog switch assembly, and the assembly control module sends operation information of the manual interaction module to the analog switch assembly; the analog switch assembly is connected with the product under test through a connecting assembly and sends a level signal to the product under test to control the product under test;

[0025] The output of the product under test is connected with the analog load assembly, and the product under test sends a level start signal to the analog load assembly; the analog load assembly is used to provide a load for the output of the product under test and to detect whether the output of the product under test is successful;

[0026] The analog load assembly is connected with the manual interaction module, and an indicator light of the analog load assembly is displayed on the manual interaction module;

[0027] One end of the signal sending and receiving assembly is connected in communication with the manual interaction module, and the other end is connected in communication with the product under test;

[0028] The use case recording module is used to record operation process data in a test process of the product under test and save the operation process data into a test case file; the use case playback module is used to play back the operation process data in the test case file.

[0029] The analog switch assembly is a switch board card, the analog load assembly is a resistance board card, the signal sending and receiving assembly is a CAN communication board card, and the connecting assembly comprises a wire harness and a plug-in.

[0030] A test process recording and playback method, the method comprising the method comprising selecting a test process recording by an industrial computer, loading a test scene; interpreting the test scene and displaying it to the tester; after the tester loads the pre-defined product pin information through the supporting software of the industrial computer, the artificial interaction module displays the simulation state information of the pin, and the tester clicks the pin on the artificial interaction module to switch it to an effective state, and the operation information is recorded and automatically stored in the background in the use case recording module, at the same time, the operation information is transmitted to the simulation switch component through the artificial interaction module and the component control module in turn, the simulation switch component converts the information into high and low voltage, the voltage is transmitted to the test product through the connecting component, the test product outputs a high signal to the simulation load component, the simulation load outputs a signal to the artificial interaction module, and the icon of the product is lit, then the tester clicks the product pin again to switch it to an ineffective state, and the information is transmitted to the product in the above manner, and the icon of the product is extinguished; after the test is completed, the tester confirms on the artificial interaction module that the test scene passes the test, which means that the temporarily stored information is valid, and the information is stored in the file in a human language, that is, a test case file is generated;

[0031] When the above test scene function needs to be repeatedly tested, the tester loads the recorded test case file in the industrial computer and clicks start playback, the use case playback module parses the information stored in the file and transmits it to the simulation switch component through the component control module; the simulation switch component converts the information into high and low voltage, and the voltage is transmitted to the test product through the connecting component, and waits for the tester to confirm whether the product passes the test or not through the artificial interaction module; the result of the confirmation is stored in the test case file again through the use case recording module, so that the above test scene function is repeatedly tested.

[0032] The operation information includes clicking the switch and sending data; the sending data realizes the bidirectional communication between the artificial interaction module and the product under test through the signal sending and receiving component.

[0033] Embodiment: using the device, the high beam function test process recording and playback of the automobile instrument product is completed.

[0034] The high beam function requirement is that when the instrument ON fire pin is effective and the high beam pin is effective, the high beam icon is lit.

[0035] The logic can be divided into the following test scenes:

[0036] Test scene 1: effective and ineffective of the high beam pin, control the high beam icon to light up and extinguish.

[0037] Test scene 2: effective and ineffective of the ON fire pin, control the high beam icon to light up and extinguish.

[0038] For scene 1, the tester loads the pre-defined product pin information on the industrial computer, and the simulation state information of the ON fire pin and the high beam lamp pin is displayed on the artificial interaction module. The tester clicks the ON fire pin and the high beam lamp pin on the artificial interaction module to switch to the effective state, and the operation information is recorded. The operation information is automatically stored in the use case recording module in the background, and is transmitted to the simulation switch assembly through the artificial interaction module and the component control module. The simulation switch assembly converts the information into high and low voltage, and the voltage is transmitted to the test product through the connection assembly. At this time, the product without problems outputs a high-level signal to the simulation load assembly, and the simulation load assembly transmits the output to the artificial interaction module, and the high beam lamp icon is lit. Then the tester clicks the high beam lamp pin to switch to the invalid state, and the information is transmitted to the product in the same way. The high beam lamp icon is extinguished. The scene 1 test is completed, and the tester confirms that the scene 1 test is passed on the artificial interaction module, which means that the stored information is valid, and the information is stored in the file in human language, that is, the test case file is generated.

[0039] The similar steps complete the scene 2 test process and recording. The tester determines that the test is completed, and stops the software.

[0040] When the high beam lamp function of the instrument needs to be repeatedly tested, the tester loads the recorded test case file in the industrial computer and clicks start playback. The use case playback module parses the information stored in the file and transmits it to the simulation switch assembly through the component control module. The simulation switch assembly converts the information into high and low voltage, and the voltage is transmitted to the test product through the connection assembly. The tester waits for the product to pass or not pass the test through the artificial interaction module. The result is stored in the test case file again through the use case recording module, so as to complete the repeated test of the high beam lamp function.

[0041] The present application can improve the speed of repeated testing and save time. The above example only describes one function of the instrument product, and there are more than 200 functions in the actual product. The manual repeated test takes a long time, and the efficiency can be improved obviously by using the device.

[0042] The application provides a test process recording and playback device for artificial testing, recording test process, and playing back test process of products.The device adopts automatic acquisition and recording technology, supports artificial testing, artificial test process recording and playback, selects test process recording, loads test scene, interprets test scene and displays it to testers, acquires tester operation process (clicking switch, interactive data, etc.), determines that the tester ends recording, stores process data into test case file, selects test process playback when testing the same scene, loads test case, interprets process data, uses process data to control switch, interactive data, etc., and waits for testers to confirm test results, and determines that the test case execution is completed, and the playback process is stopped.The application can record and playback test process, realizes automatic testing, improves test efficiency, and has high practical value.The artificial testing can record test steps such as switch simulation, load simulation, signal sending and receiving into a form convenient for artificial reading, store them in artificial test cases, form automatic test cases, and support playback of test cases in subsequent regression testing, and realize automatic testing.

[0043] The application further comprises a case, the simulation switch assembly, the simulation load assembly, the signal sending and receiving assembly, and the industrial computer are arranged in the case, the case provides structural support for the device, and has a heat dissipation function, and a heat dissipation assembly does not need to be additionally provided.

[0044] The device has a man-machine interactive interface technology.The man-machine interactive interface can control the assembly to complete switch simulation, load simulation, interactive data, etc., and can complete the entire artificial testing process of the product in one interactive interface.

[0045] The device adopts a less component replacement technology.By replacing the product connection assembly, artificial testing, process recording, process playback, etc.of various products can be supported.The technology realizes maximum hardware reuse and saves cost.

[0046] The device adopts a test process recording and playback technology.Through the artificial interactive module: provides an interactive process with testers, the assembly control module: provides a control process with products, the test case recording module: provides recording of the test process, and the test case playback module: provides playback of the test process, the artificial testing process of the product can be recorded, and the recorded process can be played back in subsequent regression testing, so that the labor achievements of testers can be reused.Meanwhile, the technology directly removes the development process of the automatic test script, saves working time, reduces the threshold, and enables testers who do not master programming languages to easily make automatic test scripts.

[0047] The device adopts an automatic test script to store technology in human language (the automatic test is executed based on a computer, generally a computer language such as C language, Python, etc. is used. The matching software developed combines with years of test work experience, researches the test cases used by manual execution, designs a mapping relationship between human language and component control code, and thus identifies the cases prepared in human language.). The generated automatic test script is directly stored in human language instead of machine language or other programming languages, which is convenient for reading and understanding. Meanwhile, the machine can also identify the stored human language and replay the test process.

[0048] Meanwhile, the device adopts an automatic test script and manual test case relationship mapping technology. The technology can map the automatic test script and the manual test case together to form a corresponding relationship, reduces the repeated preparation of the same information, and improves the reuse of the labor achievements of the test personnel. The mapping technology can also make the preparation of the automatic test script iterate with the iterative development of the product, and the test personnel can maintain the manual test case and the automatic test script at the same time, so that the confusion relationship caused by the separate maintenance of the automatic test script after the change of the manual test case is avoided, and the iterative development is better applied.

[0049] The above only describes the preferred embodiments of the present application, and it should be noted that for those skilled in the art, without departing from the overall concept of the present application, a number of changes and improvements can be made, which should also be considered as the protection range of the present application.

Claims

1. A device for recording and playing back a test process, characterized in that: The device includes: an industrial-grade computer, an analog switch assembly, an analog load assembly, and a signal transmission and reception assembly; the industrial-grade computer includes a human interaction module, a component control module, a test case recording module, and a test case playback module, and the human interaction module is connected to the component control module, the test case recording module, the test case playback module, and the signal transmission and reception assembly, respectively; The component control module is connected to the analog switch component. After obtaining the operation information of the human interaction module, the component control module sends it to the analog switch component. The analog switch component is connected to the product under test through a connection component and sends a level signal to the product under test to control the product under test. The output of the product under test is connected to an analog load component, and the product under test sends a level start signal to the analog load component; the analog load component is used to provide load for the output of the product under test and to detect whether the output of the product under test is successful. The simulated load component is connected to the human interaction module, and the human interaction module displays the working indicator light of the simulated load component; One end of the signal transmitting and receiving component is connected to the human interaction module, and the other end is connected to the product under test. The test case recording module is used to record the operation process data during the testing process of the product under test and save it as a test case file; the test case playback module plays back the operation process data in the test case file.

2. The test process recording and playback device according to claim 1, characterized in that: The analog switch component is a switch board, the analog load component is a resistor board, the signal transmitting and receiving component is a CAN communication board, and the connection component includes a wiring harness and plug-ins.

3. A method for recording and playing back a test process, characterized in that: The method includes selecting a test process for recording via an industrial-grade computer, loading a test scenario, interpreting the test scenario, and displaying it to the tester. After the tester loads predefined product pin information using the industrial-grade computer's accompanying software, the human interaction module displays the simulated status information of the pins. The tester clicks on the pin in the human interaction module to switch it to an active state. This operation information is the one that needs to be recorded and is automatically temporarily stored in the background within the test case recording module. Simultaneously, this operation information is transmitted sequentially through the human interaction module and the component control module to the simulated switch component. The simulated switch component converts this information into high and low voltages, which are then transmitted to the test product through the connection component. For a test product without problems, a high-level signal is output to the simulated load component. The simulated load outputs a signal to the human interaction module and illuminates the product's icon. When the tester clicks on the product pin again to switch it to an inactive state, the information is transmitted to the product in the same way, and the product icon turns off. After the test is completed, the test scenario is confirmed to have passed on the human interaction module, indicating that the temporarily stored information is valid. The information is stored in a file in a human-readable format, thus generating a test case file. When the above test scenario functions need to be repeatedly tested, the tester loads the recorded test case file into the industrial-grade computer and clicks "Start Playback." The test case playback module parses the information stored in the file and transmits it to the analog switch component through the component control module. The analog switch component converts this information into high and low voltages, which are then transmitted to the test product through the connection component. The tester then waits for confirmation from the tester via the manual interaction module to determine whether the product has passed or failed the test. The confirmation result is then stored again in the test case file through the test case recording module, thus enabling repeated testing of the above test scenario functions.

4. The test process recording and playback method according to claim 3, characterized in that: The operation information includes clicking the switch and sending data; the data transmission enables two-way communication between the human interaction module and the product under test through the signal transmission and reception component.

Citation Information

Patent Citations

  • Business system testing method based on information technology application innovation environment

    CN112732575A

  • Touch recording and playback device

    CN208819189U