CN115543147A - Icon detection script generation method and device and storage medium - Google Patents

Icon detection script generation method and device and storage medium Download PDF

Info

Publication number
CN115543147A
CN115543147A CN202211262701.3A CN202211262701A CN115543147A CN 115543147 A CN115543147 A CN 115543147A CN 202211262701 A CN202211262701 A CN 202211262701A CN 115543147 A CN115543147 A CN 115543147A
Authority
CN
China
Prior art keywords
icon
state information
state parameters
detection script
state
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
CN202211262701.3A
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.)
Cienet Technologies (beijing) Co ltd
Original Assignee
Cienet Technologies (beijing) 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 Cienet Technologies (beijing) Co ltd filed Critical Cienet Technologies (beijing) Co ltd
Priority to CN202211262701.3A priority Critical patent/CN115543147A/en
Publication of CN115543147A publication Critical patent/CN115543147A/en
Priority to PCT/CN2023/124369 priority patent/WO2024078601A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • G06F3/04817Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance using icons
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B60VEHICLES IN GENERAL
    • B60KARRANGEMENT OR MOUNTING OF PROPULSION UNITS OR OF TRANSMISSIONS IN VEHICLES; ARRANGEMENT OR MOUNTING OF PLURAL DIVERSE PRIME-MOVERS IN VEHICLES; AUXILIARY DRIVES FOR VEHICLES; INSTRUMENTATION OR DASHBOARDS FOR VEHICLES; ARRANGEMENTS IN CONNECTION WITH COOLING, AIR INTAKE, GAS EXHAUST OR FUEL SUPPLY OF PROPULSION UNITS IN VEHICLES
    • B60K37/00Dashboards
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Chemical & Material Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Combustion & Propulsion (AREA)
  • Transportation (AREA)
  • Mechanical Engineering (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The invention discloses a method and equipment for generating an icon detection script and a storage medium. In the embodiment of the invention, the target icon is determined according to the test case; acquiring state information of a target icon displayed on a vehicle machine, and extracting corresponding state parameters according to the state information, wherein the state parameters can be used for determining the state information; and generating an icon detection script according to the state parameters and a preset detection function, so as to test the icon display of the car machine through the generated icon detection script. Through the extraction of the state parameters, powerful technical support is provided for promoting the separation of test data and test cases. The invention can further improve the flashing of the dashboard icon and the generalization of the automatic assembly of the display detection example while improving the generation efficiency of the automatic test example and automatically generating the corresponding icon detection script.

Description

Icon detection script generation method and device and storage medium
Technical Field
The invention relates to a method for generating an icon detection script, and also relates to a computing device and a computer readable storage medium for implementing the generation method, belonging to the technical field of automotive electronics.
Background
In the prior art, various information indication icons and alarm icons are generally arranged on a liquid crystal display screen of a vehicle machine. In different scenarios, these icons may be displayed at different frequencies or in a particular color, either disappear, or blink at a certain frequency.
In practical applications, the icons appear or disappear in a defined color or a defined flashing frequency. In the face of complicated use cases, how to complete the automatic assembly of the device is still a problem to be solved.
Disclosure of Invention
The first technical problem to be solved by the present invention is to provide a method for generating an icon detection script, which is used for automatically generating the icon detection script and improving the generalization of the icon detection script.
Another technical problem to be solved by the present invention is to provide a computing device and a computer-readable storage medium for implementing the above generation method.
In order to achieve the purpose, the invention adopts the following technical scheme:
according to a first aspect of the embodiments of the present invention, a method for generating an icon detection script is provided, including the following steps: determining a target icon according to the test example; acquiring state information of a target icon displayed on a vehicle machine, and extracting corresponding state parameters according to the state information, wherein the state parameters can be used for determining the state information; and generating an icon detection script according to the state parameters and a preset detection function, and testing the icon display of the car machine through the generated icon detection script.
According to a second aspect of embodiments of the present invention, there is provided a computing device comprising a memory and a processor, the memory coupled with the processor; wherein the content of the first and second substances,
the memory for storing a computer program;
the processor executing the computer program to: determining a target icon according to the test case; acquiring state information of a target icon displayed on a vehicle-mounted device, and extracting corresponding state parameters according to the state information, wherein the state parameters can be used for determining the state information; and generating an icon detection script according to the state parameters and a preset detection function, and testing the icon display of the car machine through the generated icon detection script.
According to a third aspect of embodiments of the present invention, there is provided a computer readable storage medium having a computer program stored thereon, which, when executed by one or more processors, causes the one or more processors to carry out the steps of the above-mentioned method.
In the embodiment of the invention, the target icon is determined according to the test case; acquiring state information of a target icon displayed on a vehicle machine, and extracting corresponding state parameters according to the state information, wherein the state parameters can be used for determining the state information; and generating an icon detection script according to the state parameters and a preset detection function, so as to test the icon display of the car machine through the generated icon detection script.
By extracting the state parameters, powerful technical support is provided for promoting the separation of test data and test cases. The method has the advantages that the generation efficiency of the automatic test case is improved, the corresponding icon detection script is automatically generated, meanwhile, the flashing of the dashboard icon and the generalization of the automatic assembly of the display detection case are further improved, and the method has practical application value.
Drawings
FIG. 1 is a flowchart illustrating a method for generating an icon detection script according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a corresponding generation system in an embodiment of the invention;
FIG. 3 is a flowchart illustrating a method for generating an icon detection script according to another embodiment of the present invention;
FIG. 4 is a schematic diagram of a module structure in a testing apparatus according to an embodiment of the present invention;
FIG. 5 is a diagram of a computing device in an embodiment of the invention.
Detailed Description
The technical contents of the invention are specifically described in the following with reference to the accompanying drawings and specific embodiments.
The embodiment of the invention firstly provides a method for generating an icon detection script, which can automatically generate the icon detection script and improve the generalization of the icon detection script. The generation method 100 is applicable to a test device, which may be a computing device, a computer with computing capabilities, or the like. As shown in fig. 1, the generating method 100 at least includes the following steps:
101: and determining a target icon according to the test example.
102: and acquiring the state information of the target icon displayed on the vehicle-mounted device, and extracting corresponding state parameters according to the state information.
Wherein the status parameters may be used to determine status information.
103: and generating an icon detection script according to the state parameters and a preset detection function, so as to test the icon display of the car machine through the generated icon detection script.
The above steps are explained in detail below:
101: and determining a target icon according to the test case.
Wherein, determining the target icon according to the test case comprises: and acquiring the identifier of the target icon according to the test example to determine the target icon.
For example, the test device may obtain a test case (which may also be referred to as a test case), and obtain an identifier, such as a name or an ID, of the target icon from the test case. Thereby determining a target icon.
102: and acquiring the state information of the target icon displayed on the vehicle-mounted device, and extracting corresponding state parameters according to the state information.
Wherein the status parameters may be used to determine status information. Wherein, the state parameters may include: such as name, color, blinking status, display or not, etc. In addition, the state parameter can also comprise a display position, and the parameter is not acquired by extraction.
For example, as described above, the test equipment may obtain the state information directly from the test case. The status information may be the display of an icon, such as a stop light icon, displayed at a 2hz frequency and in a red color. This display situation is also a desired display result of the target icon.
Specifically, acquiring the state information of the target icon displayed on the vehicle-mounted device includes: and acquiring state information matched with different vehicle machine types according to the identifier of the target icon so as to display the target icon on the matched vehicle machine.
For example, as described above, the test equipment may obtain the name of an icon, such as a stop light. The corresponding state information can be searched according to the name, and the corresponding state information can be obtained according to the types of different vehicle machines, and can be obtained in a form of a table. If the parking lamp only corresponds to one piece of state information, all the vehicle machines are displayed according to the state information. If the stop lamp corresponds to a plurality of state information, and each state information corresponds to one vehicle machine type, the corresponding state information can be selected according to the vehicle machine type to be tested. And the vehicle machine can be enabled to display the selected state information during testing.
The method for extracting the parameters may include: the state parameters are extracted from the state information by the nltk (Natural Language processing Toolkit) tool. Such as name, color, blinking status (e.g., frequency of blinking, in hz), whether displayed or not, etc. Note that the name may not be extracted because it is already acquired.
It should be noted that, in the process of extracting the parameter, the parameter that is not displayed or not displayed may be extracted first, and if the parameter that is not displayed is extracted, that is, the icon is not displayed, other parameters corresponding to the parameter, such as color, flicker, etc., may not be extracted. If the parameter representing the display, namely the icon, is extracted to be displayed, other parameters corresponding to the parameter, such as color, flicker and the like, can be continuously extracted.
More specifically, the above parameter extraction may be implemented by a natural language processing module, and the natural language processing module performs parameter extraction by an nltk tool.
Wherein the test device may include a natural language processing module.
103: and generating an icon detection script according to the state parameters and a preset detection function, so as to test the icon display of the car machine through the generated icon detection script.
The preset detection function is a detection function without state parameters, and the state parameters need to be filled into the function, so that the function is complete.
For example, according to the foregoing description, after the test device acquires the parameters, the parameters are filled into a preset detection function, so as to generate an icon detection script.
Specifically, generating an icon detection script according to the state parameter and a preset detection function includes: and filling the extracted state parameters into a preset detection function to generate an icon detection script.
And the test equipment fills the state parameters into a preset detection function through a function packaging filling module to generate an icon detection script. Wherein the test equipment may comprise a function package padding module.
Wherein, the generating method 100 further comprises: and converting the state parameters into preset parameters meeting a preset detection function so as to fill the preset detection function with the preset parameters to generate an icon detection script.
In addition, the test equipment or the test equipment converts the state parameters through a preset rule by a function packaging and filling module to obtain parameters meeting the grammar of a preset detection function, and then fills the converted parameters into the function to generate the script.
It should be noted that, when the state parameter itself satisfies the preset detection function, the filling of the parameter may be directly performed without conversion. After generating the script, the test device may run the script to obtain a display result, such as a parking light icon displayed in a 2hz frequency and a red color. Then the test equipment can shoot the display condition of the car machine for displaying the stop lamp icon through the camera, the camera sends the video containing the display condition to the test equipment, and after the test equipment receives the video, the display condition of the stop lamp icon is determined and compared with the display result obtained by the current running script, and the test result of the car machine is determined.
In addition, when the car machine displays the target icon, the testing equipment can send an instruction such as an engine fault instruction to the car machine, and the car machine responds to the instruction to display the parking lamp icon after receiving the instruction, so that the display condition of the icon can be shot.
As shown in fig. 2, it can be known from the foregoing that the test equipment 201 performs step 211: and sending the command to the car machine 202. The car machine 202 receives the instruction, may display a target icon in response to the instruction, or may execute a corresponding operation in response to the instruction, and may display the target icon of the corresponding operation on the car machine after the operation is executed. And then the testing equipment 201 acquires an image of the car machine through the camera. I.e. the test device 201 performs step 212: and (5) collecting an image.
After the state information is obtained in the above steps, it is necessary to determine whether the state information is a compound sentence or not and whether a sentence division is required or not.
Specifically, the generating method 100 further includes: determining whether to perform clause division on the state information; if so, the state information is divided into sentences, and the time sequence relation between the sentences is determined; and extracting corresponding state parameters for each clause, and generating an icon detection script according to the time sequence relation, the state parameters corresponding to the clauses and a preset detection function.
For example, after acquiring the state information, as shown in fig. 3, the test device executes step 301: and extracting an expected detection result, and then determining whether the state information needs to be divided or not through a preset symbol or a preset word appearing in the state information. Step 302 is executed: whether the sentence is a compound sentence is analyzed. If the symbol "comma", the word "later", the word "and", etc. appears, a clause is required. When the sentence is needed to be divided, the state information is divided according to the preset symbols or words, for example, the information before the "later" is divided into one sub-information, the information after the "later" is divided into another sub-information, and the sequence order is determined according to the sub-information. If the sub information before "later" is the first time period, the sub information after "later" is the second time period. If the sub information before and after "and" is parallel time sequence, it belongs to the same time slot. If the sentence is a compound sentence, execute step 304: whether the sentence is a parallel sentence or not is analyzed. If yes, go to step 306: and splitting the clauses, and finishing each part according to a single sentence processing flow. If not, go to step 305: and (5) time series processing flow. It is understood that step 305 and step 306 correspond to the above sub-information with time sequence distinction and the sub-information with parallel time sequence, respectively. For the sub information distinguished in time sequence, parameter processing can be performed on each sub information. Then, according to the manner described above, the state parameter of each sub-information is extracted, and the sub-information is filled into a preset detection function according to the time sequence order and the corresponding state parameter, so as to generate a script.
If not, the procedure is executed to step 303: and (4) single sentence processing flow. I.e. the state parameters are extracted directly as described above. It will not be described in detail.
The icon detection script is generated according to the time sequence relation, the state parameters corresponding to the clauses and the preset detection function, and the icon detection script generation method comprises the following steps: and sequentially filling the state parameters corresponding to the clauses into a preset detection function according to the time sequence relation to generate an icon detection script.
For example, according to the foregoing, the test device may directly fill the state parameters of the same time period into the preset detection function to generate the script. For parameters of different time periods, the test equipment may fill the corresponding state parameters into the preset positions in the function according to a time sequence, if the first time period is before the second time period, and if the preset positions in the preset detection function are sequentially supplemented according to the time period sequence, the state parameters corresponding to the first time period may be filled first according to the sequence, and then the state parameters corresponding to the second time period may be filled. It will be appreciated from the foregoing that when a parameter conversion is required, then the parameter conversion is performed, and then the parameter filling is performed as described above. And generating a final script for execution.
It should be noted that, for the parameters with time sequence, such as the status parameter of the first time period and the status parameter of the second time period, it may be indicated that the target icon changes in the two time periods, such as the icon is displayed in the first time period, and disappears in the second time period.
In addition, the generation method 100 further includes: and acquiring the display position of the target icon, and supplementing the display position into the state parameter.
For example, according to the foregoing description, the test device may acquire the display position from the test case for displaying on the vehicle. Or after the name of the target icon is obtained, the corresponding display position can be obtained according to different vehicle-mounted device types, and the display position can be obtained in a form of a table. And the acquired display position is supplemented into the state parameter, and then the state parameter is filled into a preset detection function.
After the script is generated, the script is operated to test the corresponding vehicle machine.
Specifically, the generating method 100 further includes: running the generated icon detection script and determining a display result corresponding to the target icon; and obtaining a display result corresponding to the on-board display target icon, and comparing the display result with the display result to finish detection.
For example, as can be seen from the foregoing description, after the test device generates the script, the script is executed and the display result of the target icon is displayed. According to the foregoing, the test equipment may acquire a video or an image of the vehicle machine displaying the target icon via the camera. And then analyzing the acquired video or image, comparing the two results to determine whether the two results are consistent, if so, determining that the vehicle-mounted detection is not problematic, and if not, determining that the vehicle-mounted detection is abnormal, and reporting to investigate the corresponding vehicle-mounted device.
In addition, it should be further noted that, in an embodiment of the present invention, the meter image (i.e., the target image) of the vehicle device may be an image captured in real time of a content displayed on a display screen of the vehicle device, may be a test image in a vehicle production stage, and may also be an actual display image when the vehicle is running, which is not limited specifically herein.
The test apparatus described above may further include a controller, wherein the controller is configured to: and running the script and displaying the target image of the car machine. The controller also includes a logging module for logging logs. The controller is further configured to: and logging in the process of extracting the state parameters and the logging in which the preset detection function parameters are filled.
Therefore, the embodiment of the invention can extract the state parameters and the time sequence according to the expected result of the test case, thereby providing powerful technical support for promoting the separation of the test data and the test case. The method has the advantages that the generation efficiency of the automatic test case is improved, meanwhile, the flashing of the dashboard icons of the vehicle machine and the generalization of the display detection automatic assembly are further improved, and the method has practical application value.
The invention further provides a device for generating the icon detection script. The generating means may be applied in a test device. As shown in fig. 4, the generating device 400 may include:
and the natural language processing module 401 is configured to determine a target icon according to the test case.
And the natural language processing module 401 is configured to acquire state information of the target icon displayed on the vehicle, and extract a corresponding state parameter according to the state information, where the state parameter may be used to determine the state information.
And the function parameter filling module 402 is configured to generate an icon detection script according to the state parameter and a preset detection function, so as to test the icon display of the in-vehicle device through the generated icon detection script.
The generating device 400 further comprises a controller 403 for running a script for testing.
Specifically, the natural language processing module 401 is configured to obtain status information matched with different car machine types according to the identifier of the target icon, so as to display the target icon on the matched car machine.
Specifically, the function parameter filling module 402 is configured to fill the extracted state parameter into a preset detection function, so as to generate an icon detection script.
In addition, the natural language processing module 401 is further configured to determine whether to perform clause segmentation on the state information; if yes, the state information is divided into sentences, and the time sequence relation among the sentences is determined; and extracting corresponding state parameters for each clause, and generating an icon detection script according to the time sequence relation, the state parameters corresponding to the clauses and a preset detection function.
The natural language processing module 401 is configured to sequentially fill state parameters corresponding to the clauses into a preset detection function according to the time sequence relationship, and generate an icon detection script.
In addition, the natural language processing module 401 is further configured to obtain a display position of the target icon, and supplement the display position to the status parameter.
In addition, the controller 403 is configured to run the generated icon detection script, and determine a display result corresponding to the target icon; and obtaining a display result corresponding to the vehicle display target icon, and comparing the display result with the display result to finish detection.
Wherein the logging is recorded by a logging module 404 in the controller 403.
Furthermore, the natural language processing module 401 is further configured to: and converting the state parameters into preset parameters meeting a preset detection function so as to fill the preset detection function, and generating an icon detection script.
Another embodiment of the present invention provides a schematic structural diagram of a computing device as shown in fig. 5. The computing device 500 is only one example and should not bring any limitations to the functionality or scope of use of embodiments of the present invention, and the computing device 500 may be a testing device or the like.
Computing device 500 is represented in the form of a general purpose computing device. Components of computing device 500 may include, but are not limited to: one or more processors or processor units 501, a memory 504, and a bus 507 that couples the various device components including the memory 504 and the processor unit 501. Wherein the processor or processor unit is coupled to the memory 504 via a bus 507.
A memory 504 for storing a computer program; a processor executing a computer program for: determining a target icon according to the test case; acquiring state information of a target icon displayed on a vehicle machine, and extracting corresponding state parameters according to the state information, wherein the state parameters can be used for determining the state information; and generating an icon detection script according to the state parameters and a preset detection function, and testing the icon display of the car machine through the generated icon detection script.
The processor may also be configured to perform the steps described above, and will not be described herein.
Bus 507 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor, or a local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Computing device 500 typically includes a variety of computer system readable media. Such media can be any available media that is accessible by computing device 500 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 504 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM), i.e., RAM5041 and/or cache 5043, i.e., cache memory. The computing device 500 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 5042 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 5 and commonly referred to as a "hard drive"). Although not shown in FIG. 5, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 507 by one or more data media interfaces. Memory 504 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
Program/utility 5044, having a set (at least one) of program modules 5045, may be stored, for example, in memory 504, such program modules 5045 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 5045 generally perform the functions and/or methodologies of embodiments of the present invention as described herein.
Computing device 500 may also communicate with one or more external devices 506 (e.g., keyboard, pointing device, display 502, etc.), with one or more devices that enable a user to interact with computing device 500, and/or with any devices (e.g., network card, modem, etc.) that enable computing device 500 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface, i.e., I/O interface 503. Moreover, computing device 500 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the internet) via network adapter 505. As shown in FIG. 5, network adapter 505 communicates with the other modules of computing device 500 over bus 507. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with computing device 500, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, to name a few.
The processor unit 501 executes various functional applications and data processing by running programs stored in the memory 504, for example, implementing a method of generating an icon detection script provided by an embodiment of the present invention.
Another embodiment of the present invention provides a computer-readable storage medium on which a computer program is stored, the program, when executed by one or more processors, implementing a method for generating an icon detection script provided by an embodiment of the present invention:
in practice, the computer readable storage medium may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having 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. In one embodiment of the invention, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The method, device and storage medium for generating the icon detection script provided by the present invention are described in detail above. It will be apparent to those skilled in the art that any obvious modifications thereof can be made without departing from the spirit of the invention, which infringes the patent right of the invention and bears the corresponding legal responsibility.

Claims (10)

1. A method for generating an icon detection script is characterized by comprising the following steps:
determining a target icon according to the test example;
acquiring state information of a target icon displayed on a vehicle machine, and extracting corresponding state parameters according to the state information, wherein the state parameters can be used for determining the state information;
and generating an icon detection script according to the state parameters and a preset detection function, and testing the icon display of the car machine through the generated icon detection script.
2. The generation method according to claim 1, wherein the obtaining of the state information of the target icon displayed on the in-vehicle device includes:
and acquiring state information matched with different vehicle-mounted machines according to the identifier of the target icon so as to display the target icon on the matched vehicle-mounted machine.
3. The method of claim 1, wherein generating the icon detection script based on the status parameter and a preset detection function comprises:
and filling the extracted state parameters into a preset detection function to generate an icon detection script.
4. The generation method of claim 1, further comprising:
determining whether to perform clause division on the state information;
if yes, the state information is divided into sentences, and the time sequence relation among the sentences is determined;
and extracting corresponding state parameters for each clause, and generating an icon detection script according to the time sequence relation, the state parameters corresponding to the clauses and a preset detection function.
5. The method according to claim 4, wherein the generating an icon detection script according to the time sequence relationship, the state parameters corresponding to the clauses and the preset detection function comprises:
and sequentially filling the state parameters corresponding to the clauses into a preset detection function according to the time sequence relation to generate an icon detection script.
6. The generation method of claim 1, further comprising:
and acquiring the display position of the target icon, and supplementing the display position into the state parameter.
7. The generation method of claim 1, further comprising:
running the generated icon detection script and determining a display result corresponding to the target icon;
and obtaining a display result corresponding to the vehicle display target icon, and comparing the display result with the display result to finish detection.
8. The generation method of claim 3, further comprising:
and converting the state parameters into preset parameters meeting a preset detection function so as to fill the preset detection function with the preset parameters to generate an icon detection script.
9. A computing device comprising a memory and a processor, the memory coupled with the processor; wherein the content of the first and second substances,
the memory for storing a computer program;
the processor executing the computer program to: determining a target icon according to the test case;
acquiring state information of a target icon displayed on a vehicle-mounted device, and extracting corresponding state parameters according to the state information, wherein the state parameters can be used for determining the state information;
and generating an icon detection script according to the state parameters and a preset detection function, and testing the icon display of the car machine through the generated icon detection script.
10. A computer readable storage medium storing a computer program, characterized in that the computer program, when executed by one or more processors, causes the one or more processors to carry out the steps in the generation method according to any one of claims 1 to 8.
CN202211262701.3A 2022-10-14 2022-10-14 Icon detection script generation method and device and storage medium Pending CN115543147A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202211262701.3A CN115543147A (en) 2022-10-14 2022-10-14 Icon detection script generation method and device and storage medium
PCT/CN2023/124369 WO2024078601A1 (en) 2022-10-14 2023-10-12 Icon detection script generation method, and device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211262701.3A CN115543147A (en) 2022-10-14 2022-10-14 Icon detection script generation method and device and storage medium

Publications (1)

Publication Number Publication Date
CN115543147A true CN115543147A (en) 2022-12-30

Family

ID=84735413

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211262701.3A Pending CN115543147A (en) 2022-10-14 2022-10-14 Icon detection script generation method and device and storage medium

Country Status (2)

Country Link
CN (1) CN115543147A (en)
WO (1) WO2024078601A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024078601A1 (en) * 2022-10-14 2024-04-18 瞬联软件科技(北京)有限公司 Icon detection script generation method, and device and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11789854B2 (en) * 2019-08-19 2023-10-17 Volkswagen Aktiengesellschaft Hybrid interface testing
CN111400438A (en) * 2020-02-21 2020-07-10 镁佳(北京)科技有限公司 Method and device for identifying multiple intentions of user, storage medium and vehicle
CN112506756B (en) * 2020-11-11 2023-06-06 东风汽车集团有限公司 Method and device for generating test case script of vehicle controller
CN113110909A (en) * 2021-04-20 2021-07-13 肇庆小鹏汽车有限公司 Vehicle instrument testing method and device
CN115543147A (en) * 2022-10-14 2022-12-30 瞬联软件科技(北京)有限公司 Icon detection script generation method and device and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024078601A1 (en) * 2022-10-14 2024-04-18 瞬联软件科技(北京)有限公司 Icon detection script generation method, and device and storage medium

Also Published As

Publication number Publication date
WO2024078601A1 (en) 2024-04-18

Similar Documents

Publication Publication Date Title
US10642721B2 (en) Generation of automated testing scripts by converting manual test cases
CN107273280B (en) Log processing method and device, electronic equipment and storage medium
CN109302522B (en) Test method, test device, computer system, and computer medium
CN103471621B (en) A kind of method of testing and testing apparatus being applicable to vehicle navigation multimedia terminal
US9703694B2 (en) Techniques for testing software
CN107193747B (en) Code testing method and device and computer equipment
WO2024078601A1 (en) Icon detection script generation method, and device and storage medium
CN203534602U (en) Testing equipment suitable for vehicle-mounted navigation multimedia terminal
CN112416775A (en) Software automation testing method and device based on artificial intelligence and electronic equipment
CN110647523B (en) Data quality analysis method and device, storage medium and electronic equipment
CN111241043A (en) Multimedia file sharing method, terminal and storage medium
CN111274130A (en) Automatic testing method, device, equipment and storage medium
CN113836014A (en) Interface testing method and device, electronic equipment and storage medium
US11132850B1 (en) Augmented reality diagnostic interface
CN115905029B (en) System architecture, method, device, equipment, medium and chip for chip verification
CN115757045A (en) Transaction log analysis method, system and device
CN115269285A (en) Test method and device, equipment and computer readable storage medium
CN112131611B (en) Data correctness verification method, device, equipment, system and storage medium
CN112948266B (en) Database grammar testing system, method, device, equipment and storage medium
CN112561331A (en) Visual experimental analysis evaluation index construction method
CN112988593B (en) Code analysis method, device, computer equipment and storage medium
CN110348127B (en) Method, device, equipment and storage medium for generating test cases
CN114745252B (en) Method and device for detecting network break reason of vehicle, electronic equipment and storage medium
CN114385476A (en) Performance test result analysis method and device, electronic equipment and storage medium
Ozcelikors et al. CLADIS: Software Platform for Digital Cluster and Informational Driver Assistance Applications

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication