Task testing method and device, electronic equipment, storage medium and program

By using long communication links to connect the first node and the second node in smart car testing, remote task testing is implemented, and the problem of inefficiency caused by physical space limitations is solved, and testing efficiency and flexibility are improved.

CN119782138AInactive Publication Date: 2025-04-08BEIJING CO WHEELS TECH CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202410978741.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-19
Publication Date
2025-04-08
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

The testing efficiency of smart cars is limited by physical space, and testers need to run between different laboratories, and real-time monitoring and debugging are not possible.

Method used

By establishing a long communication link between the first node and the remote second node, remote task testing of the second node is realized, breaking the physical space limitations.

Benefits of technology

It improves the efficiency of smart car testing, allows task testing in long-distance scenarios, and reduces the physical space constraints in vehicle-machine testing scenarios.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119782138A_ABST
    Figure CN119782138A_ABST
Patent Text Reader

Abstract

The invention discloses a task test method and device, electronic equipment, a storage medium and a program, and is applied to the field of automated test.The method comprises the steps that in response to remote test mode selection information, local test mode client information stored by a master control node is obtained; determining a second node according to the local test mode client information, and establishing a communication long link with the second node based on local connection information and the local test mode client information; and performing remote task testing on the second node according to the communication long link. According to the embodiment of the invention, the first node accesses the second node for arranging the in-vehicle testing scene, and the first node controls the second node to perform the task test, so that remote execution of the task test can be realized, a user does not need to perform the task test on the in-vehicle testing scene, physical space restriction in the in-vehicle testing scene can be reduced, and user experience is improved. The test efficiency of the intelligent automobile can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of automated testing technology, and in particular to a task testing method, device, electronic equipment, storage medium and program. Background Art

[0002] In today's digital age, software has penetrated into every aspect of daily life, especially in the automotive field. The degree of intelligence of automobiles has gradually attracted the attention of the public, and the relevant technical requirements have gradually increased with the attention. Especially in the field of intelligent automobile testing, more stringent requirements are put forward for test subjects, test drivers and test vehicles, and the testing demand for intelligent automobiles in scenarios such as autonomous driving, vehicle-road collaboration, and vehicle networking is also increasing. However, due to cost and safety requirements, all current test tasks of intelligent automobiles need to be logged in to the test server by a fixed client, and the corresponding test tasks are executed on the test server. Testers need to go to different laboratories to determine the execution of the test tasks, resulting in the inability to monitor the execution status of the test tasks in real time, and testers can only upload and debug the test scripts on site. The efficiency of intelligent automobile testing is affected by the actual environment. At present, there is an urgent need for a task testing method that is free from the constraints of physical space to reduce the restrictions of physical space on the efficiency of intelligent automobile testing. Summary of the invention

[0003] The present invention provides a task testing method, device, electronic device, storage medium and program, so as to access a remote second node through a first node, and control the second node through a long communication link to perform remote task testing, which can reduce the physical space constraints in existing testing scenarios and improve the testing efficiency of smart cars.

[0004] According to one aspect of the present invention, there is provided a task testing method, which is applied to a first node, where the first node is configured with a client, and the method comprises:

[0005] In response to the remote test mode selection information, obtaining the local test mode client information stored by the master control node;

[0006] Determine a second node according to the local test mode client information, and establish a long communication link with the second node based on the local connection information and the local test mode client information;

[0007] The second node is remotely tested for a task based on the long communication link.

[0008] According to another aspect of the present invention, there is also provided a task testing method, which is applied to a second node, where the second node is configured with a client, and the method comprises:

[0009] In response to the local test mode selection information, register the local local test mode client information with the main control node, so that the first node obtains the local test mode client information;

[0010] Establishing a long communication link with the first node according to the local connection information of the first node;

[0011] The remote test control of the first node is obtained according to the long communication link, and the task test corresponding to the remote test control is executed.

[0012] According to another aspect of the present invention, there is further provided a task testing device, which is applied to a first node, wherein the first node is configured with a client, and the device comprises:

[0013] An information acquisition module, configured to acquire local test mode client information stored in the master control node in response to remote test mode selection information;

[0014] A first connection establishing module, configured to determine a second node according to the local test mode client information, and establish a long communication link with the second node based on the local connection information and the local test mode client information;

[0015] The first task testing module is used to remotely perform a task test on the second node according to the long communication link.

[0016] According to another aspect of the present invention, there is also provided a task testing device, which is applied to a second node, and the second node is configured with a client, and the device comprises:

[0017] An information registration module, configured to register the local test mode client information with the main control node in response to the local test mode selection information, so that the first node obtains the local test mode client information;

[0018] A second connection establishing module, configured to establish a long communication link with the first node according to the local connection information of the first node;

[0019] The second task test module is used to obtain the remote test control of the first node according to the long communication link, and execute the task test corresponding to the remote test control.

[0020] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:

[0021] at least one processor; and

[0022] a memory communicatively connected to the at least one processor; wherein,

[0023] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the task testing method described in any embodiment of the present invention.

[0024] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the task testing method described in any embodiment of the present invention when executed.

[0025] According to another aspect of the present invention, a computer program product is provided. The computer program product includes a computer program. When the computer program is executed by a processor, the task testing method according to any embodiment of the present invention is implemented.

[0026] The technical solution of the embodiment of the present invention is to obtain the local test mode client information saved by the main control node when receiving the remote test mode selection information, determine the second node according to the local test mode client information, establish a long communication link with the second node through the local connection information and the local test mode client information, remotely perform task testing on the second node through the long communication link, access the second node at a long distance through the first node, and control the second node to perform task testing locally, thereby realizing task testing in a long-distance scenario, breaking the physical limitations of the existing test environment, reducing the physical space constraints in the vehicle-computer test scenario, and improving the testing efficiency of smart cars.

[0027] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0028] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0029] Figure 1 This is an example diagram of the test process in the existing vehicle computer test scenario;

[0030] Figure 2 is a flowchart of a task testing method provided according to Embodiment 1 of the present invention;

[0031] Figure 3 is a flowchart of another task testing method provided according to Embodiment 2 of the present invention;

[0032] Figure 4 is a flowchart of another task testing method provided according to Embodiment 3 of the present invention;

[0033] Figure 5 is a flowchart of another task testing method provided according to Embodiment 4 of the present invention;

[0034] Figure 6 is a flow chart of another task testing method provided according to Embodiment 5 of the present invention;

[0035] Figure 7 This is an example diagram of a mode selection interface of a client provided according to Embodiment 6 of the present invention;

[0036] Figure 8 This is an example diagram of a client selection interface of another client provided according to Embodiment 6 of the present invention;

[0037] Fig. 9 This is an example diagram of a startup timing sequence provided according to Embodiment 6 of the present invention;

[0038] Fig.10 1 is a flowchart of a session key establishment process provided according to Embodiment 7 of the present invention;

[0039] Fig.11 is a structural schematic diagram of a task testing device provided according to Embodiment 8 of the present invention;

[0040] Fig.12 is a structural schematic diagram of another task testing device provided according to Embodiment 9 of the present invention;

[0041] Fig.13 It is a schematic diagram of the structure of an electronic device for implementing the task testing method according to an embodiment of the present invention. DETAILED DESCRIPTION

[0042] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.

[0043] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0044] At present, the testing of different functions in the vehicle system of smart cars needs to be implemented in different test environments. Therefore, the clients for testing the functions are generally deployed in different physical spaces in a distributed manner. Figure 1 In the current automated testing mode, the server sends the test task to the client, the client outputs the test result to the server, and the server displays the test result. Since the client needs corresponding physical hardware support, the clients testing different functions will be distributed in different physical spaces, resulting in the efficiency of vehicle computer testing being limited by the physical space. Testers need to run around in different test spaces, which limits the test efficiency and is not conducive to collaborative testing of multiple test functions.

[0045] Embodiment 1

[0046] Figure 2 This is a flowchart of a task test method provided according to the first embodiment of the present invention. This embodiment is applicable to the remote task test in the vehicle function test scenario. The method can be executed by a task test device. The task test device can be implemented in the form of hardware and / or software. The task test device can be configured in a server or a user terminal. Figure 2 As shown, the method includes:

[0047] Step 110: In response to the remote test mode selection information, obtain the local test mode client information stored in the main control node.

[0048] Among them, the remote test mode selection information may be information that triggers the first node to enter the remote test mode, and the remote test mode may refer to a mode in which the client configured by the first node remotely performs the task test. The remote test mode selection information may be triggered by a user clicking a button or a user voice, and the remote test mode selection information may be monitored through a visual interface. The master control node may be a node that provides client information to the first node. The master control node may save and exchange relevant information about the remote task test. The master control node may be a server connected to the first node. The first node may be a server or a user terminal. The first node is configured with a client for performing the task test, and the client has the functions of task testing and user identity authentication. The local test mode client information may be information saved by the master control node for performing the remote task test. The second client information may be information registered by the second node. The local test mode client information may include the relevant configuration of the second node's client to complete the task test. The second client information may include the vehicle machine test scenario information, network address, and monitoring port number configured by the second node.

[0049] In an embodiment of the present invention, the first node can monitor the remote test mode selection information. When the remote test mode selection information is obtained, one or more local test mode client information can be obtained in the main control node corresponding to the first node. Each local test mode client information can be registered by a second node in the main control node respectively. Exemplarily, the second node logs in to the client and completes the test scenario configuration of the task test. The second node can generate local test mode client information and upload the local test mode client information to the main control node. The first node can obtain the local test mode client information of one or more second nodes by accessing the main control node.

[0050] Step 120: Determine a second node according to the local test mode client information, and establish a long communication link with the second node based on the local connection information and the local test mode client information.

[0051] The second node may be one or more network nodes determined by the first node through the local test mode client information, and the network node may be used to cooperate with the first node to perform remote task testing, and each local test mode client information may have a corresponding second node. The local connection information may be information used by the first node to establish a communication connection with the second node, and the local connection information may at least include the identity information of the first node, and the long communication link may be that multiple data packets can be continuously transmitted on a connection, and when no data packet is sent during the connection maintenance period, the two connected parties need to send a link detection packet, and the long communication link may be implemented through a nested word communication protocol or a transmission control protocol.

[0052] In an embodiment of the present invention, the second node can be determined according to one or more local test mode client information obtained, and the network node to which the local test mode client information belongs can be used as the second node. It can be understood that the second node can be the network node to which all local test mode client information obtained belongs, or it can be a part of the network nodes to which all local test mode client information belongs. The part of the network nodes can be determined randomly or according to user selection. The first node can generate local connection information, and the local connection information can be transmitted to the corresponding second node through the local test mode client information. The second node interacts with the first node through the local connection information, thereby establishing a long communication connection with the second node. It can be understood that the long communication link established between the first node and the second node can be established through a communication protocol. For example, the long communication link is implemented between the first node and the second node through a communication protocol such as a nested word communication protocol or a transmission control protocol, so that multiple data packets can be continuously transmitted between the first node and the second node. Exemplarily, the first node can parse the acquired local test mode client information and extract the network address in the local test mode client information. The first node accesses the second node corresponding to the network address according to the local connection information, and establishes a long communication link with the second node through the local connection information request. After the first node receives feedback from the second node regarding the local connection information, the first node and the second node can complete the establishment of the long communication link.

[0053] Step 130: remotely perform a task test on the second node according to the long communication link.

[0054] Among them, the remote task test can be a test task executed by the first node through the second node. The remote test task can be implemented through a long communication link. The first node can transmit the test instructions or test scripts to the second node through the long communication link, and the second node can execute the corresponding remote task test according to the transmitted test instructions or test scripts.

[0055] In an embodiment of the present invention, the first node can remotely access the second node through a long communication link, and the first node can control the second node to perform a corresponding remote task test through the long communication link. For example, the first node transmits test instructions or test scripts related to the task test to the second node, and controls the second node to perform the remote task test based on the above-mentioned test instructions or test scripts and other information. The second node can feed back the test results generated by the task test to the first node through the long communication link, and the first node can perform statistical analysis and display and other operations on the test results.

[0056] In an embodiment of the present invention, when receiving remote test mode selection information, the main control node obtains the local test mode client information saved by the main control node, connects to the second node corresponding to the local test mode client information through the local connection information, and establishes a long communication link with the second node. The second node is remotely tested through the long communication link, thereby realizing task testing in a long-distance scenario. Remote access to the second node through the first node can break the physical limitations of the existing test environment, reduce the physical space constraints in the vehicle computer test scenario, and improve the task testing efficiency.

[0057] Embodiment 2

[0058] Figure 3 is a flowchart of another task testing method provided according to the second embodiment of the present invention. The embodiment of the present invention is a specific embodiment of the present invention, and describes a method for obtaining client information in a yield mode. Figure 3 The method provided in the embodiment of the present invention specifically includes the following steps:

[0059] Step 210: When the visual interface of the client of the first node receives the remote test mode selection information, it sends an information acquisition request to the main control node.

[0060] Among them, the visualization interface can be an operation interface for performing remote task testing, the operation interface can be a visualization interface of a client configured by the first node, the interaction between the user and the client configured by the first node can be realized through the visualization interface, the visualization interface can provide selection information of at least one client working mode, the client can perform local task testing and remote task testing in different modes, the remote test mode selection information can be information for the user to trigger the client of the first node to enter the remote task test, and the user can trigger the remote test mode selection information by operating the visualization interface. The information acquisition request can be request information generated by the first node, the information acquisition request can be used to obtain local test mode client information at the master control node, and the information acquisition request can be determined in advance through negotiation or configured according to the communication protocol between the first node and the master control node.

[0061] In an embodiment of the present invention, the first node can display a visualization interface, and at least display an interactive control that triggers remote test mode selection information in the visualization interface. The user can trigger the remote test mode selection information by operating the interactive control in the visualization interface, so that the client configured by the first node is in a state of remote task testing. Furthermore, the visualization interface can also provide relevant controls for user login, and the user can log in through the above controls through user identity information. When the first node receives the remote test mode selection information triggered in the visualization interface, it can send an information acquisition request to the master control node, so that the master control node can feedback local test mode client information to the first node.

[0062] Step 220: Receive a client list sent by the master control node, wherein the client list includes at least one piece of local test mode client information, wherein the local test mode client information includes at least vehicle computer test scenario information, network address, and listening port number.

[0063] In an embodiment of the present invention, the client list may be an information list consisting of one or more local test mode client information, the client list may be used to manage the local test mode client information, the first node may obtain the client list sent by the main control node, and obtain one or more local test mode client information in the client list, and the local test mode client information in the client list may be registered to the main control node by the second node that executes the client local test mode. Specifically, the local test mode client information obtained by the first node may include at least information such as vehicle computer test scenario information, network address, and listening port number, the vehicle computer test scenario information may indicate the scenario of the test task executed by the client configuration of the second node, the vehicle computer test scenario may include information such as scenario identification or scenario name, the network address may be the network address of the second node that registers the local test mode client information, and the listening port number may indicate the information exchange port that the second node needs to listen to when executing the test task in the vehicle computer test scenario.

[0064] Step 230: Determine a second node according to the local test mode client information, and establish a long communication link with the second node based on the local connection information and the local test mode client information.

[0065] Step 240: Transmit the test command and / or test script to the second node via the long communication link.

[0066] Among them, the test command can be an instruction to control the second node to execute the test task. The test command is generated by encapsulating the communication protocol of the corresponding communication long link. The test script can be a script file used to execute the test task at the second node. The test script includes at least test instructions and test cases and other information.

[0067] In an embodiment of the present invention, the first node may encapsulate at least one of the test instructions and the test script according to the communication protocol corresponding to the long communication link, and may transmit the encapsulated test instructions or test script to the second node through the long communication link, so that the second node may receive the test instructions and / or the test script. It can be understood that the second node may save the received test instructions and / or test script.

[0068] Step 250: Access the second node according to the long communication link, and control the second node to execute the test command and / or test script.

[0069] In an embodiment of the present invention, the first node can remotely access the second node through a long communication link, the first node can transmit a control instruction to the second node through the long communication link, and the second node can be controlled through the control instruction, so that the second node calls the previously transmitted test command and / or test script, thereby realizing remote debugging of the second node. Further, the first node can provide a visual interface, which can display the operation page of the second node through the long communication link, and the user can call and execute the test command or test script of the second node by manipulating the visual interface on the first node.

[0070] According to an embodiment of the present invention, when remote test mode selection information triggered by a visual interface is received, an information acquisition request is transmitted to a main control node, a client list including at least one local test mode client information issued by the main control node is received, a second node is determined according to the local test mode client information, a long communication link is established with the second node according to the local connection information and the local test mode client information, a test instruction and / or a test script is transmitted to the second node according to the long communication link, the second node is accessed based on the long communication link, and the second node is controlled to execute the test instruction and / or the test script, so that the second node cooperates with the first node to perform remote task testing. According to an embodiment of the present invention, remote test mode selection information is triggered according to a visual interface to reduce the user's difficulty of use, local test mode client information is obtained at the main control node through an information acquisition request, and it is convenient to select the vehicle computer test scenario information through the first node, which helps the first node to remotely access the second node according to user needs, can break the physical limitations of the test environment, can reduce the physical space constraints of the test task execution, and improve the testing efficiency of smart cars.

[0071] Further, based on the above-mentioned embodiment of the invention, accessing the second node according to the long communication link and controlling the second node to execute the test command and / or the test script includes:

[0072] Access the control interface of the client running the second node through the long communication link; obtain the vehicle test scenario information of the vehicle test scenario configured by the client of the second node displayed in the control interface, wherein the vehicle test scenario is controlled by the second node operation, and the vehicle test scenario includes at least one of the vehicle voice test scenario, the vehicle navigation test scenario, the vehicle communication test scenario, and the vehicle security test scenario; control the control interface to select test commands and / or test scripts; load the test commands and / or test scripts to the vehicle test scenario corresponding to the vehicle test scenario information for testing.

[0073] Among them, the control interface can be a visual interface of the client configured by the second node, the first node can obtain and display the relevant display information of the control interface through the long communication link, the control interface can realize the interaction between the user and the client of the second node, and the user can configure or use the vehicle test scene configured by the second node through the control interface. The vehicle test scene and the like can be configured by the client of the second node and used to test the vehicle function. The vehicle test scene can include but is not limited to vehicle voice test scene, vehicle navigation test scene, vehicle communication test scene, vehicle security test scene, etc.

[0074] In an embodiment of the present invention, the first node can access the second node through a long communication link, and can obtain the control interface of the client configured by the second node. The user can manipulate the control interface through the first node, and the relevant instructions of the manipulation can also be transmitted to the second node by the long communication link. The control interface can at least display the vehicle test scene information of the client of the second node, and the vehicle test scene information can indicate the vehicle test scene configured by the client, and the vehicle test scene information can include the identification, name and other information of the vehicle test scene. The control interface can display the vehicle test scene information of the second node, and the vehicle test scene information can indicate the vehicle test scene configured by the client of the second node. The user can obtain the vehicle test scene configured by the first node through the first node. The first node can control the control interface, so as to select one or more test commands and / or test scripts in the control page, and load the selected one or more test commands and / or test scripts into the vehicle test scene corresponding to the vehicle test scene information, and execute the test commands and / or test scripts in the vehicle test scene of the second node, so as to realize the remote task test calmly.

[0075] Embodiment 3

[0076] Figure 4 is a flowchart of another task testing method provided according to Embodiment 3 of the present invention. This embodiment is a specific embodiment based on the above-mentioned embodiment of the invention, and describes a method for establishing a long communication link. Figure 4 The method provided in the embodiment of the present invention specifically includes the following steps:

[0077] Step 310: In response to the remote test mode selection information, obtain the local test mode client information stored by the main control node.

[0078] Step 320: Call the visual interface of the client to display at least one local test mode client information, and obtain the client selection instruction received by the visual interface.

[0079] The visualization interface may be a visualization interface for the first node to perform the test task, the visualization interface may be an interface for the client to interact with the user, and the visualization interface may display the local test mode client information obtained by the master control node. The client selection instruction may be an instruction for selecting one or more local test mode client information, and the client selection instruction may be triggered by a control or voice.

[0080] In an embodiment of the present invention, when the local test mode client information saved by the master control node is obtained, the first node can load the relevant configuration parameters of the client's visual interface to display the visual interface, and the first node also displays the obtained local test mode client information in the visual interface so that the user can select the local test mode client information at the first node, thereby determining the second node that the first node needs to remotely access. The user can trigger the client selection instruction by selecting the local test mode client information displayed in the visual interface, and the client selection instruction can be used to select one or more local test mode client information displayed in the visual interface.

[0081] Step 330: Obtain a preset public key configured by the client, and call the preset public key to encrypt the user identity information of the first node into local connection information.

[0082] The preset public key may be pre-configured information for encrypting local connection information, and the preset public key may specifically include a symmetric encryption public key and an asymmetric encryption public key, and the preset public key may specifically include an RSA public key, a DES public key, etc. The user identity information may be information identifying the identity of a user on the first node, and the user identity information may be obtained when the user logs in to the first node, or may be pre-configured in the first node. The user identity information may include, but is not limited to, an employee number, an employee telephone number, etc.

[0083] In an embodiment of the present invention, the first node can obtain user identity information, call a preset public key to encrypt the user identity information, and use the encrypted user identity information as local connection information. Furthermore, when using the preset public key to encrypt the user identity information, a piece of random information can be added to the user identity information to enhance the security of the encrypted user identity information.

[0084] Step 340, determine the target local test mode client information corresponding to the client selection instruction, and use the network node corresponding to the network address in the target local test mode client information as the second node; send the local connection information to the second node according to the network address of the target local test mode client information, so that the second node verifies the local connection information.

[0085] The target local test mode client information may be the local test mode client information selected by the client selection instruction, and the target local test mode client information may be one or more. The network node may be another node different from the first node, and the network node may register its own local test mode client information with the master control node in advance.

[0086] In an embodiment of the present invention, the first node can determine the target local test mode client information corresponding to the received client selection instruction. For example, the local test mode client information bound to the control that triggers the client selection instruction can be used as the target local test mode client information, or the local test mode client information that matches the keyword in the client selection instruction in voice form can be used as the target local test mode client information. The network address of the target local test mode client information can correspond to one or more network nodes, and the network node corresponding to the network address of the target local test mode client information can be used as the second node. The first node can be connected to the second node corresponding to the target local test mode client information. For example, the first node can connect to the second node according to the network address of the target local test mode client information and the listening port number, and send the local connection information to the second node so that the second node can verify the identity information of the first node through the local connection information.

[0087] Step 350: Receive the encrypted session key fed back by the second node when the verification is successful, and establish a long communication link with the second node according to the encrypted session key; wherein the long communication link includes at least one of a nested word communication long link and a transmission control protocol long link.

[0088] Among them, the encryption session key can be used as a key to encrypt information transmitted in a long communication link, and the encryption session key can be allocated by the second node.

[0089] In an embodiment of the present invention, the second node can verify the user identity information of the first node through the local connection information. After the second node successfully verifies the user identity information in the local connection information, an encrypted session key can be generated. The second node can transmit the encrypted session key to the first node, and the first node can receive the encrypted session key. When the first node receives the encrypted session key, a long communication link is established between the first node and the second node, and the session in the long communication link can be encrypted by the encrypted session key, thereby achieving the establishment of the long communication link. Furthermore, when the encrypted session key is assigned to the first node by the second node, the encrypted session key can also be encrypted to generate an encrypted string. After the first node receives the encrypted string, the encrypted string can be decrypted back into the encrypted session key.

[0090] Specifically, the transmission process of the encrypted session key and local connection information between the first node and the second node can be implemented through nested word communication or transmission control protocol, so that the communication long link between the first node and the second node is specifically constructed as at least one of the nested word communication long link and the transmission control protocol long link.

[0091] Step 360: remotely perform task testing on the second node according to the long communication link.

[0092] In an embodiment of the present invention, when receiving remote test mode selection information, the main control node obtains the saved local test mode client information, calls a visualization interface to display the local test mode client information, receives the client selection instruction obtained by the visualization interface, encrypts the user identity information as local connection information according to a preset public key, determines the target local test mode client information corresponding to the client selection instruction, sends the local connection information to the second node according to the target local test mode client information, receives the encrypted session key fed back by the second node after successful verification to establish a long communication link, performs remote task testing on the second node according to the long communication link, realizes task testing in a long-distance scenario, and accesses the second node as a field control end through the first node, thereby breaking the physical limitations of the vehicle test environment, reducing the physical space constraints in the vehicle test scenario, and improving the testing efficiency of smart cars.

[0093] Furthermore, the embodiment of the present invention also includes: receiving a test execution log transmitted by the second node through a long communication link; and monitoring a test status of the second node according to the test execution log.

[0094] The test execution log may record the test task process data, and may include information such as test results, test steps, and test time.

[0095] In an embodiment of the present invention, the second node can transmit the test execution log to the first node through a long communication link. The first node can parse the received test execution log to extract information such as test results, test steps, and test time. The first node can perform statistical analysis and display on the information extracted from the test execution log, thereby realizing test status monitoring of the second node.

[0096] Embodiment 4

[0097] Figure 5 This is a flowchart of another task test method provided according to the fourth embodiment of the present invention. This embodiment is applicable to the remote task test in the vehicle function test scenario. The method can be executed by a task test device, which can be implemented in the form of hardware and / or software. The task test device can be configured at a second node, which can include a server or a user terminal. The second node can be configured with a client, which can perform local task tests and remote task tests in different modes. Figure 5 As shown, the method includes:

[0098] Step 410: In response to the local test mode selection information, register the local test mode client information to the main control node, so that the first node obtains the local test mode client information.

[0099] Among them, the local test mode selection information can be information that triggers the second node to enter the client local test mode. The client can test the vehicle computer functions locally in the local test mode. One or more vehicle computer test scenarios can be configured in the local test mode. Different vehicle computer test scenarios can test different vehicle computer functions.

[0100] In an embodiment of the present invention, the second node can monitor the local test mode selection information, and the client configured by the second node can perform a local task test. When the second node receives the local test mode selection information, it can generate local test mode client information and upload the local test mode client information to the master control node, which saves the local test mode client information, thereby realizing the registration process of the second node in the master control node.

[0101] Step 420: Establish a long communication link with the first node according to the local connection information of the first node.

[0102] Specifically, when the second node receives the local connection information transmitted by the first node, it can verify the user identity information of the first node according to the local connection information. After determining the user identity information of the first node, the second node can establish a long communication link with the first node. The long communication link can be specifically implemented through a nested word communication protocol, a transmission control protocol, etc.

[0103] Step 430: Obtain the remote test control of the first node according to the long communication link, and execute the task test corresponding to the remote test control.

[0104] Among them, the remote test control can be the control information sent by the first node to the second node, the remote test control can control the second node to perform task testing, the remote test control can be transmitted through a long communication link, and the second node implements remote task testing according to the remote test control scheduling test commands and / or test scripts.

[0105] In an embodiment of the present invention, the second node can receive the remote test control of the first node through the long communication link. The second node receives the remote test control transmitted by the first node on the long communication link, and performs the corresponding task test locally according to the remote test control. For example, the remote test control may include test instructions and / or test script selection information. The first node transmits the remote test control related to the task test to the second node. The second node can load the remote test control to select the test instructions and / or test script, and control the second node to perform the task test based on the above-mentioned test instructions or test scripts and other information. The second node can feed back the test results generated by the task test to the first node through the long communication link. The first node can perform statistical analysis and display on the test results. The second node can cooperate with the first node to remotely perform the task test through the long communication link.

[0106] In an embodiment of the present invention, when receiving local test mode selection information, the local second-mode client information is registered to the main control node, so that the first node obtains the local test mode client information at the main control node, receives the local connection information of the first node to create a long communication link, obtains remote test control based on the long communication link, and executes the task test corresponding to the remote test control, thereby cooperating with the first node to realize remote testing, which can break the physical limitations of the existing test environment, reduce the physical space constraints in the vehicle test scenario, and improve the task test efficiency.

[0107] Embodiment 5

[0108] Figure 6 is a flowchart of another task testing method provided according to Embodiment 5 of the present invention. The embodiment of the present invention is a specific embodiment of the present invention based on the above-mentioned embodiment of the present invention, and describes the registration process of the local test mode client information and the establishment process of the communication long link. Figure 6 The method provided in the embodiment of the present invention specifically includes the following steps:

[0109] Step 510: When the visual interface of the client of the second node receives the local test mode selection information, the vehicle test scenario information of the vehicle test scenario configured by the client is determined, wherein the vehicle test scenario includes at least one of a vehicle voice test scenario, a vehicle navigation test scenario, a vehicle communication test scenario, and a vehicle security test scenario.

[0110] Among them, the vehicle computer test scenario can be a vehicle computer function test scenario pre-configured by the second node. The vehicle computer test scenario can be configured for different vehicle computer functions, and the software and hardware test configurations corresponding to different vehicle computer test scenarios can be different.

[0111] In an embodiment of the present invention, the client of the second node can provide a visual interface, and the user can operate in the visual interface to trigger the local test mode selection information of the second node to enter the local test mode. When the second node receives the local test mode selection information, it can perform the task test locally. The second node can determine the vehicle test scene of its operation control. The determination process may include the second node obtaining a pre-configured vehicle test scene and the second node receiving the vehicle test scene configured by the user in real time through the visual interface. Specifically, the vehicle test scene can be divided according to different functions of the vehicle, and the vehicle test scene may include one or more of the vehicle voice test scene, vehicle navigation test scene, vehicle communication test scene, and vehicle security test scene.

[0112] Step 520: determine the network address of the second node and the monitoring port number for monitoring the vehicle computer test scenario.

[0113] Among them, the network address can be the address for the second node to access the network, the listening port number can be the listening port number for the second node to obtain data when working in the vehicle computer test scenario, the first node can access the second node through the listening port number, and the listening port number can be the port used to establish a long communication link with the first node.

[0114] In an embodiment of the present invention, the second node can extract its own network address, and the second node can also determine the port number used for monitoring the vehicle computer test scenario as the monitoring port number of the second node, and the monitoring port number can be pre-configured in the second node.

[0115] Step 530: register the vehicle computer test scenario information, network address and listening port number as local test mode client information to the main control node.

[0116] In an embodiment of the present invention, the second node can have a communication connection with the main control node. The second node can use the determined vehicle test scenario information, network address and listening port number as local test mode client information, and transmit the local test mode client information to the main control node. The local test mode client information is saved by the main control node, thereby realizing the registration of the second node.

[0117] Step 540: Receive local connection information sent by the first node, wherein the local connection information is generated by the first node by encrypting user identity information with a preset public key.

[0118] The preset public key may be pre-configured information for encrypting local connection information, and may specifically include a symmetric encryption public key and an asymmetric encryption public key, and may specifically include an RSA public key, a DES public key, etc. The user identity information may be information identifying the user identity on the first node.

[0119] Specifically, the first node may call a preset public key to encrypt the user identity information, and use the encrypted user identity information as the local connection information. The first node may send the generated local connection information to the second node, and the second node may receive the local connection information sent by the first node.

[0120] Step 550: Obtain a preset decryption key of the client of the second node, and call the preset decryption key to decrypt the local connection information into user identity information, wherein the preset decryption key corresponds to the preset public key.

[0121] Among them, the preset decryption key can be information used to decrypt local connection information, the preset decryption key can correspond to the preset public key of the first node, the correspondence can include the encryption public key and decryption key belonging to the same encryption and decryption algorithm, and the preset decryption key can be configured on the client of the second node.

[0122] In an embodiment of the present invention, the client of the second node may be pre-configured with a preset decryption key, and when receiving the local connection information of the first node, the preset decryption key corresponding to the preset public key of the first node may be determined. It is understandable that the second node may store different preset decryption keys for different first nodes, and may determine the preset decryption key for the first node to which the local connection information belongs. The second node may decrypt the local connection information according to the preset decryption key, and extract the user identity information from the local connection information.

[0123] Step 560, verify the user identity information; if the user identity information verification is successful, then feedback the encrypted session key to the first node, so that the first node establishes a long communication link according to the encrypted session key; if the user identity information verification fails, then refuse to establish a long communication link with the first node; wherein the long communication link includes at least one of a nested word communication long link and a transmission control protocol long link.

[0124] In an embodiment of the present invention, the second node can verify the user identity information of the first node to determine whether the first node has the authority to access the second node. When the second node successfully verifies the user identity information, it can obtain the encrypted session key and transmit the encrypted session key to the first node, so that the first node can establish a long communication link with the second node through the encrypted session key. When the second node fails to verify the user identity information, it can refuse to establish a long communication link with the first node. Specifically, the long communication link established between the second node and the first node may include a nested word communication long link, a transmission control protocol long link, etc.

[0125] Step 570: Obtain the remote test control of the first node according to the long communication link, and execute the task test corresponding to the remote test control.

[0126] In an embodiment of the present invention, when receiving local test mode selection information on a preset visual interface, a vehicle computer test scenario is determined, a network address of a second node and a listening port number for listening to the vehicle computer test scenario are obtained, the vehicle computer test scenario information, the network address and the listening port number are registered as local test mode client information to a main control node, local connection information sent by a first node is received, a preset decryption key is called to extract user identity information of the local connection information, the user identity information is verified, and an encrypted session key is fed back to the first node when the verification is successful, otherwise, the first node is refused to establish a long communication link, and the first node is cooperated with to remotely perform a task test according to the long communication link, the security of the user in the second section access process is ensured based on the encrypted local connection information, and based on the verification of the user identity information, the second node is made to open access to the first node that is ensured to be legitimate, thereby improving the security of the vehicle computer system test, obtaining the remote test control of the first node according to the long communication link, and implementing the remote task test according to the remote test control, thereby enabling the first node to remotely access the second node that performs the vehicle computer test scenario test, breaking the physical limitations of the vehicle computer test environment, reducing the physical space constraints in the vehicle computer test scenario, and improving the test efficiency of the smart car.

[0127] Further, based on the above-mentioned embodiment of the invention, verifying the user identity information includes at least one of the following:

[0128] Search the local whitelist for user identity information; verify the user identity information on the preset authentication server.

[0129] The local whitelist may be a verification list pre-configured in the second node, and the local whitelist may include all first nodes that are allowed to establish a long communication link with the second node, and the local whitelist may be configured according to user needs. The preset authentication server may be a server for verifying the user identity information of the first node.

[0130] In an embodiment of the present invention, the second node can verify the user identity information of the first node. The verification process can include that the second node can extract the local whitelist and determine whether the user identity information belongs to the local whitelist. If it does, it is determined that the user identity information verification of the first node is successful. If it does not, it is determined that the user identity information verification of the first node fails. The verification process can also include the second node uploading the user identity information of the first node to a preset authentication server. The preset authentication server can verify the user identity information. If the verification is successful, the preset authentication server can feedback a message of successful verification to the second node. Otherwise, the preset authentication server can feedback a message of failed verification to the second node.

[0131] Embodiment 6

[0132] In an embodiment of the present invention, a client for remote vehicle-machine task testing is provided, and the client may include two modes: a virtual mode and an execution mode. The client may execute a test task issued by a server or receive a debugging script transmitted in a virtual mode in the execution mode, and execute the debugging script or the test script. The client may start mapping one or more clients in the execution mode in the virtual mode, and monitor or control the mapped one or more clients in the execution mode. An embodiment of the present invention may implement remote vehicle-machine testing through two clients deployed on hosts or terminals in different locations. The host or terminal deploying the virtual mode client may serve as the first node, and the host or terminal deploying the execution client may serve as the second node. The specific steps include the following:

[0133] 1. The server can record the clients in execution mode and the number of clients.

[0134] 2. Testers can access the client in the office. Figure 7 The mode selection interface is displayed, and select Virtual Mode to start the client.

[0135] 3. The client can respond to the tester's operation to enter Figure 8The client selection interface shown in the figure can display the clients currently in execution mode. The information of the execution mode clients such as voice client 1, voice client 2, AutoNavi client 1 and AutoNavi client 2 displayed in the client selection interface can be obtained in the server. The tester can select the execution module client that needs to be virtually executed in the drop-down box of the client selection interface.

[0136] 4. The current virtual mode client can establish a long link with the selected execution mode client. The current virtual mode client can monitor the execution status of the execution mode client or send control commands to the execution mode client through the long link.

[0137] 5. Repeat steps 2-4 multiple times to enable the current virtual mode client to monitor multiple execution mode clients.

[0138] In the above-mentioned invention embodiment, the client includes an execution mode client and a virtual mode client, wherein the execution mode client can listen to a fixed nested word port number to wait for a long link to be established with the execution mode client, and the execution mode client can also register the local network address and the listening port to the server. The virtual mode client does not listen to the port, and the execution mode client can receive long links from different virtual mode clients through multiple nested words. And a tester can start or control multiple virtual mode clients.

[0139] In the embodiment of the present invention, the startup sequence between the virtual mode client, the execution mode client and the server can be as follows: Fig. 9 As shown, the execution mode client can register the network (Internet Protocol, IP) address and port with the server, the virtual mode client can obtain the execution mode client list that manages each registered execution mode client on the server, the virtual mode client can establish a Socket long link to the execution mode client through the registered IP address and port, and monitor or control the execution mode client through the Socket long link.

[0140] Specifically, the RSA encryption algorithm can be used to encrypt the long Socket connection, and the session key can be established through the handshake process between the virtual mode client and the execution mode client. The above monitoring or control process can enhance security through the session key. Fig.10 , the process specifically includes:

[0141] 1. The simulation mode client uses the public key to encrypt its identity and random string, and sends it to the execution mode client to initialize the socket connection.

[0142] 2. The execution mode client uses the private key to decrypt the information sent by the virtual mode client and verify the correctness of the information. The information verification process can be implemented by means of a local whitelist or by initiating authentication to the server. If the information verification is successful, the execution mode client generates a random string as a symmetric encryption session key and sends the symmetric encryption session key to the virtual mode client; if the verification fails, the virtual mode client is refused to connect to the execution mode client.

[0143] 3. The virtual mode client decrypts the random string to obtain the session key, and the session key is established.

[0144] Furthermore, the monitoring and control of the execution mode client by the virtual mode client specifically includes: after the virtual mode client and the execution mode client establish a Socket link, two virtual channels, an upstream channel and a downstream channel, can be formed. The execution mode client transmits the execution log to the virtual mode client through the upstream channel, and the virtual mode client outputs the execution status monitoring; the virtual mode client transmits commands or scripts to the execution mode client through the downstream channel for remote debugging.

[0145] Embodiment 8

[0146] Fig.11 Schematic diagram of a task testing device according to Embodiment 8 of the present invention. Fig.11 As shown, the device comprises:

[0147] The information acquisition module 610 is used to acquire the local test mode client information stored in the main control node in response to the remote test mode selection information.

[0148] The first connection establishing module 620 is used to determine the second node according to the local test mode client information, and establish a long communication link with the second node based on the local connection information and the local test mode client information.

[0149] The first task testing module 630 is used to remotely perform a task test on the second node according to the long communication link.

[0150] In an embodiment of the present invention, when the information acquisition module receives the remote test mode selection information, the local test mode client information saved by the main control node is obtained; the first connection establishment module determines the second node through the local test mode client information, and establishes a long communication link with the second node using the local connection information and the local test mode client information; the first task test module performs a remote task test on the second node through the long communication link, thereby realizing the task test in a long-distance scenario; remotely accessing the second node through the first node can break the physical limitations of the existing test environment, reduce the physical space constraints in the vehicle computer test scenario, and improve the task test efficiency.

[0151] Further, based on the above-mentioned embodiment of the invention, the information acquisition module 610 includes:

[0152] The request triggering unit is used to send an information acquisition request to the main control node when the visual interface of the client of the first node receives the remote test mode selection information.

[0153] The list acquisition unit is used to receive a client list sent by the main control node, wherein the client list includes at least one local test mode client information, wherein the local test mode client information at least includes vehicle computer test scenario information, network address and listening port number.

[0154] Further, based on the above-mentioned embodiment of the invention, the first connection establishing module 620 includes:

[0155] The information display unit is used to call the visual interface of the client to display at least one local test mode client information, and obtain the client selection instruction received by the visual interface.

[0156] The information encryption unit is used to obtain a preset public key configured by the client, and call the preset public key to encrypt the user identity information of the first node into local connection information.

[0157] The node determination unit is used to determine the target local test mode client information corresponding to the client selection instruction, and use the network node corresponding to the network address in the target local test mode client information as the second node.

[0158] The information transmission unit is used to send the local connection information to the second node according to the network address of the target local test mode client information, so that the second node verifies the local connection information.

[0159] The key receiving unit is used to receive the encrypted session key fed back by the second node when the verification is successful, and establish a long communication link with the second node according to the encrypted session key. The long communication link includes at least one of a nested word communication long link and a transmission control protocol long link.

[0160] Further, based on the above-mentioned embodiment of the invention, the first task test module 630 includes:

[0161] A test transmission unit is used to transmit a test command and / or a test script to the second node via a long communication link.

[0162] The test control unit is used to access the second node according to the long communication link and control the second node to execute the test command and / or test script.

[0163] Furthermore, based on the above-mentioned embodiments of the invention, the test control unit is specifically used to: access the control interface of the client running the second node through the long communication link; obtain the vehicle test scenario information of the vehicle test scenario configured by the client of the second node displayed in the control interface, wherein the vehicle test scenario is controlled by the second node operation, and the vehicle test scenario includes at least one of the vehicle voice test scenario, the vehicle navigation test scenario, the vehicle communication test scenario, and the vehicle security test scenario; control the control interface to select test commands and / or test scripts; load test commands and / or test scripts to the vehicle test scenario corresponding to the vehicle test scenario information for testing.

[0164] Furthermore, based on the above-mentioned embodiment of the invention, the device also includes: a monitoring module, which is used to receive the test execution log transmitted by the second node through the long communication link; and monitor the test status of the second node according to the test execution log.

[0165] The task testing device provided in the embodiment of the present invention can execute the task testing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0166] Embodiment 9

[0167] Fig.12 is a schematic diagram of the structure of another task testing device provided according to Embodiment 9 of the present invention. Fig.12 As shown, the device comprises:

[0168] The information registration module 710 is used to register the local test mode client information with the main control node in response to the local test mode selection information, so that the first node obtains the local test mode client information.

[0169] The second connection establishing module 720 is used to establish a long communication link with the first node according to the local connection information of the first node.

[0170] The second task test module 730 is used to obtain the remote test control of the first node according to the long communication link, and execute the task test corresponding to the remote test control.

[0171] In an embodiment of the present invention, when the information registration module receives the local test mode selection information, the local second-mode client information is registered to the main control node, so that the first node obtains the local test mode client information at the main control node, the second connection establishment module receives the local connection information of the first node to create a long communication link, and the second task test module obtains the remote test control of the first node according to the long communication link, and executes the task test corresponding to the remote test control, which can break the physical limitations of the existing test environment, reduce the physical space constraints in the vehicle test scenario, and improve the task test efficiency.

[0172] Further, based on the above-mentioned embodiment of the invention, the second connection establishing module 720 includes:

[0173] The information acquisition unit is used to receive the local connection information sent by the first node, wherein the local connection information is generated by the first node by encrypting the user identity information with a preset public key.

[0174] The information decryption unit is used to obtain a preset decryption key of the client of the second node, and call the preset decryption key to decrypt the local connection information into user identity information, wherein the preset decryption key corresponds to a preset public key.

[0175] An identity authentication unit is used to verify user identity information; if the user identity information verification is successful, the encrypted session key is fed back to the first node so that the first node establishes a long communication link according to the encrypted session key; if the user identity information verification fails, the long communication link with the first node is refused to be established; wherein the long communication link includes at least one of a nested word communication long link and a transmission control protocol long link.

[0176] Further, based on the above-mentioned embodiments of the invention, the identity authentication unit is specifically used for at least one of the following: searching for user identity information in a local whitelist; verifying user identity information in a preset authentication server.

[0177] Further, based on the above-mentioned embodiment of the invention, the information registration module 710 includes:

[0178] A scenario determination unit is used to determine the vehicle test scenario information of the vehicle test scenario configured by the client when the visual interface of the client of the second node receives local test mode selection information, wherein the vehicle test scenario includes at least one of a vehicle voice test scenario, a vehicle navigation test scenario, a vehicle communication test scenario, and a vehicle security test scenario.

[0179] The information determination unit is used to determine the network address of the second node and the monitoring port number for monitoring the vehicle computer test scenario.

[0180] The information registration unit is used to register the vehicle computer test scenario information, network address and listening port number as local test mode client information to the main control node.

[0181] The task testing device provided in the embodiment of the present invention can execute the task testing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0182] Embodiment 10

[0183] Fig.13It is a structural diagram of an electronic device that implements the task test method of an embodiment of the present invention. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are only examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0184] like Fig.13 As shown, the electronic device 10 includes at least one processor 11, and a memory connected to the at least one processor 11, such as a read-only memory (ROM) 12, a random access memory (RAM) 13, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 11 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 12 or the computer program loaded from the storage unit 18 to the random access memory (RAM) 13. In the RAM 13, various programs and data required for the operation of the electronic device 10 can also be stored. The processor 11, the ROM 12, and the RAM 13 are connected to each other through a bus 14. An input / output (I / O) interface 15 is also connected to the bus 14.

[0185] A number of components in the electronic device 10 are connected to the I / O interface 15, including: an input unit 16, such as a keyboard, a mouse, etc.; an output unit 17, such as various types of displays, speakers, etc.; a storage unit 18, such as a disk, an optical disk, etc.; and a communication unit 19, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 19 allows the electronic device 10 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0186] The processor 11 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 11 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 11 executes the various methods and processes described above, such as the task testing method.

[0187] In some embodiments, the task test method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 18. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 10 via the ROM 12 and / or the communication unit 19. When the computer program is loaded into the RAM 13 and executed by the processor 11, one or more steps of the task test method described above may be performed. Alternatively, in other embodiments, the processor 11 may be configured to perform the task test method in any other appropriate manner (e.g., by means of firmware).

[0188] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0189] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0190] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0191] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).

[0192] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.

[0193] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.

[0194] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.

[0195] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims

1. A task testing method, characterized in that: Applied to a first node, the first node being configured with a client, the method comprising: In response to the remote test mode selection information, obtaining the local test mode client information stored by the master control node; Determine a second node according to the local test mode client information, and establish a long communication link with the second node based on the local connection information and the local test mode client information; The second node is remotely tested for a task based on the long communication link.

2. The method according to claim 1, characterized in that: The step of obtaining the local test mode client information stored by the main control node in response to the remote test mode selection information includes: When the visual interface of the client of the first node receives the remote test mode selection information, sending an information acquisition request to the main control node; Receive a client list sent by the master control node, wherein the client list includes at least one piece of local test mode client information, wherein the local test mode client information at least includes vehicle computer test scenario information, a network address, and a listening port number.

3. The method according to claim 1, characterized in that: The determining a second node according to the local test mode client information, and establishing a long communication link with the second node based on the local connection information and the local test mode client information, includes: Calling the visual interface of the client to display at least one piece of local test mode client information, and obtaining the client selection instruction received by the visual interface; Obtaining a preset public key configured by the client, and calling the preset public key to encrypt the user identity information of the first node into the local connection information; Determine the target local test mode client information corresponding to the client selection instruction, and use the network node corresponding to the network address in the target local test mode client information as the second node; sending the local connection information to the second node according to the network address of the target local test mode client information, so that the second node verifies the local connection information; receiving the encrypted session key fed back by the second node when the verification is successful, and establishing the long communication link with the second node according to the encrypted session key; Wherein, the communication long link includes at least one of a nested word communication long link and a transmission control protocol long link.

4. The method according to claim 1, characterized in that: The remotely performing a task test on the second node according to the long communication link includes: Transmitting a test command and / or a test script to the second node via the long communication link; Access the second node according to the long communication link, and control the second node to execute the test command and / or the test script.

5. The method according to claim 4, characterized in that: The accessing the second node according to the long communication link and controlling the second node to execute the test command and / or the test script includes: Accessing a control interface of a client running on the second node through the long communication link; Obtaining vehicle test scenario information of the vehicle test scenario configured by the client of the second node displayed in the control interface, wherein the vehicle test scenario is controlled by the operation of the second node, and the vehicle test scenario includes at least one of a vehicle voice test scenario, a vehicle navigation test scenario, a vehicle communication test scenario, and a vehicle security test scenario; Controlling the control interface to select the test command and / or the test script; The test command and / or the test script is loaded into the vehicle test scenario corresponding to the vehicle test scenario information for testing.

6. The method according to claim 1, characterized in that: Also includes: Receiving the test execution log transmitted by the second node through the long communication link; The test status of the second node is monitored according to the test execution log.

7. A task testing method, characterized in that: Applied to a second node, the second node being configured with a client, the method comprising: In response to the local test mode selection information, register the local local test mode client information with the main control node, so that the first node obtains the local test mode client information; Establishing a long communication link with the first node according to the local connection information of the first node; The remote test control of the first node is obtained according to the long communication link, and the task test corresponding to the remote test control is executed.

8. The method according to claim 7, characterized in that: The establishing a long communication link with the first node according to the local connection information of the first node includes: Receiving the local connection information sent by the first node, wherein the local connection information is generated by the first node by encrypting user identity information through a preset public key; Obtaining a preset decryption key of the client of the second node, and calling the preset decryption key to decrypt the local connection information into the user identity information, wherein the preset decryption key corresponds to the preset public key; Verifying the user identity information; If the user identity information is successfully verified, the encrypted session key is fed back to the first node, so that the first node establishes the long communication link according to the encrypted session key; If the user identity information verification fails, refusing to establish the long communication link with the first node; Wherein, the communication long link includes at least one of a nested word communication long link and a transmission control protocol long link.

9. The method according to claim 8, characterized in that: The verifying the user identity information includes at least one of the following: Searching the local whitelist for the user identity information; The user identity information is verified on a preset authentication server.

10. The method according to claim 7, characterized in that: The registering of the local local test mode client information to the master control node in response to the local test mode selection information includes: When the visual interface of the client of the second node receives the local test mode selection information, determine the vehicle test scenario information of the vehicle test scenario configured by the client, wherein the vehicle test scenario includes at least one of a vehicle voice test scenario, a vehicle navigation test scenario, a vehicle communication test scenario, and a vehicle security test scenario; Determine the network address of the second node and the listening port number for listening to the vehicle computer test scenario; The vehicle computer test scenario information, the network address and the listening port number are registered to the main control node as the local test mode client information.

11. A task testing device, characterized in that: Applied to a first node, the first node is configured with a client, the device comprises: An information acquisition module, configured to acquire local test mode client information stored in the master control node in response to remote test mode selection information; A first connection establishing module, configured to determine a second node according to the local test mode client information, and establish a long communication link with the second node based on the local connection information and the local test mode client information; The first task testing module is used to remotely perform a task test on the second node according to the long communication link.

12. A task testing device, characterized in that: Applied to a second node, the second node is configured with a client, the device comprises: An information registration module, configured to register the local test mode client information with the main control node in response to the local test mode selection information, so that the first node obtains the local test mode client information; A second connection establishing module, configured to establish a long communication link with the first node according to the local connection information of the first node; The second task test module is used to obtain the remote test control of the first node according to the long communication link, and execute the task test corresponding to the remote test control.

13. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can perform the task testing method according to any one of claims 1 to 6 or 7 to 10.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the task testing method described in any one of claims 1-6 or 7-10 when executed.

15. A computer program product, characterized in that The computer program product comprises a computer program, which, when executed by a processor, implements the task testing method according to any one of claims 1-6 or 7-10.

Citation Information

Patent Citations

  • Method and device for remotely testing vehicle and electronic equipment

    CN118113020A