Testing method, device, electronic device and storage medium for vehicle-mounted computer application interface

By simulating the mobile terminal to log in and grab the token using multiple preset interfaces of the vehicle machine, the cumbersome token acquisition problem in the vehicle machine application interface test is solved, and the testing process and resource utilization are simplified, and efficiency and user experience are improved.

CN115576822BActive Publication Date: 2025-08-19CHONGQING CHANGAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211292348.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-20
Publication Date
2025-08-19
Estimated Expiration
2042-10-20

AI Technical Summary

Technical Problem

The token acquisition method of the vehicle computer application interface is cumbersome, resulting in complex testing work, low efficiency, low resource utilization and poor user experience.

Method used

By simulating the mobile terminal uses multiple preset interfaces of the vehicle machine, it simulates login and captures the temporary token token bound to the user information to the vehicle machine, and conducts testing.

Benefits of technology

The test process has been simplified, the testing efficiency has been improved, the vehicle and machine resources have been fully utilized, and the user experience has been improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115576822B_ABST
    Figure CN115576822B_ABST
Patent Text Reader

Abstract

The present application relates to the field of interface testing technology, and in particular to a method, device, electronic device, and storage medium for testing an in-vehicle application interface. The method comprises: obtaining a test request for the in-vehicle application interface; calling multiple preset interfaces of the in-vehicle according to the test request to simulate a mobile terminal logging into the in-vehicle based on user information, and after logging in, capturing a temporary token bound to the user information and the in-vehicle; and testing the in-vehicle application interface using the temporary token bound to the user information and the in-vehicle to obtain a test result. This solves the problems of cumbersome token acquisition methods, low in-vehicle resource utilization, complex testing work, low efficiency, and poor user experience in related technologies.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of interface testing technology, and in particular to a method, device, electronic device, and storage medium for testing a vehicle-mounted computer application interface. Background Art

[0002] In-vehicle applications are customized and developed by developers based on the user dimension of the in-vehicle computer through the in-vehicle computer application interface to realize user-personalized in-vehicle application development. For example, personalized applications such as theme wallpapers, entertainment assistants, and app stores. However, the in-vehicle computer application interface often requires a token bound to the in-vehicle computer and user information to verify user personal information and obtain corresponding customized information.

[0003] In related technologies, users can log in by scanning the vehicle computer's QR code with their mobile phone to obtain a token. The token is then verified to bind the vehicle computer to the user's information, enabling personalized features for the vehicle computer application. However, for vehicle computer application testing, obtaining tokens is cumbersome, resulting in complex testing, low efficiency, severe waste of vehicle computer resources, and a poor user experience. Summary of the Invention

[0004] The present application provides a method, device, electronic device and storage medium for testing a vehicle-machine application interface to solve the problems in related technologies such as cumbersome token acquisition methods, low vehicle-machine resource utilization, complex testing work, low efficiency, and poor user experience.

[0005] The first aspect of the present application provides a method for testing a vehicle-computer application interface, comprising the following steps: obtaining a test request for the vehicle-computer application interface; calling multiple preset interfaces of the vehicle-computer according to the test request to simulate a mobile terminal logging into the vehicle-computer based on user information, and capturing a temporary token bound to the user information and the vehicle-computer after logging in; using the temporary token bound to the user information and the vehicle-computer to test the vehicle-computer application interface and obtain a test result.

[0006] According to the above technical means, the embodiment of the present application can simulate the mobile terminal logging into the vehicle computer through a preset interface, and capture the temporary token bound to the vehicle computer and user information, and then test the vehicle computer application interface to obtain the test results, thereby realizing the personalized function of the vehicle computer application, avoiding the tedious process of scanning the code to log in and capture the vehicle computer entity with a mobile phone, making full use of the vehicle computer resources, making the testing work simple and easy, and improving the testing efficiency. Therefore, it solves the problems of the related art such as the cumbersome method of obtaining tokens, low utilization of vehicle computer resources, complex testing work, low efficiency, and poor user experience.

[0007] Optionally, in one embodiment of the present application, calling multiple preset interfaces of the vehicle computer according to the test request to simulate the mobile terminal logging into the vehicle computer based on user information includes: using the first preset interface of the vehicle computer to simulate obtaining a QR code; inputting the QR code and the user information into the second preset interface of the vehicle computer, and using the second preset interface to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer.

[0008] According to the above technical means, the embodiment of the present application can simulate the QR code through the first preset interface, input the QR code and user information into the second preset interface, and use the second preset interface to scan the QR code, and then log in to the vehicle computer, making full use of the multiple interface resources of the vehicle computer. By simulating the mobile phone to scan the QR code to log in to the vehicle computer through the interface, the testing work becomes simple and easy, the testing efficiency is improved, and the user experience is enhanced.

[0009] Optionally, in one embodiment of the present application, the simulation of obtaining a QR code using the first preset interface of the vehicle computer includes: obtaining one or more preset parameters of the vehicle computer; inputting the one or more preset parameters into a third preset interface, using the third preset interface to verify the legitimacy of the vehicle computer, and after the verification is passed, using the fourth preset interface to obtain a token signed by the vehicle computer; inputting the token signed by the vehicle computer into the first preset interface to generate a QR code corresponding to the token signed by the vehicle computer.

[0010] According to the above-mentioned technical means, the embodiment of the present application can input the third preset interface after obtaining the parameters, verify the legality through the third preset interface, and if it is legal, obtain the token signed by the vehicle computer through the fourth preset interface, and input the first preset interface to generate the corresponding QR code at the same time, making full use of the multi-interface resources of the vehicle computer, and each interface performs its own responsibilities, making the testing work simple and easy, improving the testing efficiency, and enhancing the user experience.

[0011] Optionally, in one embodiment of the present application, the QR code and the user information are input into the second preset interface of the vehicle computer, and the second preset interface is used to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer. It also includes: inputting the user information into the fifth preset interface of the vehicle computer, using the fifth preset interface to verify the legitimacy of the user information, and obtaining the token signed by the user after the verification is passed; inputting the QR code and the token signed by the user into the second preset interface of the vehicle computer, and using the simulated code scanning login action to simulate logging into the vehicle computer.

[0012] According to the above-mentioned technical means, the embodiment of the present application can verify the legitimacy of user information through the fifth preset interface. If it is legal, a token signed by the user is obtained, and then the QR code and the token signed by the user are input into the second preset interface, thereby simulating the code scanning to log in to the vehicle computer, making full use of the resources of the vehicle computer's multiple interfaces, making the testing work simple and easy, improving the testing efficiency, and enhancing the user experience.

[0013] Optionally, in one embodiment of the present application, the capturing of the temporary token bound to the user information and the vehicle computer after login includes: after the code is scanned successfully, matching the token signed by the vehicle computer with the user information; inputting the QR code and the token signed by the vehicle computer corresponding to the user information into the sixth preset interface of the vehicle computer, and using the sixth preset interface to bind the user information to the vehicle computer to obtain a temporary token bound to the user information and the vehicle computer.

[0014] According to the above technical means, the embodiment of the present application can obtain a token signed by the vehicle computer by scanning a QR code, and input it and the user information into the sixth preset interface, and obtain a temporary token token bound to the user information and the vehicle computer by binding, thereby avoiding the tediousness of using a mobile phone to scan the code to log in and capture the vehicle computer entity, and the vehicle computer interface is fully utilized, thereby improving the user experience.

[0015] The second aspect of the present application provides a testing device for a vehicle-computer application interface, including: an acquisition module for obtaining a test request for the vehicle-computer application interface; a simulation module for calling multiple preset interfaces of the vehicle-computer according to the test request to simulate a mobile terminal logging into the vehicle-computer based on user information, and capturing a temporary token bound to the user information and the vehicle-computer after logging in; a testing module for testing the vehicle-computer application interface using the temporary token bound to the user information and the vehicle-computer to obtain a test result.

[0016] Optionally, in one embodiment of the present application, the simulation module is further used to: use the first preset interface of the vehicle computer to simulate obtaining a QR code; input the QR code and the user information into the second preset interface of the vehicle computer, and use the second preset interface to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer.

[0017] Optionally, in one embodiment of the present application, the simulation module is further used to: obtain one or more preset parameters of the vehicle computer; input the one or more preset parameters into the third preset interface, use the third preset interface to verify the legitimacy of the vehicle computer, and after the verification is passed, use the fourth preset interface to obtain the token signed by the vehicle computer; input the token signed by the vehicle computer into the first preset interface to generate a QR code corresponding to the token signed by the vehicle computer; input the user information into the fifth preset interface of the vehicle computer, use the fifth preset interface to verify the legitimacy of the user information, and after the verification is passed, obtain the token signed by the user; input the QR code and the token signed by the user into the second preset interface of the vehicle computer, use the simulated code scanning login action to simulate logging into the vehicle computer, and after the code scanning is successful, correspond the token signed by the vehicle computer to the user information; input the QR code and the token signed by the vehicle computer corresponding to the user information into the sixth preset interface of the vehicle computer, use the sixth preset interface to bind the user information to the vehicle computer, and obtain a temporary token token bound to the user information and the vehicle computer.

[0018] The third aspect of the present application provides an electronic device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle-machine application interface testing method as described in the above embodiment.

[0019] The fourth aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which is executed by a processor to implement the vehicle-machine application interface testing method as described in the above embodiment.

[0020] Therefore, this application has at least the following beneficial effects:

[0021] 1. The embodiment of the present application can simulate mobile terminal login to the vehicle computer through a preset interface, capture the temporary token bound to the vehicle computer and user information, and then test the vehicle computer application interface to obtain test results, thereby realizing the personalized function of the vehicle computer application, avoiding the tedious process of scanning the vehicle computer entity with a mobile phone to log in and capture the token, making full use of the vehicle computer resources, making the testing work simple and easy, and improving the testing efficiency. This solves the problems of cumbersome token acquisition methods, low vehicle computer resource utilization, complex testing work, low efficiency, and poor user experience in related technologies.

[0022] 2. The embodiment of the present application can simulate obtaining a QR code through the first preset interface, input the QR code and user information into the second preset interface, and use the second preset interface to scan the QR code to log in to the vehicle computer, making full use of the multiple interface resources of the vehicle computer. By simulating the mobile phone to scan the QR code to log in to the vehicle computer through the interface, the testing work becomes simple and easy, the testing efficiency is improved, and the user experience is enhanced.

[0023] 3. In the embodiment of the present application, after obtaining the parameters, the third preset interface can be input, and the legality can be verified through the third preset interface. If it is legal, the token signed by the vehicle computer can be obtained through the fourth preset interface, and the first preset interface can be input to generate the corresponding QR code at the same time. This fully utilizes the multi-interface resources of the vehicle computer, and each interface performs its own responsibilities, making the testing work simple and easy, improving the testing efficiency, and enhancing the user experience.

[0024] 4. The embodiment of the present application can verify the legitimacy of user information through the fifth preset interface. If it is legal, a token signed by the user is obtained, and then the QR code and the token signed by the user are input into the second preset interface, thereby simulating scanning the code to log in to the vehicle computer, making full use of the resources of the vehicle computer's multiple interfaces, making the testing work simple and easy, improving testing efficiency, and enhancing user experience.

[0025] 5. In the embodiment of the present application, a token signed by the vehicle computer can be obtained by scanning a QR code, and the token and the user information are input into the sixth preset interface. By binding, a temporary token is obtained that binds the user information to the vehicle computer. This avoids the tedious process of scanning the code to log in to the vehicle computer entity with a mobile phone, and the vehicle computer interface is fully utilized, thereby improving the user experience.

[0026] This solves technical problems in related technologies such as cumbersome token acquisition methods, low vehicle resource utilization, complex testing work, low efficiency, and poor user experience.

[0027] Additional aspects and advantages of the present application will be given in part in the description below, and in part will become apparent from the description below, or will be learned through practice of the present application. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] The above and / or additional aspects and advantages of the present application will become apparent and easily understood from the following description of the embodiments in conjunction with the accompanying drawings, in which:

[0029] Figure 1 This is a flow chart of a method for testing a vehicle-machine application interface according to an embodiment of the present application;

[0030] Figure 2 A schematic diagram of a method for obtaining a token by simulating a mobile phone scanning code to log in to the vehicle computer based on an interface according to a specific embodiment;

[0031] Figure 3 This is an example diagram of a vehicle-machine application interface testing device provided according to an embodiment of the present application;

[0032] Figure 4 Schematic diagram of the structure of an electronic device according to an embodiment of the present application.

[0033] Description of reference numerals: acquisition module-100, simulation module-200, test module-300, memory-401, processor-402, communication interface-403. DETAILED DESCRIPTION

[0034] The following describes in detail embodiments of the present application. Examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are intended to be used to explain the present application, and should not be construed as limiting the present application.

[0035] The following describes the testing method, device, vehicle and storage medium of the vehicle-machine application interface of the embodiment of the present application with reference to the accompanying drawings. In response to the problems mentioned in the above background technology, the present application provides a testing method for the vehicle-machine application interface. In this method, by obtaining a test request for the vehicle-machine application interface, multiple preset interfaces of the vehicle-machine are called according to the test request to simulate the mobile terminal logging into the vehicle-machine based on user information, and after logging in, the temporary token bound to the user information and the vehicle-machine is captured, and the vehicle-machine application interface is tested using the temporary token bound to the user information and the vehicle-machine to obtain the test results. In this way, the problems of cumbersome token acquisition methods, low vehicle-machine resource utilization, complex testing work, low efficiency, and poor user experience in the related technologies are solved.

[0036] Specifically, Figure 1 A flowchart of a method for testing a vehicle-machine application interface provided in an embodiment of the present application.

[0037] like Figure 1 As shown, the test method of the vehicle computer application interface includes the following steps:

[0038] In step S101, a test request of the vehicle-machine application interface is obtained.

[0039] There are many ways to obtain requests, such as human-computer interaction through a human-computer interaction interface such as a screen, and human-computer dialogue through an intelligent voice system, etc., without specific limitations.

[0040] In step S102, multiple preset interfaces of the vehicle computer are called according to the test request to simulate the mobile terminal logging into the vehicle computer based on the user information, and after the login, a temporary token bound to the user information and the vehicle computer is captured.

[0041] The preset interface can be a pre-defined interface, which is divided into hardware interfaces and software interfaces. The interface between hardware components of information equipment such as computers is called a hardware interface; the interface between software components of information equipment such as computers is called a software interface. In computers, an interface is a shared boundary between two independent components in a computer system for information exchange. In this embodiment, the interface refers to the application interface of the vehicle computer.

[0042] The mobile terminal may be a mobile phone or a smart phone or tablet computer with multiple application functions such as scanning.

[0043] The temporary token can be understood as an identity certificate that plays a temporary role in data communication, and is a token in this embodiment.

[0044] It is understandable that by simulating the mobile phone scanning QR code to log in to the car computer through multiple preset interfaces, and capturing the user information and the temporary token bound to the car computer, the multi-interface resources of the car computer are fully utilized, the testing efficiency is improved, and the user experience is enhanced.

[0045] Optionally, in one embodiment of the present application, multiple preset interfaces of the vehicle computer are called according to a test request to simulate the mobile terminal logging into the vehicle computer based on user information, including: using the first preset interface of the vehicle computer to simulate obtaining a QR code; inputting the QR code and user information into the second preset interface of the vehicle computer, and using the second preset interface to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer.

[0046] The first preset interface and the second preset interface are respectively artificially named interfaces of the vehicle-mounted computer application.

[0047] It can be understood that the embodiment of the present application can simulate the QR code through the first preset interface, input the QR code and user information into the second preset interface, and use the second preset interface to scan the QR code to log in to the vehicle computer, making full use of the multiple interface resources of the vehicle computer. By simulating the mobile phone to scan the QR code to log in to the vehicle computer through the interface, the testing work becomes simple and easy, the testing efficiency is improved, and the user experience is enhanced.

[0048] Optionally, in one embodiment of the present application, a QR code is simulated using the first preset interface of the vehicle computer, including: obtaining one or more preset parameters of the vehicle computer; inputting one or more preset parameters into the third preset interface, using the third preset interface to verify the legitimacy of the vehicle computer, and after the verification is passed, using the fourth preset interface to obtain a token signed by the vehicle computer; inputting the token signed by the vehicle computer into the first preset interface to generate a QR code corresponding to the token signed by the vehicle computer.

[0049] There are many ways to obtain parameters, such as keyboard input, Internet search, scanning and extraction using a scanner, etc., which are not specifically limited.

[0050] Among them, the preset parameters in this embodiment can be the vehicle computer tuid, frame number, timestamp, etc.

[0051] Among them, the third preset interface and the fourth preset interface are artificially named interfaces of the vehicle application.

[0052] It can be understood that the embodiment of the present application can input the third preset interface after obtaining the parameters, verify the legality through the third preset interface, and if it is legal, obtain the token signed by the vehicle computer through the fourth preset interface, and input the first preset interface to generate the corresponding QR code at the same time, making full use of the multi-interface resources of the vehicle computer, and each interface performs its own responsibilities, making the testing work simple and easy, improving the testing efficiency, and enhancing the user experience.

[0053] Optionally, in one embodiment of the present application, the QR code and user information are input into the second preset interface of the vehicle computer, and the second preset interface is used to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer. It also includes: inputting the user information into the fifth preset interface of the vehicle computer, using the fifth preset interface to verify the legitimacy of the user information, and obtaining the user-signed token after the verification is passed; inputting the QR code and the user-signed token into the second preset interface of the vehicle computer, and using the simulated code scanning login action to simulate logging into the vehicle computer.

[0054] Among them, the fifth preset interface can be an artificially named interface of the vehicle application.

[0055] The method for obtaining the token here may be to identify and extract information through software, without specific limitation.

[0056] It can be understood that the embodiment of the present application can verify the legitimacy of user information through the fifth preset interface. If it is legal, a token signed by the user is obtained, and then the QR code and the token signed by the user are input into the second preset interface, thereby simulating the code scanning to log in to the vehicle computer, making full use of the resources of the vehicle computer's multiple interfaces, making the testing work simple and easy, improving testing efficiency, and enhancing user experience.

[0057] Optionally, in one embodiment of the present application, a temporary token that binds the user information to the vehicle computer is captured after login, including: after the code is scanned successfully, the token signed by the vehicle computer is matched with the user information; the QR code and the token signed by the vehicle computer corresponding to the user information are input into the sixth preset interface of the vehicle computer, and the user information is bound to the vehicle computer using the sixth preset interface to obtain a temporary token that binds the user information to the vehicle computer.

[0058] Among them, the sixth preset interface can be an artificially named interface of the vehicle application.

[0059] It can be understood that the embodiment of the present application can obtain a token signed by the vehicle computer by scanning a QR code, and input it and the user information into the sixth preset interface, and obtain a temporary token token bound to the user information and the vehicle computer by binding, thereby avoiding the tediousness of using a mobile phone to scan the code to log in and capture the vehicle computer entity, and the vehicle computer interface is fully utilized, thereby improving the user experience.

[0060] In step S103, the vehicle computer application interface is tested using the temporary token bound to the vehicle computer by using the user information to obtain the test result.

[0061] It can be understood that the embodiment of the present application tests the vehicle application interface through user information and the token bound to the vehicle, so as to realize the personalized function of the vehicle application.

[0062] According to the vehicle-mounted computer application interface testing method proposed in the embodiment of this application, by obtaining a test request for the vehicle-mounted computer application interface, calling multiple preset interfaces of the vehicle-mounted computer according to the test request, simulating a mobile terminal logging into the vehicle-mounted computer based on user information, and capturing the temporary token bound to the user information and the vehicle-mounted computer after login. The vehicle-mounted computer application interface is tested using the temporary token bound to the user information and the vehicle-mounted computer to obtain the test results. This solves the problems of cumbersome token acquisition methods, low vehicle-mounted computer resource utilization, complex testing work, low efficiency, and poor user experience in related technologies.

[0063] The following is a detailed description of the vehicle-machine application interface testing method proposed in the embodiment of the present application through a specific embodiment. Figure 2 As shown, HU is the in-vehicle infotainment system (IVI). In this embodiment, it refers to the hardware device installed in the vehicle center console, which has touch screen operation characteristics and provides navigation, audio and video playback, assisted driving, body control, wireless communication and other functions, namely the vehicle computer, including the following steps:

[0064] S1: Use the verification interface to pass the vehicle computer tuid, vehicle frame number, and timestamp as parameters to verify the vehicle computer, and return the interface to obtain the token signed by the vehicle computer Hu;

[0065] S2: Pass the Hu-signed token as a parameter to the interface for generating the vehicle computer QR code, and generate a QR code corresponding to the token. This step simulates the vehicle computer generating the QR code and binds the QR code to the vehicle computer;

[0066] S3: The APP login interface simulates user login, takes the user's account and password as input parameters, verifies the user information, and obtains the user's signed token;

[0067] S4: Pass the generated QR code number and user token to the simulated code scanning interface. This step simulates the code scanning operation and matches Hu's token with user information through the QR code;

[0068] S5: After the code scanning simulation is completed, the Hu token corresponding to the QR code and user information is passed to the vehicle user login interface to generate the vehicle user token required for the vehicle application, that is, the Hu-user token is generated in the Hu-uer interface.

[0069] Among them, S1-S2 simulates the car computer to generate a QR code, S3-S4 simulates the mobile phone to scan the QR code, and S5 simulates the user information logging into the car computer to bind the user information to the car computer.

[0070] Vehicle computer application functions, such as the "theme wallpaper" function, are user-customized features. Different users have their own favorite, purchased, and favorite theme wallpapers. This function not only requires a corresponding vehicle computer (HU) but also a corresponding app to identify user personal information. This function requires a mobile phone app to scan a QR code generated by the vehicle computer and obtain the user information. For testers, testing the interface of this function requires a Hu-user token that is bound to the vehicle computer and user information to obtain and identify the vehicle computer and user information.

[0071] In summary, the present embodiment eliminates the need for testers to scan a QR code with their mobile phone to log in to the vehicle computer and capture a token. Instead, testers can simulate the process of logging in to the vehicle computer through a mobile app by scanning a QR code through several interfaces. The Hu-user token, which is the binding between the vehicle computer and the app user information, is then used to test the vehicle computer application interface. This solves the problems of cumbersome token acquisition methods, low vehicle computer resource utilization, complex testing, low efficiency, and poor user experience in related technologies.

[0072] Next, a test device for the vehicle-machine application interface proposed in accordance with an embodiment of the present application will be described with reference to the accompanying drawings.

[0073] Figure 3 It is a block diagram of a testing device for a vehicle-machine application interface according to an embodiment of the present application.

[0074] like Figure 3 As shown, the vehicle-machine application interface testing device 10 includes: an acquisition module 100 , a simulation module 200 , and a testing module 300 .

[0075] Among them, the acquisition module 100 is used to obtain the test request of the vehicle computer application interface; the simulation module 200 is used to call multiple preset interfaces of the vehicle computer according to the test request to simulate the mobile terminal logging into the vehicle computer based on user information, and grab the temporary token bound to the user information and the vehicle computer after login; the testing module 300 is used to use the temporary token bound to the user information and the vehicle computer to test the vehicle computer application interface and obtain the test results.

[0076] Optionally, in one embodiment of the present application, the simulation module 200 is further used to: use the first preset interface of the vehicle computer to simulate obtaining a QR code; input the QR code and user information into the second preset interface of the vehicle computer, and use the second preset interface to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer.

[0077] Optionally, in one embodiment of the present application, the simulation module 200 is further used to: obtain one or more preset parameters of the vehicle computer; input one or more preset parameters into the third preset interface, use the third preset interface to verify the legitimacy of the vehicle computer, and after the verification is passed, use the fourth preset interface to obtain the token signed by the vehicle computer; input the token signed by the vehicle computer into the first preset interface to generate a QR code corresponding to the token signed by the vehicle computer; input user information into the fifth preset interface of the vehicle computer, use the fifth preset interface to verify the legitimacy of the user information, and obtain the token signed by the user after the verification is passed; input the QR code and the token signed by the user into the second preset interface of the vehicle computer, use the simulated code scanning login action to simulate the login to the vehicle computer, and after the code scanning is successful, match the token signed by the vehicle computer with the user information; input the QR code and the token signed by the vehicle computer corresponding to the user information into the sixth preset interface of the vehicle computer, use the sixth preset interface to bind the user information to the vehicle computer, and obtain a temporary token token that binds the user information to the vehicle computer.

[0078] It should be noted that the aforementioned explanation of the embodiment of the vehicle-machine application interface testing method is also applicable to the vehicle-machine application interface testing device of this embodiment, and will not be repeated here.

[0079] The vehicle-mounted computer application interface testing device proposed in the embodiment of the present application obtains a test request for the vehicle-mounted computer application interface and calls multiple preset interfaces of the vehicle-mounted computer according to the test request to simulate a mobile terminal logging into the vehicle-mounted computer based on user information. After logging in, the device captures the temporary token bound to the user information and the vehicle-mounted computer. The temporary token bound to the user information and the vehicle-mounted computer is used to test the vehicle-mounted computer application interface and obtain test results. This solves the problems of cumbersome token acquisition methods, low vehicle-mounted computer resource utilization, complex testing work, low efficiency, and poor user experience in related technologies.

[0080] Figure 4 This is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may include:

[0081] Memory 401 , processor 402 , and computer programs stored in the memory 401 and executable on the processor 402 .

[0082] When the processor 402 executes the program, the vehicle-machine application interface testing method provided in the above embodiment is implemented.

[0083] Furthermore, the electronic device further includes:

[0084] The communication interface 403 is used for communication between the memory 401 and the processor 402 .

[0085] The memory 401 is used to store computer programs that can be run on the processor 402 .

[0086] The memory 401 may include a high-speed RAM (Random Access Memory) memory, and may also include a non-volatile memory, such as at least one disk memory.

[0087] If the memory 401, the processor 402, and the communication interface 403 are implemented independently, the communication interface 403, the memory 401, and the processor 402 can be connected to each other via a bus and communicate with each other. The bus can be an ISA (Industry Standard Architecture) bus, a PCI (Peripheral Component Interconnect) bus, or an EISA (Extended Industry Standard Architecture) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 4 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0088] Optionally, in a specific implementation, if the memory 401, the processor 402 and the communication interface 403 are integrated on a chip, the memory 401, the processor 402 and the communication interface 403 can communicate with each other through an internal interface.

[0089] The processor 402 may be a CPU (Central Processing Unit), or an ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present application.

[0090] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the program is executed by a processor, the above-mentioned vehicle-machine application interface testing method is implemented.

[0091] In the description of this specification, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present application. In this specification, the schematic representations of the above terms do not necessarily refer to the same embodiment or example. Moreover, the specific features, structures, materials or characteristics described can be combined in any one or N embodiments or examples in a suitable manner. In addition, those skilled in the art can combine and combine different embodiments or examples described in this specification and features of different embodiments or examples without contradiction.

[0092] Furthermore, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of technical features indicated. Thus, a feature specified as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of this application, "N" means at least two, for example, two, three, etc., unless otherwise specifically defined.

[0093] Any process or method description in a flowchart or otherwise described herein may be understood to represent a module, fragment or portion of code comprising one or more executable instructions for implementing the steps of a custom logical function or process, and the scope of the preferred embodiments of the present application includes alternative implementations in which functions may be performed out of the order shown or discussed, including performing functions in a substantially simultaneous manner or in reverse order depending on the functions involved, which should be understood by those skilled in the art to which the embodiments of the present application belong.

[0094] It should be understood that various parts of the present application can be implemented using hardware, software, firmware, or a combination thereof. In the above embodiment, the N steps or methods can be implemented using software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented using hardware, as in another embodiment, any one of the following technologies known in the art or a combination thereof can be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application-specific integrated circuit having a suitable combination of logic gate circuits, a programmable gate array, a field programmable gate array, etc.

[0095] Those skilled in the art will understand that all or part of the steps in the method for implementing the above-mentioned embodiment can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium. When the program is executed, it includes one or a combination of the steps of the method embodiment.

[0096] Although the embodiments of the present application have been shown and described above, it can be understood that the above embodiments are exemplary and cannot be understood as limitations on the present application. Ordinary technicians in this field can change, modify, replace and modify the above embodiments within the scope of the present application.

Claims

1. A method for testing a vehicle-mounted computer application interface, characterized in that: The following steps are involved: Get the test request of the vehicle application interface; Calling multiple preset interfaces of the vehicle computer according to the test request to simulate a mobile terminal logging into the vehicle computer based on user information, and capturing a temporary token bound to the user information and the vehicle computer after login; Using the temporary token bound to the vehicle computer and the user information to test the vehicle computer application interface, and obtain a test result; The calling of multiple preset interfaces of the vehicle computer according to the test request to simulate a mobile terminal logging into the vehicle computer based on user information includes: Using the first preset interface of the vehicle computer to simulate and obtain a QR code; Input the QR code and the user information into the second preset interface of the vehicle computer, and use the second preset interface to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer. The QR code is the QR code corresponding to the token signed by the vehicle computer; The method of capturing the user information and the temporary token bound to the vehicle computer after logging in includes: After the code is scanned successfully, the token signed by the vehicle computer is matched with the user information; Input the QR code and the token signed by the vehicle computer corresponding to the user information into the sixth preset interface of the vehicle computer, use the sixth preset interface to bind the user information to the vehicle computer, and obtain a temporary token token that binds the user information to the vehicle computer.

2. The method according to claim 1, characterized in that The method of simulating and obtaining a QR code by using the first preset interface of the vehicle computer includes: Obtain one or more preset parameters of the vehicle computer; Input the one or more preset parameters into a third preset interface, use the third preset interface to verify the legitimacy of the vehicle computer, and after the verification passes, use a fourth preset interface to obtain a token signed by the vehicle computer; Input the token signed by the vehicle computer into the first preset interface to generate a QR code corresponding to the token signed by the vehicle computer.

3. The method according to claim 2, characterized in that The step of inputting the QR code and the user information into a second preset interface of the vehicle computer, and using the second preset interface to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer, further comprises: Input the user information into the fifth preset interface of the vehicle computer, use the fifth preset interface to verify the legitimacy of the user information, and obtain a token signed by the user after the verification is passed; Input the QR code and the token signed by the user into the second preset interface of the vehicle computer, and use the simulated code scanning login action to simulate logging into the vehicle computer.

4. A test device for a vehicle-mounted computer application interface, characterized in that: include: The acquisition module is used to obtain the test request of the vehicle application interface; A simulation module is used to call multiple preset interfaces of the vehicle computer according to the test request to simulate a mobile terminal logging into the vehicle computer based on user information, and to capture a temporary token bound to the user information and the vehicle computer after login; The test module is used to test the vehicle-mounted computer application interface using the temporary token bound to the user information and the vehicle-mounted computer to obtain a test result; the simulation module is further used to: Using the first preset interface of the vehicle computer to simulate and obtain a QR code; Input the QR code and the user information into the second preset interface of the vehicle computer, and use the second preset interface to simulate the mobile terminal scanning the QR code based on the user information to simulate logging into the vehicle computer. The QR code is the QR code corresponding to the token signed by the vehicle computer; The method of capturing the user information and the temporary token bound to the vehicle computer after logging in includes: After the code is scanned successfully, the token signed by the vehicle computer is matched with the user information; Input the QR code and the token signed by the vehicle computer corresponding to the user information into the sixth preset interface of the vehicle computer, use the sixth preset interface to bind the user information to the vehicle computer, and obtain a temporary token token that binds the user information to the vehicle computer.

5. The device according to claim 4, characterized in that The simulation module is further configured to: Obtain one or more preset parameters of the vehicle computer; Input the one or more preset parameters into a third preset interface, use the third preset interface to verify the legitimacy of the vehicle computer, and after the verification passes, use a fourth preset interface to obtain a token signed by the vehicle computer; Input the token signed by the vehicle computer into the first preset interface to generate a QR code corresponding to the token signed by the vehicle computer; Input the user information into the fifth preset interface of the vehicle computer, use the fifth preset interface to verify the legitimacy of the user information, and obtain a token signed by the user after the verification is passed; Input the QR code and the token signed by the user into the second preset interface of the vehicle computer, and use the simulated code scanning login action to simulate logging into the vehicle computer.

6. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the vehicle-machine application interface testing method according to any one of claims 1 to 3.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: The program is executed by a processor to implement the vehicle-machine application interface testing method according to any one of claims 1 to 3.

Citation Information

Patent Citations

  • Mobile application channel logging and monitoring method, apparatus and system, and storage medium

    CN107040535A

  • Account login method, device and equipment and storage medium

    CN110708343A