CN112286825A - Screen testing method and device for intelligent cabin and electronic equipment - Google Patents

Screen testing method and device for intelligent cabin and electronic equipment Download PDF

Info

Publication number
CN112286825A
CN112286825A CN202011326589.6A CN202011326589A CN112286825A CN 112286825 A CN112286825 A CN 112286825A CN 202011326589 A CN202011326589 A CN 202011326589A CN 112286825 A CN112286825 A CN 112286825A
Authority
CN
China
Prior art keywords
signal
tested object
test
screen
automatic test
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202011326589.6A
Other languages
Chinese (zh)
Inventor
曾雨童
徐林浩
何天翼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing China Tsp Technology Co ltd
Jiangsu Bdstar Navigation Automotive Electronics Co ltd
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Original Assignee
Beijing China Tsp Technology Co ltd
Jiangsu Bdstar Navigation Automotive Electronics Co ltd
BDstar Intelligent and Connected Vehicle Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing China Tsp Technology Co ltd, Jiangsu Bdstar Navigation Automotive Electronics Co ltd, BDstar Intelligent and Connected Vehicle Technology Co Ltd filed Critical Beijing China Tsp Technology Co ltd
Priority to CN202011326589.6A priority Critical patent/CN112286825A/en
Publication of CN112286825A publication Critical patent/CN112286825A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3684Test management for test design, e.g. generating new test cases

Abstract

The invention provides a screen testing method and device for an intelligent cabin and electronic equipment, wherein the screen testing method comprises the following steps: acquiring an automatic test case; the automatic test case is generated based on a preset case template; sending a test signal to a tested object according to the automatic test case, and acquiring feedback information sent by the tested object; and comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result. The invention can improve the testing efficiency and reduce the error rate of the testing result.

Description

Screen testing method and device for intelligent cabin and electronic equipment
Technical Field
The invention relates to the technical field of automatic testing, in particular to a screen testing method and device for an intelligent cabin and electronic equipment.
Background
With the high-speed development of the intelligent cabin, the user's demand for various facilities inside the intelligent cabin is also higher and higher, and in order to bring better driving experience to the user, the facilities inside the intelligent cabin (such as an air conditioner screen of the intelligent cabin) need to be tested in time to ensure that the facilities can be used normally. The existing testing method for the air conditioner screen mainly comprises the steps of manually completing testing, connecting a remote device through a computer, sending a CAN signal, and checking whether received CAN signal feedback and interface display are normal or not in a manual checking mode. However, the existing testing method is inefficient, and errors of testing results due to subjective reasons of people may occur.
Disclosure of Invention
In view of the above, the present invention provides a screen testing method and apparatus for an intelligent cabin, and an electronic device, so as to improve testing efficiency and reduce error rate of testing results.
In order to achieve the above purpose, the embodiment of the present invention adopts the following technical solutions:
in a first aspect, an embodiment of the present invention provides a screen test method for an intelligent cabin, including: acquiring an automatic test case; the automatic test case is generated based on a preset case template; sending a test signal to a tested object according to the automatic test case, and acquiring feedback information sent by the tested object; and comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result.
In one embodiment, the step of sending a test signal to a tested object according to an automated test case and acquiring feedback information sent by the tested object includes: generating an automatic test script according to the automatic test case and a preset automatic case generation tool; and executing the automatic test script, sending a test signal to the tested object, and acquiring feedback information sent by the tested object.
In one embodiment, the feedback information includes screenshots of the subject under test; the steps of executing the automatic test script, sending a test signal to the tested object and acquiring the feedback information sent by the tested object comprise: and executing an automatic test script, sending a screenshot signal to the tested object, and acquiring a screenshot of the tested object intercepted after the tested object receives the screenshot signal.
In one embodiment, the preset information comprises an initial screen picture of the tested object, a detection area of the tested object and a similarity threshold; comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result, wherein the step comprises the following steps of: comparing a detection area in a screenshot of a tested object with a detection area in an initial screen picture to obtain the similarity between the screenshot and the initial screen picture; and judging whether the similarity is greater than a similarity threshold value, and if so, determining that the detection area of the tested object is normal.
In one embodiment, the feedback information further comprises a feedback signal; the steps of executing the automatic test script, sending a test signal to the tested object and acquiring the feedback information sent by the tested object comprise: and executing an automatic test script, and acquiring a feedback signal sent by the tested object when monitoring that the user operates the screen of the tested object.
In one embodiment, the preset information further includes an initial signal name and an initial signal value; comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result, wherein the step comprises the following steps of: comparing the signal name of the feedback signal with the initial signal name, determining the frequency of the initial signal name in the feedback signal, and judging whether the signal value of the feedback signal is consistent with the initial signal value; and if the number of times of the initial signal name in the feedback signal is larger than a first threshold value and the signal value of the feedback signal is consistent with the initial signal value, determining that the screen of the tested object is normal.
In one embodiment, the method further comprises: and before executing the automatic test case, clearing the stored feedback information.
In a second aspect, an embodiment of the present invention provides a screen testing apparatus for an intelligent cabin, including: the test case acquisition module is used for acquiring an automatic test case; the automatic test case is generated based on a preset case template; the signal sending module is used for sending a test signal to the tested object according to the automatic test case and acquiring feedback information sent by the tested object; and the comparison module is used for comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a processor and a memory, where the memory stores computer-executable instructions capable of being executed by the processor, and the processor executes the computer-executable instructions to implement the steps of any one of the methods provided in the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to perform the steps of any one of the methods provided in the first aspect.
The embodiment of the invention has the following beneficial effects:
according to the screen test method, device and electronic equipment for the intelligent cabin, provided by the embodiment of the invention, firstly, an automatic test case (generated based on a preset case template) can be obtained; then sending a test signal to the tested object according to the automatic test case, and acquiring feedback information sent by the tested object; and finally, comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result. On one hand, the method can automatically generate the automatic test case according to the preset case template, and is simple to operate and easy to master; on the other hand, the automatic test can be carried out according to the automatic test case, and the test result is obtained by comparing the feedback information with the preset information corresponding to the automatic test case, so that the labor cost can be reduced, the test efficiency is improved, and meanwhile, the error rate of the test result caused by subjective reasons of people is reduced.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
In order to make the aforementioned and other objects, features and advantages of the present invention comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a flowchart of a screen testing method for an intelligent cabin according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a screen test system of an intelligent cockpit according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of a screen testing device of an intelligent cockpit according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
To make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
At present, the existing testing method for the air conditioner screen mainly completes the testing manually, connects the remote equipment through a computer and sends a CAN signal, and then checks whether the received CAN signal feedback and interface display are normal or not in a manual checking mode. However, the existing testing method is inefficient, and errors of testing results due to subjective reasons of people may occur.
Based on this, the screen testing method and device for the intelligent cockpit and the electronic device provided by the embodiment of the invention can improve the testing efficiency and reduce the error rate of the testing result.
To facilitate understanding of the present embodiment, first, a detailed description is made of a screen testing method for an intelligent cabin disclosed in the present embodiment, referring to a flowchart of a screen testing method for an intelligent cabin shown in fig. 1, where the method may be executed by an electronic device, which may be a computer, a mobile phone, an Ipad, or the like, and an environment required for connecting a remote device (such as an air conditioner screen device of an intelligent cabin) may be installed in the electronic device, such as: serial port, CAN tool and driver, the method mainly includes the following steps S102 to S106:
step S102: acquiring an automatic test case; the automatic test case is generated based on a preset case template.
In one embodiment, the test engineer may pre-compile test cases including signaling test cases, screen-clicking test cases, action cases, screen operation cases, and preconditions cases. When a test case is sent by a writing signal, the refinement of each step CAN be completed according to the test case which sends a CAN signal from a PC (computer) terminal manually, so that parameters such as a case name, a function method name, a sending signal and a signal value and the like required by the generation of an automatic test case are determined, a correct message ID (msg _ ID), a message name (msg _ name), a signal name (signal _ name) and a signal value (value) CAN be written in the case specifically according to an existing CAN matrix table, a json file is generated by analyzing the existing CAN matrix table, the value in the json file CAN be read in the execution process of sending the test case by the signal, and the CAN signal is sent; in addition, picture contrast parameters can be defined, including two original pictures (a screenshot in an activated state and a screenshot in an inactivated state of the device function), a detection area and a similarity threshold. When the screen click test case is written, the refinement of each step can be carried out according to the test case of the screen click operation of the tested object, the case name, the function method name and other parameters required by the generation of the automatic test case are determined, and the frequency and the expected value of the occurrence of signals needing to be compared after the screen click test case is responded to are defined. The action case can be used for a signal sending test case, and the function names for sending all different signal operations are defined according to different signal classification; the screen operation case can be used as a screen click test case, and function names of click operations or sliding operations corresponding to all coordinate points in the screen of the tested object are defined according to different screen operation area categories, such as click operations or sliding operations; the precondition case can be used to refine preconditions of all test cases, prepare an environment for test case execution, and ensure that screen operations are continuous operations, and can be classified into different categories according to different screen operations, for example, before executing a boot operation, it should be ensured that a state of a tested object is shutdown, and thus, the precondition of the test case executing the boot operation is that the state of the tested object is shutdown.
After the test cases are written, all the test cases can be stored in a test case summary table, and before each test, the automatic test cases can be obtained according to a preset case template and the test case summary table. Specifically, the use case template may include information such as a transmission signal, a signal value, the number of times of occurrence of a signal to be compared, an expected value, a detection area, and a similarity threshold, and the user may fill the use case template according to a template rule, and then generate an automated test case by an automated use case generation tool.
Step S104: and sending a test signal to the tested object according to the automatic test case, and acquiring feedback information sent by the tested object.
In one embodiment, the tested object CAN be one or more air conditioner screen devices for operating the QNX system, the device supports connection of an external storage device, such as a USB storage device, and the electronic device and the tested object CAN be connected through a serial port line, a USB CAN-Box or a Peak-CAN and other devices. After the automatic test case is obtained, a test signal can be sent to a tested object according to a sending signal and a signal value defined in the automatic test case, and after the tested object receives the test signal, the tested object can respond based on the test signal and send feedback information to the electronic equipment; or when the user operates the tested object (such as clicking a button on a screen to adjust the temperature of the air conditioner), the tested object can also send feedback information generating response to the electronic equipment.
Step S106: and comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result.
In one embodiment, the preset information may be defined in the automated test case, and the preset information includes an initial picture (i.e., original image) of the tested object, an area (such as a power-on key area, a digital display area, etc.) of the tested object, a similarity threshold, an initial signal name (i.e., a signal to be compared), an initial signal value (i.e., a desired value), and the like. In the embodiment, the consistency of the feedback information and the preset information can be judged by comparing the received feedback information with the preset information, so that the test result is obtained, and the test result error caused by manual inspection is avoided.
According to the screen test method for the intelligent cabin, provided by the embodiment of the invention, on one hand, an automatic test case can be automatically generated according to a preset case template, and the method is simple to operate and easy to master; on the other hand, the automatic test can be carried out according to the automatic test case, and the test result is obtained by comparing the feedback information with the preset information corresponding to the automatic test case, so that the labor cost can be reduced, the test efficiency is improved, and meanwhile, the error rate of the test result caused by subjective reasons of people is reduced.
Considering that program codes are required to be written for carrying out automatic testing, the technical level of testers is higher in requirement, and the difficulty is higher. Based on this, the embodiment of the present invention further provides a specific implementation manner for sending a test signal to a tested object according to an automatic test case and acquiring feedback information sent by the tested object, that is, for the step S104, the following steps 1 to 2 may be implemented:
step 1: and generating an automatic test script according to the automatic test case and a preset automatic case generation tool.
In specific implementation, an automatic test script can be generated by using an automatic case generation tool according to the compiled automatic test case and the written project dbc file, and the automatic test script can be divided into three parts:
(1) test _ action: the signal sending test case is executed, the CAN signal is sent to the remote equipment (namely the tested object) through the PC terminal, and the screen capture of the tested object CAN be captured after the tested object receives the CAN signal for checking the test result.
(2) test _ auto: and executing the screen click test case, controlling the tested object through screen click operation or screen sliding operation, receiving a feedback signal through a CAN (controller area network) tool and checking the correctness of the signal value.
(3) test _ compare: and comparing the screen picture stored in the test _ action with a pre-stored initial screen picture (namely, the original picture) to obtain a final test result of the case in the test _ action.
Step 2: and executing the automatic test script, sending a test signal to the tested object, and acquiring feedback information sent by the tested object.
In one embodiment, the feedback information includes a screenshot of the tested object and a feedback signal, and the step 2 includes the following two modes:
the first method is as follows: and when the feedback information is the screenshot of the tested object, executing an automatic test script, sending a screenshot signal to the tested object, and acquiring the screenshot of the tested object intercepted by the tested object after receiving the screenshot signal.
Specifically, when executing the automatic test script test _ action, the electronic device may send a QNX screenshot command to the object to be tested through the serial port, and the object to be tested may capture a screenshot and store the screenshot in a storage device connected to the object to be tested, such as a USB storage device.
The second method comprises the following steps: and when the feedback information is a feedback signal, executing an automatic test script, and when it is monitored that a user operates the screen of the tested object, acquiring the feedback signal sent by the tested object.
Specifically, when the automatic test script test _ auto is executed, the object to be tested may be controlled through a screen-click operation or a screen-slide operation. When a coordinate point defined in the screen click test case is clicked or slid by a user, the tested object CAN generate a feedback signal and send the feedback signal to the electronic device, and the electronic device CAN receive the feedback signal through the CAN tool. For example, when the user clicks the temperature adjustment button to adjust the temperature, the corresponding coordinate of the temperature adjustment button is clicked, and the tested object may generate a corresponding feedback signal in response to the screen click operation and transmit the feedback signal to the electronic device.
In one embodiment, in order to ensure the accuracy of the received feedback signal and improve the accuracy of the test result, the method further includes: and before executing the automatic test case, clearing the stored feedback information. Specifically, when each automatic test case is executed, the information stack acquired on the previous CAN bus is cleared, and the CAN signal of the case is acquired again.
Further, in order to improve the detection efficiency and reduce the error rate of the test result, in the method provided by the embodiment of the invention, the preset information can be defined when the automatic test case is obtained, and the test result is obtained by comparing the feedback information with the preset information. In one embodiment, the preset information may include: the method comprises the steps of an initial screen picture of a tested object, a detection area of the tested object and a similarity threshold value. In order to facilitate understanding of the step S106, the embodiment of the present invention further provides a specific implementation manner for comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result, which is shown in the following steps a1 to a 2:
step a 1: and comparing the detection area in the screenshot of the tested object with the detection area in the initial screen picture to obtain the similarity between the screenshot and the initial screen picture.
In a specific embodiment, the screenshot of the tested object obtained in the test _ action may be copied to a fixed path of the PC, corresponding detection region pictures in the screenshot and the initial screen picture are respectively extracted according to a predetermined detection region, and then the extracted detection region picture of the screenshot is compared with the detection region picture of the initial screen picture, where the detection region may be the whole screen or a part of the screen. Specifically, a pixel point comparison mode can be adopted to compare the detection area picture of the screenshot with the detection area picture of the initial screen picture, so as to obtain the similarity between the screenshot and the initial screen picture. Such as: taking an air conditioner screen as an example, the detection area is a numerical value display area (area for displaying temperature), the screen capture and the numerical value display area picture of the initial screen picture can be respectively extracted, and then the extracted pictures are compared with each other by pixel points to obtain the similarity between the screen capture and the initial screen picture.
It should be noted that the initial screen image may include a screenshot in an activated state and a screenshot in an inactivated state of the device function when the device is not abnormal, and therefore, the screenshot may also be a screenshot in an activated state and a screenshot in an inactivated state of the device function.
Step a 2: and judging whether the similarity is greater than a similarity threshold value, and if so, determining that the detection area of the tested object is normal.
After the similarity between the screenshot and the initial screen picture is obtained, the similarity can be compared with a preset similarity threshold, and when the similarity is larger than the similarity threshold, the detection area of the tested monarch is determined to be normal. In one embodiment, the similarity threshold may be set according to experience of a test engineer, or may be determined in advance through experiments, and the specific value is not limited herein.
Further, the preset information further includes an initial signal name and an initial signal value, and the embodiment of the present invention further provides another specific implementation manner for comparing the feedback information with the preset information corresponding to the automated test case to obtain the test result, which is shown in the following steps b1 to b 2:
step b 1: and comparing the signal name of the feedback signal with the initial signal name, determining the frequency of the initial signal name in the feedback signal, and judging whether the signal value of the feedback signal is consistent with the initial signal value.
It is understood that, in the automated test case, expected signal values (i.e., initial signal values) and corresponding signal names (i.e., initial signal names) that may be generated for different screen operations are predefined. Therefore, in the testing process, after a feedback signal corresponding to a screen click operation or a screen sliding operation is received, the feedback signal can be compared with a predefined initial signal value, specifically, the feedback signal can be screened according to msg _ id through an acquired information stack, the feedback signal is compared with a predefined initial signal name and an initial signal value, the number of times of occurrence of the corresponding initial signal name is determined, and whether the signal value of the feedback signal is consistent with the initial signal value or not is judged, that is, whether the number of times of occurrence of the corresponding signal _ name and the value are correct or not is confirmed.
Step b 2: and if the number of times of the initial signal name in the feedback signal is larger than a first threshold value and the signal value of the feedback signal is consistent with the initial signal value, determining that the screen of the tested object is normal.
In one embodiment, if the number of times of the initial signal name appearing in the feedback signal is greater than the first threshold value and the signal value of the feedback signal is consistent with the initial signal value, it indicates that when the user controls the object to be tested through the screen click operation or the screen sliding operation, the generated feedback signal is the same as the predefined signal expected value, that is, the object to be tested can normally respond to the control operation of the user, and the screen of the object to be tested is normal.
Bat scripts may also be generated by the automated generation tool for executing automated test cases and generating test reports.
In order to facilitate understanding of the screen test method for the intelligent cabin, an embodiment of the invention further provides a screen test system for the intelligent cabin, and referring to a schematic structural diagram of the screen test system for the intelligent cabin shown in fig. 2, the system is shown to include a computer and a vehicle air conditioner screen, and the computer and the vehicle air conditioner screen CAN be connected through a serial port line, a USB CAN-Box or a Peak-CAN. The computer can be a windows system computer, and is provided with an environment required by connecting an air conditioner screen of the QNX system, such as: serial ports, CAN tools and drivers, etc.; the computer also stores a CAN matrix.dbc file and a test case summary table, and the computer CAN generate an automatic test case and an automatic script by using an automatic case generation tool according to the CAN matrix.dbc file and the test case summary table. When the automation script is executed, the computer CAN send a CAN signal to the vehicle air conditioner screen and receive the CAN signal sent by the vehicle air conditioner screen; meanwhile, the vehicle air conditioner screen CAN perform screenshot according to the received CAN signal and store the screenshot in storage equipment (such as USB storage equipment), and the computer CAN acquire and store the screenshot for comparing with the initial screen picture. After the test is finished, the computer can generate a test report and store the screenshots in the test process, so that the screenshots are convenient to analyze and arrange.
In summary, according to the screen test method for the intelligent cockpit provided by the embodiment of the invention, the automatic test case and the automatic test script can be automatically generated by using the automatic case generation tool according to the preset case template, the automatic test case is easy to understand, generate and maintain, the technical requirements on testers are reduced, and the screen test method is simple to operate and easy to master; in the test process, the feedback information is compared with the preset information corresponding to the automatic test case to obtain a test result, so that the labor cost can be reduced, the test efficiency is improved, and the error rate of the test result caused by subjective reasons of people is reduced; after the test is finished, an automatic test report can be generated, and the screenshots in the test process are stored, so that the analysis and the sorting are convenient.
For the screen test method of the intelligent cabin provided in the foregoing embodiment, an embodiment of the present invention further provides a screen test apparatus of the intelligent cabin, referring to a schematic structural diagram of the screen test apparatus of the intelligent cabin shown in fig. 3, the apparatus may include the following parts:
the test case acquisition module 301 is used for acquiring an automatic test case; the automatic test case is generated based on a preset case template.
The signal sending module 302 is configured to send a test signal to the object to be tested according to the automatic test case, and obtain feedback information sent by the object to be tested.
And the comparison module 303 is configured to compare the feedback information with preset information corresponding to the automatic test case to obtain a test result.
On one hand, the screen testing device for the intelligent cabin provided by the embodiment of the invention can automatically generate an automatic test case according to a preset case template, and is simple to operate and easy to master; on the other hand, the automatic test can be carried out according to the automatic test case, and the test result is obtained by comparing the feedback information with the preset information corresponding to the automatic test case, so that the labor cost can be reduced, the test efficiency is improved, and meanwhile, the error rate of the test result caused by subjective reasons of people is reduced.
In an embodiment, the signal sending module 302 is further configured to generate an automated test script according to the automated test case and a preset automated case generation tool; and executing the automatic test script, sending a test signal to the tested object, and acquiring feedback information sent by the tested object.
In one embodiment, the feedback information includes screenshots of the subject under test; the signal sending module 302 is further configured to execute an automated testing script, send a screenshot signal to the tested object, and obtain a screenshot of the tested object captured after the tested object receives the screenshot signal.
In one embodiment, the preset information comprises an initial screen picture of the tested object, a detection area of the tested object and a similarity threshold; the comparison module 303 is further configured to compare a detection area in the screenshot of the tested object with a detection area in the initial screen picture to obtain a similarity between the screenshot and the initial screen picture; and judging whether the similarity is greater than a similarity threshold value, and if so, determining that the detection area of the tested object is normal.
In an embodiment, the signal sending module 302 is further configured to execute an automated test script, and obtain a feedback signal sent by the object to be tested when it is monitored that the user operates the screen of the object to be tested.
In one embodiment, the preset information further includes an initial signal name and an initial signal value; the comparing module 303 is further configured to compare the signal name of the feedback signal with the initial signal name, determine the number of times the initial signal name appears in the feedback signal, and determine whether the signal value of the feedback signal is consistent with the initial signal value; and if the number of times of the initial signal name in the feedback signal is larger than a first threshold value and the signal value of the feedback signal is consistent with the initial signal value, determining that the screen of the tested object is normal.
In one embodiment, the apparatus further comprises a clearing module configured to clear the stored feedback information prior to executing the automated test script.
The device provided by the embodiment of the present invention has the same implementation principle and technical effect as the method embodiments, and for the sake of brief description, reference may be made to the corresponding contents in the method embodiments without reference to the device embodiments.
The embodiment of the invention also provides electronic equipment, which specifically comprises a processor and a storage device; the storage means has stored thereon a computer program which, when executed by the processor, performs the method of any of the above embodiments.
Fig. 4 is a schematic structural diagram of an electronic device 100 according to an embodiment of the present invention, where the electronic device 100 includes: a processor 40, a memory 41, a bus 42 and a communication interface 43, wherein the processor 40, the communication interface 43 and the memory 41 are connected through the bus 42; the processor 40 is arranged to execute executable modules, such as computer programs, stored in the memory 41.
The Memory 41 may include a high-speed Random Access Memory (RAM) and may also include a non-volatile Memory (non-volatile Memory), such as at least one disk Memory. The communication connection between the network element of the system and at least one other network element is realized through at least one communication interface 43 (which may be wired or wireless), and the internet, a wide area network, a local network, a metropolitan area network, etc. may be used.
The bus 42 may be an ISA bus, PCI bus, EISA bus, or the like. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one double-headed arrow is shown in FIG. 4, but that does not indicate only one bus or one type of bus.
The memory 41 is used for storing a program, the processor 40 executes the program after receiving an execution instruction, and the method executed by the apparatus defined by the flow disclosed in any of the foregoing embodiments of the present invention may be applied to the processor 40, or implemented by the processor 40.
The processor 40 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 40. The Processor 40 may be a general-purpose Processor including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components. The various methods, steps and logic blocks disclosed in the embodiments of the present invention may be implemented or performed. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in a memory 41, and the processor 40 reads the information in the memory 41 and completes the steps of the method in combination with the hardware thereof.
The computer program product of the readable storage medium provided in the embodiment of the present invention includes a computer readable storage medium storing a program code, where instructions included in the program code may be used to execute the method described in the foregoing method embodiment, and specific implementation may refer to the foregoing method embodiment, which is not described herein again.
The functions, if implemented in the form of software functional units and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
Finally, it should be noted that: the above-mentioned embodiments are only specific embodiments of the present invention, which are used for illustrating the technical solutions of the present invention and not for limiting the same, and the protection scope of the present invention is not limited thereto, although the present invention is described in detail with reference to the foregoing embodiments, those skilled in the art should understand that: any person skilled in the art can modify or easily conceive the technical solutions described in the foregoing embodiments or equivalent substitutes for some technical features within the technical scope of the present disclosure; such modifications, changes or substitutions do not depart from the spirit and scope of the embodiments of the present invention, and they should be construed as being included therein. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A screen test method of an intelligent cabin is characterized by comprising the following steps:
acquiring an automatic test case; the automatic test case is generated based on a preset case template;
sending a test signal to a tested object according to the automatic test case, and acquiring feedback information sent by the tested object;
and comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result.
2. The screen testing method of claim 1, wherein the step of sending a test signal to a tested object according to the automated test case and obtaining feedback information sent by the tested object comprises:
generating an automatic test script according to the automatic test case and a preset automatic case generation tool;
and executing the automatic test script, sending a test signal to the tested object, and acquiring feedback information sent by the tested object.
3. The screen testing method of claim 2, wherein the feedback information comprises a screenshot of the object under test;
the step of executing the automated test script, sending a test signal to a tested object, and acquiring feedback information sent by the tested object includes:
and executing the automatic test script, sending a screenshot signal to the tested object, and acquiring a screenshot of the tested object intercepted after the tested object receives the screenshot signal.
4. The screen testing method of claim 3, wherein the preset information comprises an initial screen picture of the tested object, a detection area of the tested object and a similarity threshold;
the step of comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result comprises:
comparing the detection area in the screenshot of the tested object with the detection area in the initial screen picture to obtain the similarity between the screenshot and the initial screen picture;
and judging whether the similarity is greater than the similarity threshold value, and if so, determining that the detection area of the tested object is normal.
5. The screen testing method of claim 2, wherein the feedback information further comprises a feedback signal;
the step of executing the automated test script, sending a test signal to a tested object, and acquiring feedback information sent by the tested object includes:
and executing the automatic test script, and acquiring a feedback signal sent by the tested object when monitoring that the user operates the screen of the tested object.
6. The screen testing method of claim 5, wherein the preset information further comprises an initial signal name and an initial signal value;
the step of comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result comprises:
comparing the signal name of the feedback signal with the initial signal name, determining the frequency of the initial signal name in the feedback signal, and judging whether the signal value of the feedback signal is consistent with the initial signal value;
and if the number of times of the initial signal name in the feedback signal is larger than a first threshold value and the signal value of the feedback signal is consistent with the initial signal value, determining that the screen of the tested object is normal.
7. The screen testing method of claim 1, further comprising: and clearing the stored feedback information before executing the automatic test case.
8. A screen test device of intelligence passenger cabin, its characterized in that includes:
the test case acquisition module is used for acquiring an automatic test case; the automatic test case is generated based on a preset case template;
the signal sending module is used for sending a test signal to a tested object according to the automatic test case and acquiring feedback information sent by the tested object;
and the comparison module is used for comparing the feedback information with preset information corresponding to the automatic test case to obtain a test result.
9. An electronic device comprising a processor and a memory, the memory storing computer-executable instructions executable by the processor, the processor executing the computer-executable instructions to perform the steps of the method of any one of claims 1 to 7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps of the method according to any one of the claims 1 to 7.
CN202011326589.6A 2020-11-24 2020-11-24 Screen testing method and device for intelligent cabin and electronic equipment Pending CN112286825A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011326589.6A CN112286825A (en) 2020-11-24 2020-11-24 Screen testing method and device for intelligent cabin and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011326589.6A CN112286825A (en) 2020-11-24 2020-11-24 Screen testing method and device for intelligent cabin and electronic equipment

Publications (1)

Publication Number Publication Date
CN112286825A true CN112286825A (en) 2021-01-29

Family

ID=74425306

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011326589.6A Pending CN112286825A (en) 2020-11-24 2020-11-24 Screen testing method and device for intelligent cabin and electronic equipment

Country Status (1)

Country Link
CN (1) CN112286825A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113721582A (en) * 2021-08-03 2021-11-30 安徽江淮汽车集团股份有限公司 Cabin system response efficiency testing method, equipment, storage medium and device
CN114595147A (en) * 2022-02-24 2022-06-07 珠海海奇半导体有限公司 Smart screen based debugging system and testing method thereof
CN116185879A (en) * 2023-04-26 2023-05-30 润芯微科技(江苏)有限公司 Python-based intelligent cabin instrument automatic test method and system

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187685A (en) * 2007-10-18 2008-05-28 张福尧 Touch panel test device and method
CN103634592A (en) * 2013-12-09 2014-03-12 乐视致新电子科技(天津)有限公司 Automatic test method and system for intelligent televisions
CN105302722A (en) * 2015-11-03 2016-02-03 腾讯科技(深圳)有限公司 CTS automatic test method and apparatus
CN105572130A (en) * 2015-12-11 2016-05-11 宁波普天通信技术有限公司 Touch screen terminal test method and device
CN107885665A (en) * 2017-12-28 2018-04-06 努比亚技术有限公司 With case script method of testing, mobile terminal and computer-readable recording medium
CN108388514A (en) * 2018-02-24 2018-08-10 平安科技(深圳)有限公司 Automatic interface testing method, device, equipment and computer readable storage medium
CN109117358A (en) * 2017-06-23 2019-01-01 百度在线网络技术(北京)有限公司 test method and test device for electronic equipment
CN109165162A (en) * 2018-08-31 2019-01-08 北京车和家信息技术有限公司 A kind of test method and relevant device of onboard system
CN110532188A (en) * 2019-08-30 2019-12-03 北京三快在线科技有限公司 The method and apparatus of page presentation test
CN111124877A (en) * 2018-11-01 2020-05-08 株洲中车时代电气股份有限公司 Train display software testing method, device and system
CN111966575A (en) * 2020-05-19 2020-11-20 中国航空无线电电子研究所 Graphic automation test method for airborne display software

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101187685A (en) * 2007-10-18 2008-05-28 张福尧 Touch panel test device and method
CN103634592A (en) * 2013-12-09 2014-03-12 乐视致新电子科技(天津)有限公司 Automatic test method and system for intelligent televisions
CN105302722A (en) * 2015-11-03 2016-02-03 腾讯科技(深圳)有限公司 CTS automatic test method and apparatus
CN105572130A (en) * 2015-12-11 2016-05-11 宁波普天通信技术有限公司 Touch screen terminal test method and device
CN109117358A (en) * 2017-06-23 2019-01-01 百度在线网络技术(北京)有限公司 test method and test device for electronic equipment
CN107885665A (en) * 2017-12-28 2018-04-06 努比亚技术有限公司 With case script method of testing, mobile terminal and computer-readable recording medium
CN108388514A (en) * 2018-02-24 2018-08-10 平安科技(深圳)有限公司 Automatic interface testing method, device, equipment and computer readable storage medium
CN109165162A (en) * 2018-08-31 2019-01-08 北京车和家信息技术有限公司 A kind of test method and relevant device of onboard system
CN111124877A (en) * 2018-11-01 2020-05-08 株洲中车时代电气股份有限公司 Train display software testing method, device and system
CN110532188A (en) * 2019-08-30 2019-12-03 北京三快在线科技有限公司 The method and apparatus of page presentation test
CN111966575A (en) * 2020-05-19 2020-11-20 中国航空无线电电子研究所 Graphic automation test method for airborne display software

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113721582A (en) * 2021-08-03 2021-11-30 安徽江淮汽车集团股份有限公司 Cabin system response efficiency testing method, equipment, storage medium and device
CN114595147A (en) * 2022-02-24 2022-06-07 珠海海奇半导体有限公司 Smart screen based debugging system and testing method thereof
CN114595147B (en) * 2022-02-24 2023-05-09 珠海海奇半导体有限公司 Intelligent screen-based debugging system and testing method thereof
CN116185879A (en) * 2023-04-26 2023-05-30 润芯微科技(江苏)有限公司 Python-based intelligent cabin instrument automatic test method and system

Similar Documents

Publication Publication Date Title
CN109726103B (en) Test report generation method, device, equipment and storage medium
CN112286825A (en) Screen testing method and device for intelligent cabin and electronic equipment
CN107562610B (en) Method, device, terminal and medium for acquiring page loading time
CN108959068B (en) Software interface testing method, device and storage medium
CN108470000B (en) Automatic testing method, system and medium for communication terminal software
CN111198815B (en) Compatibility testing method and device for user interface
CN112181752B (en) Vehicle bus test method and device, electronic equipment and readable storage medium
CN111143188B (en) Method and equipment for automatically testing application
CN110704304A (en) Application program testing method and device, storage medium and server
CN110806965A (en) Automatic test method, device, equipment and medium
CN111338616A (en) Protocol analysis code generation method and device and electronic equipment
CN111736951A (en) Simulation method for automatic driving, computer device, and storage medium
CN115933610A (en) Automobile diagnosis method, device, equipment and storage medium
CN116737016A (en) Control method and device for touch data scanning, computer equipment and storage medium
CN114780402A (en) Debugging method and device of chip simulation system and server
CN115114152A (en) Automatic testing method and system based on control attribute and image recognition, electronic equipment and storage medium
KR101691929B1 (en) An apparatus for implementing an automation of a web user interface and method therefor
CN114510421A (en) Test method, test device, chip and module equipment
CN109361192B (en) Terminal equipment, and constant value modification method and device
CN112115057A (en) Automatic test method, device and equipment for application program page building process
CN112437348A (en) State information acquisition method, storage medium and smart television
US11070716B2 (en) Image sensor system, image sensor, data generation method of image sensor in image sensor system, and non-transitory computer-readable recording medium
CN116126738B (en) Interface abnormality identification method and device and electronic equipment
CN116991706B (en) Vehicle automatic test method, device, equipment and storage medium
CN112099922B (en) Simulator control method and system based on image recognition and positioning and electronic equipment

Legal Events

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