Vehicle cloud service link test method and device and related equipment

Through the communication and test simulation system based on TCP/IP protocol in the Internet of Vehicles technology, the comprehensiveness and efficiency problems of vehicle-side service link testing are solved, automated testing is realized, manpower dependence is reduced and testing efficiency is improved.

CN118784540APending Publication Date: 2024-10-15Z-ONE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411118082.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-14
Publication Date
2024-10-15

AI Technical Summary

Technical Problem

Existing technology is difficult to achieve comprehensive and efficient testing of vehicle-side service links, resulting in limited popularization and application of smart vehicle delivery and Internet of Vehicles technologies. Testing relies on manpower and is inefficient.

Method used

By establishing communication between the test control end and the cloud test server based on the TCP/IP protocol, the test simulation system is used to generate service test requests, add generation time information and target service information, send target service test requests, obtain service API target data sets, and compare Check the test results to determine the test results of the car cloud service link.

Benefits of technology

It achieves comprehensive testing of vehicle-side service functions, reduces manpower dependence, improves testing efficiency, and improves the automation capabilities of vehicle-side service link testing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118784540A_ABST
    Figure CN118784540A_ABST
Patent Text Reader

Abstract

The invention provides a vehicle cloud service link test method and device and related equipment, and the method comprises the steps: building communication between a test control end and a cloud test server end based on a TCP / IP protocol, obtaining a service test request generated by a test simulation system, and determining request generation time information and target service information; adding the generation time information and the target service information into a service test request to generate a target service test request; sending the target service test request to a cloud test server, so as to determine a service API target data set corresponding to the test request through the cloud test server according to request generation time information and target service information contained in the received target service test request, and feed back the service API target data set to a test control end, and comparing the received API target data set with the expected feedback data of the corresponding service test request, and determining a test result of the vehicle cloud service link according to a comparison result. The testing labor cost is low, and the testing efficiency is improved while the testing convenience and comprehensive testing are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of vehicle networking technology, and in particular to a vehicle-cloud service link testing method, device and related equipment. Background Art

[0002] With the development of Internet of Vehicles and vehicle intelligent technology, it is becoming increasingly important for vehicle manufacturers to conduct network testing on vehicle-side service links. For the service links on the vehicle side, such as FOTA (Firmware Over-The-Air) service technology, TSP (Telecommunication Service Provider data upload technology, remote control service, buried data upload, dynamic data collection and other Internet of Vehicles functions, the traditional testing process can only test the data generated by a single service function and its application scenario, and this traditional testing process is too dependent on manpower and has a limited test scope. It is difficult to achieve a more comprehensive and efficient test of the services configured on the vehicle side, which seriously affects the delivery of smart vehicles and the popularization and application of Internet of Vehicles technology. To this end, how to provide a system that can cover multiple Internet of Vehicles service scenarios to achieve a more comprehensive test of the service functions on the vehicle side, improve test efficiency, save labor costs, and improve the automation of vehicle-side service link testing has become a technical problem that needs to be solved in the industry. Summary of the invention

[0003] In view of this, an embodiment of the present application provides a vehicle-cloud service link testing method, device and storage medium to at least partially solve the above-mentioned problems.

[0004] In a first aspect, an embodiment of the present application provides a vehicle-to-cloud service link testing method, which is applied to a test control end, and the method includes:

[0005] Based on the TCP / IP protocol, establish communication between the test control end and the cloud test service end, wherein the test control end is configured and generated based on the CANOE end;

[0006] Obtaining a service test request generated by a test simulation system, and determining request generation time information and target service information;

[0007] Adding the generation time information and the target service information to the service test request to generate a target service test request;

[0008] The target service test request is sent to the cloud test server, so that the cloud test server determines the service API target data set corresponding to the test request according to the request generation time information and the target service information contained in the received target service test request and feeds it back to the test control end, wherein the API target data set is the service data obtained by calling the vehicle cloud service, and the vehicle cloud service includes at least one of the remote control service, the buried point data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service;

[0009] The received API target data set is compared with the expected feedback data corresponding to the service test request, and the test result of the vehicle-to-cloud service link is determined based on the comparison result.

[0010] Optionally, in an embodiment of the present application, adding the generation time information and the test service information to the service test request to generate the target service test request includes:

[0011] Convert the generation time information into a preset character string, and determine the flag information corresponding to the test service information;

[0012] A target service test request is generated according to the flag information and the preset character string.

[0013] Optionally, in an embodiment of the present application, the obtaining of a service test request generated by the test simulation system includes:

[0014] Obtaining topology information of the body communication system of the vehicle under test;

[0015] Based on the topology information of the vehicle body communication system, a service test request is generated using vTESTstudio.

[0016] Optionally, in an embodiment of the present application, the establishing of communication between the test control end and the cloud test service end includes:

[0017] A Socket communication interface coupled to the test control end is configured to establish communication between the test control end and the cloud test service end through the Socket communication interface.

[0018] In a second aspect, corresponding to a vehicle-cloud service link testing method described in the first aspect of the present application, an embodiment of the present application also provides another vehicle-cloud service link testing method, which is applied to a cloud testing server, and the method includes:

[0019] Based on the TCP / IP protocol, establish communication between the cloud test server and the test control terminal, wherein the cloud test server is created based on Python, and the test control terminal is any one of the test control terminals described in the first aspect of the present application;

[0020] Receiving a target service test request generated by the test control end using a test simulation system;

[0021] Extracting the request generation time information and the target service information contained in the target service test request;

[0022] The service API target data set corresponding to the test request is determined according to the request generation time and target service information. The API target data set is the service data generated after calling the vehicle cloud service. The vehicle cloud service includes at least one of the following: remote control service, buried point data upload service, TSP shadow data upload service, vehicle-side dynamic data collection service and FOTA application service.

[0023] The service API target data set is fed back to the test control end, so that the test control end compares the received service API target data set with the expected feedback data corresponding to the target service test request to determine the test result of the vehicle-to-cloud service link.

[0024] Optionally, in an embodiment of the present application, determining the service API target data set corresponding to the test request according to the request generation time and the target service information and feeding back the data set to the test control end includes:

[0025] According to the request generation time, target service information and the acquired topology information of the body communication system of the vehicle under test, the crawler selenium library is used to call the WEB application or send a POST request to the API to determine the service API target data set corresponding to the test request, and the acquired service API target data set is fed back to the test control end.

[0026] Optionally, in an embodiment of the present application, feeding back the service API target data set to the test control end includes:

[0027] Convert the service API target data set into a string dictionary format to generate string dictionary data;

[0028] The flag information corresponding to the target service information is added to the character string dictionary data and then fed back to the test control terminal.

[0029] In a third aspect, based on the vehicle-cloud service link testing method described in the first aspect of the present application, an embodiment of the present application provides a vehicle-cloud service link testing device, including:

[0030] A configuration module, used to establish communication between the test control terminal and the cloud test service terminal based on the TCP / IP protocol, wherein the test control terminal is configured and generated based on the CANOE terminal;

[0031] A determination module is used to obtain a service test request generated by a test simulation system, and determine request generation time information and target service information;

[0032] A generating module, used for adding the generating time information and the target service information to the service testing request to generate the target service testing request;

[0033] A sending module sends the target service test request to a cloud test server, so that the cloud test server determines a service API target data set corresponding to the test request according to the request generation time information and the target service information contained in the received target service test request, and feeds it back to the test control end, wherein the API target data set is service data obtained by calling a vehicle cloud service, and the vehicle cloud service includes at least one of a remote control service, a buried point data upload service, a TSP shadow data upload service, a vehicle-side dynamic data collection service, and a FOTA application service;

[0034] The test module is used to compare the received API target data set with the expected feedback data corresponding to the service test request, and determine the test result of the car-cloud service link according to the comparison result.

[0035] In a fourth aspect, based on another vehicle-cloud service link testing method described in the second aspect of the present application, an embodiment of the present application also provides another vehicle-cloud service link testing device, including:

[0036] A communication module, used for establishing communication between the cloud test server and the test control terminal based on the TCP / IP protocol, wherein the cloud test server is created based on Python, and the test control terminal is any one of the test control terminals described in the first aspect or the third aspect;

[0037] A receiving module, used for receiving a target service test request generated by the test control end using a test simulation system;

[0038] An extraction module, used to extract the request generation time information and target service information contained in the target service test request;

[0039] A detection module is used to determine the service API target data set corresponding to the test request according to the request generation time and target service information, wherein the API target data set is the service data generated after calling the vehicle cloud service, and the vehicle cloud service includes at least one of the remote control service, the buried point data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service.

[0040] A feedback module is used to feed back the service API target data set to the test control end, so that the test control end can compare the received service API target data set with the expected feedback data corresponding to the target service test request to determine the test result of the vehicle-to-cloud service link.

[0041] In a fifth aspect, an embodiment of the present application also provides a computer storage medium having computer executable instructions stored thereon, and when the computer executable instructions are executed, any one of the vehicle-cloud service link testing methods described in the first aspect or the second aspect of the present application is performed.

[0042] In a sixth aspect, an embodiment of the present application further provides an electronic device, including:

[0043] one or more processors;

[0044] a memory for storing one or more programs,

[0045] When the one or more programs are executed by the one or more processors, the one or more processors implement any one of the vehicle-cloud service link testing methods described in the first aspect or the second aspect of the present application.

[0046] The present application provides a vehicle-cloud service link testing method, device and related equipment. Based on the TCP / IP protocol, communication is established between the test control end and the cloud test service end, a service test request generated by a test simulation system is obtained, and request generation time information and target service information are determined; the generation time information and target service information are added to the service test request to generate a target service test request; the target service test request is sent to the cloud test server end, so that the cloud test server end determines the service API target data set corresponding to the test request according to the request generation time information and target service information contained in the received target service test request and feeds it back to the test control end, the API target data set is the service data obtained by calling the vehicle-cloud service, and the vehicle-cloud service includes at least one of remote control service, point-of-care data upload service, TSP shadow data upload service, vehicle-side dynamic data collection service and FOTA application service; the received API target data set is compared with the expected feedback data corresponding to the service test request, and the test result of the vehicle-cloud service link is determined according to the comparison result. The vehicle-cloud service link testing method disclosed in the present application performs service link based on the generation time information of the test service request and the target service information. It can relatively easily realize comprehensive testing of the service functions on the vehicle side. The testing process does not need to rely too much on manpower, which improves the testing efficiency while ensuring the convenience of testing. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the embodiments of the present application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.

[0048] Figure 1 A schematic diagram of a workflow of a vehicle-to-cloud service link testing method provided in an embodiment of the present application;

[0049] Figure 2 A schematic diagram of the workflow of another vehicle-to-cloud service link testing method provided in an embodiment of the present application;

[0050] Figure 3 A schematic diagram of the structure of a vehicle-to-cloud service link testing device provided in an embodiment of the present application;

[0051] Figure 4 A schematic diagram of the structure of another vehicle-to-cloud service link testing device provided in an embodiment of the present application;

[0052] Figure 5 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

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

[0054] It should be understood that the various steps described in the method implementation of the present application can be performed in different orders and / or performed in parallel. In addition, the method implementation may include additional steps and / or omit the steps shown. The scope of the present application is not limited in this respect.

[0055] Embodiment 1

[0056] The present application embodiment provides a vehicle-to-cloud service link testing method, such as Figure 1 As shown, Figure 1 A work flow chart of a vehicle-cloud service link test method provided in an embodiment of the present application is applied to a test control end. The vehicle-cloud service link test method includes:

[0057] Step S101, based on the TCP / IP protocol, establish communication between the test control end and the cloud test service end, wherein the test control end is configured and generated based on the CANOE end. CANoe stands for CAN open environment, which is a bus development environment and a tool that can provide simulation, testing and analysis. It is mainly used for the development, testing and analysis of automotive buses, and supports a variety of bus networks, including CAN, LIN, FlexRay, MOST and Ethernet. CANoe is widely used in the development process of vehicle networks and ECUs (electronic control units), from demand analysis to system implementation, including model creation, simulation, testing, development, diagnosis and communication analysis.

[0058] The main functions of CANoe include:

[0059] Simulation: In the early stages of development, CANoe can realize vehicle simulation engineering for ECU functional evaluation.

[0060] Testing: Supports a series of continuous tests and automatically generates a test report containing the test results to simplify or automate the testing process.

[0061] Diagnostics: Has a diagnostic function set and can perform diagnostic communication with the ECU.

[0062] Analysis: Provides rich analysis capabilities to help developers understand and optimize network performance.

[0063] File management: supports the management of test projects, simulation models and other files.

[0064] In addition, the CANoe side also includes common functions such as measurement, data logging, simulation settings, test configuration and diagnostic console.

[0065] In the embodiment of the present application, the CANOE end is used for configuration to generate the test control end, which can realize a relatively comprehensive simulation of the vehicle-side service functions at low cost to support the service link test, so as to improve the test efficiency. At the same time, the scheme of establishing communication through TCP / IP to realize the operation of the test control end for service link testing can be widely used in daily service test projects. Secondly, in the embodiment of the present application, the CANOE end can also easily realize the reasonable distribution of the voltage of the vehicle-side related components such as the vehicle communication controller and the vehicle body controller, which is used to support the simulation and simulation construction of the simulation environment, so as to realize the simulation of the vehicle-side service functions more realistically.

[0066] Optionally, in an embodiment of the present application, establishing communication between the test control end and the cloud test service end includes: configuring a Socket communication interface coupled to the test control end to establish communication between the test control end and the cloud test service end through the Socket communication interface. Socket communication is a network communication mechanism that allows two programs to transmit data over a network on different computers. Socket is an intermediate software abstraction layer for communication between the application layer and the TCP / IP protocol cluster, which provides a set of interfaces so that applications can communicate through network protocols. In an embodiment of the present application, cross-platform communication can be better achieved by configuring the coupling with the Socket communication interface of the test control end: since the Socket interface is a standard API (Application Programming Interface), it is not restricted by a specific operating system and therefore has good cross-platform properties. At the same time, the communication method is also flexible, and it supports multiple network protocols such as TCP and UDP, so that the method described in the implementation of the present application can establish communication under the actual same needs of different scenarios, so as to support service link testing in a friendly manner.

[0067] Step S102: Obtain a service test request generated by the test simulation system, and determine the request generation time information and target service information. In the embodiment of the present application, the service test request is generated by the test simulation system carried by the test control end, and is used to call the vehicle cloud service configured by the cloud test server.

[0068] Specifically, in an optional implementation method of an embodiment of the present application, obtaining a service test request generated by a test simulation system includes: obtaining the topology information of the vehicle body communication system of the vehicle under test; based on the topology information of the vehicle body communication system, using vTESTstudio to generate a service test request. Among them, the use of vTESTstudio to generate a service test request mainly includes two aspects: automated test sequence construction and automated test sequence execution. Test sequence construction involves aspects such as the design of test cases, the arrangement of execution order, and the construction of the test environment, aiming to improve the efficiency and quality of software development through effective testing processes, and vTESTstudio is a powerful development tool for creating automatic ECU test sequences and use cases, supporting users to use a variety of convenient graphics, tables, programming interfaces and built-in intelligent algorithms to flexibly design test sequences and use cases, and efficiently implement various complex test requirements and scenarios. The embodiment of the present application here uses vTESTstudio in combination with the topology information of the communication system of the vehicle under test, which can more comprehensively realize the data interaction test of multiple car-cloud service links and the request simulation of the service stress test of the car-cloud service link.

[0069] Step S103, adding the generation time information and the target service information to the service test request to generate a target service test request. In an embodiment of the present application, the generation time information and the target service information are used as indicators for the vehicle-cloud service link test. For example, based on the generation time information, it can be determined that the time information or the time interval for data feedback of the target service that the other party to be tested needs to feedback can be determined. There is no need to perform complex analysis on other attributes or data content of the data fed back by the other party to support the service link test, thereby simply and efficiently completing the service link test of one or more covered service scenarios.

[0070] Optionally, in one implementation of an embodiment of the present application, generation time information and test service information are added to the service test request to generate a target service test request, including: converting the generation time information into a preset character string, and determining the flag information corresponding to the test service information; generating a target service test request based on the flag information and the preset character string. In this simple and efficient way, the information that the other party needs to obtain is added to the test service request to generate a target service test request, which is then sent to the other party. The process does not require consuming too many system software and hardware resources, and can also ensure the accuracy of the information received by the other party, thereby ensuring the accuracy of the vehicle-to-cloud service link test using the method provided in the embodiment of the present application. In the embodiment of the present application, when different service functions are tested on the Internet, there are problems such as a large number of data signals and a heavy burden of manpower testing. There are also objective problems such as the need to manually test the dynamic data on the vehicle side, which is complicated and inefficient. Furthermore, during the test, the service link tests of these service functions all need to upload the generated test vehicle-side data and the data values ​​of the signals with the same name on the cloud to the cloud. Secondly, the ranges of the test signals of different service links are also different, and the API target data sets corresponding to a certain service node or time point are also different. Specifically, in the embodiment of the present application, the signal refers to CANBUS (Control Area Network-work Bus, the full name is "Controller Area Network Bus Technology", so the scope refers to the different sets of signal names. For example, the set of CAN signals in TSP shadow data includes vehicle status information such as window opening and door status, while the set of CAN signals in buried data upload includes vehicle safety information such as battery alarm information. Of course, buried data can also exist in Ethernet (SOA) signals. Therefore, by judging the request time information in the test service request and the flag information of the target test service information based on the test control end configured by the CANOE end, it is possible to more accurately know which API the test control end is going to call for service testing, thereby obtaining the accurate corresponding API target data set.

[0071] Step S104, sending the target service test request to the cloud test server, so that the cloud test server determines the service API target data set corresponding to the test request according to the request generation time information and target service information contained in the received target service test request and feeds it back to the test control end, the API target data set is the service data obtained by calling the car cloud service, and the car cloud service includes at least one of the remote control service, the buried data upload service, the TSP shadow data upload service, the vehicle-side dynamic data acquisition service and the FOTA application service. In the embodiment of the present application, the remote control service is used for users to remotely start the vehicle, remotely turn on the air conditioner, remotely start the seat heating, the steering wheel heating, etc. The performance in this patent is mainly the comparison between the data status of the cloud vehicle and the data status of the actual vehicle. The buried data upload service is also called the RVM national standard data upload service. For example, the car company uploads some collected CAN signal data sets defined in the vehicle to the service platform during the operation of the vehicle. Dynamic data acquisition is not a long-term function of the vehicle, and the data demander needs to send tasks through the cloud, so that the vehicle can package and upload the task demand signal. For example, the service scenario application of comparing the value of cloud vehicle data collection with the value of actual vehicle data is not described in detail here in the embodiments of the present application. In an actual application scenario of the embodiments of the present application, for example, after receiving the target service test request, the cloud test server parses the received test service request to determine the request generation time information and target service information. It can use the crawler selenium library to call the WEB application for testing, and obtain test data from the web page, or send a POST request to the API to determine the service API target data set corresponding to the test request. Selenium is a tool for Web application testing. The Selenium library can be directly run in most common browsers when participating in simulation testing. Both of the methods listed in the embodiments of the present application can achieve accurate acquisition of the service API target data sets of multiple vehicle cloud service links with a relatively easy implementation process. There is no need to redevelop compatible services and interfaces on the cloud service test side, which improves testing efficiency.

[0072] Step S105: compare the received API target data set with the expected feedback data corresponding to the service test request, and determine the test result of the vehicle-to-cloud service link according to the comparison result. For example, in an embodiment of the present application, the test result can display all test item information in the form of a test report, such as including the comparison result of the service data, and when the comparison result is wrong or the test fails, the error-related information and the log information of the vehicle's corresponding communication system are displayed in the test report of the test result. For example, taking CANOE as the control end, When a test fails, the test controller sends a command to the test server. SS H(Remote Terminal Control Tool) According to the flag information, determine the ECU that failed the test and the corresponding failure time of the car cloud service, and intercept the correspondingHealth test failed E C The log data of a period of time before and after the failure time of U is collected and written into the test results for easy operation. Maintenance personnel can quickly identify failed or erroneous service links based on test results such as log data in the test report. bits, thereby improving test efficiency.

[0073] The present application provides a vehicle-cloud service link testing method, which establishes communication between the test control end and the cloud test service end based on the TCP / IP protocol, obtains a service test request generated by a test simulation system, determines the request generation time information and the target service information; adds the generation time information and the target service information to the service test request to generate a target service test request; sends the target service test request to the cloud test server, so that the cloud test server determines the service API target data set corresponding to the test request according to the request generation time information and the target service information contained in the received target service test request and feeds it back to the test control end, wherein the API target data set is the service data obtained by calling the vehicle-cloud service, and the vehicle-cloud service includes at least one of the remote control service, the point data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service; compares the received API target data set with the expected feedback data corresponding to the service test request, and determines the test result of the vehicle-cloud service link according to the comparison result. The vehicle-cloud service link testing method disclosed in the present application performs service link testing based on the generation time information of the test service request and the target service information. It can relatively easily realize comprehensive testing of the vehicle-side service functions. The testing process does not need to rely too much on manpower, thereby improving testing efficiency, saving manpower costs, and improving the automation capability of vehicle-side service link testing.

[0074] Embodiment 2

[0075] Corresponding to the vehicle-cloud service link testing method described in the first embodiment of the present application, the present application embodiment also provides another vehicle-cloud service link testing method, such as Figure 2 As shown, Figure 2 A flowchart of another vehicle-to-cloud service link testing method provided in an embodiment of the present application, which is applied to a cloud testing server, specifically includes:

[0076] Step S201: Based on the TCP / IP protocol, establish communication between the cloud test server and the test control terminal, wherein the cloud test server is created based on Python, and the test control terminal is any one of the test control terminals described in the first embodiment of the present application. In the embodiment of the present application, creating a cloud test server based on Python, that is, deploying a Python-based service program on a cloud server has the following main advantages:

[0077] Flexibility and scalability: Cloud servers provide elasticity and scalability, allowing computing resources to be quickly increased or decreased based on demand.

[0078] High availability: Cloud servers usually provide multiple redundant levels of backup to ensure that user programs run 24 / 7.

[0079] Cost-effectiveness: Cloud servers are usually cheaper than traditional servers, and users only pay for the resources required to run the program.

[0080] Fast deployment: Through cloud servers, operation and maintenance personnel can quickly configure new environments and quickly start Python programs.

[0081] Simple maintenance: Most cloud server providers will be responsible for managing and maintaining the infrastructure, reducing the O&M burden.

[0082] Support for multiple operating systems: Cloud servers can provide a variety of operating system options, which improves the applicability of service link testing.

[0083] Integration of other services: On the cloud server, operation and maintenance personnel can also easily integrate other cloud services, such as database, storage, network services, etc., to provide more comprehensive scenario support for the service link testing of the car cloud.

[0084] In the embodiment of the present application, the service program is deployed in the cloud based on Python, so that the service link test prevention described in the embodiment of the present application can easily achieve complete coverage of various application scenarios of the vehicle-cloud service link, such as remote control service, vehicle-side buried point data upload service, TSP shadow data upload service, vehicle-side dynamic data acquisition service and FOTA application service. One or more of the embodiments of the present application are not listed here. Secondly, in the actual application scenario of the embodiment of the present application, the cloud test server is created or deployed in Python, and it is also easier to establish communication with the simulation control system of the test control end, so as to facilitate the data interaction between the two ends to support simulation testing, and facilitate task parsing and scheduling of test tasks, thereby improving test efficiency.

[0085] Step S202: receiving a target service test request generated by the test control terminal using a test simulation system.

[0086] Specifically, in an optional embodiment of the present application, the service API target data set corresponding to the test request is determined according to the request generation time and the target service information and fed back to the test control end, including: according to the request generation time, the target service information and the topological information of the vehicle body communication system obtained, the crawler selenium library is used to call the WEB application, or a POST request is sent to the API to determine the service API target data set corresponding to the test request, and the obtained service API target data set is fed back to the test control end. After receiving the target service test request, the cloud test server parses the received test service request to determine the request generation time information and the target service information, and creates or deploys the cloud test server end in Python. It can use the crawler selenium library to call the WEB application for testing, perform the target service defense and user login of the web page, realize the configuration of the web page data environment, and obtain the corresponding test data from the web page end for result feedback. Selenium is a tool for Web application testing. The Selenium library can run directly in most common browsers when participating in simulation testing. Using the two methods listed in the embodiment of the present application, the service API target data set of multiple car cloud service links can be accurately obtained in a relatively easy-to-implement process. There is no need to redevelop compatible services or interfaces on the cloud service testing side to improve testing efficiency.

[0087] Step S203: extracting the request generation time information and target service information contained in the target service test request.

[0088] In an optional implementation of an embodiment of the present application, the generation time information and the target service information are string data added to the target service test request. In an embodiment of the present application, the generation time information and the target service information are extracted from the request as indicators of the vehicle-cloud service link test. For example, based on the generation time information, it can be determined when to perform the test. The cloud test server needs to feedback the time information of the target service data or the time interval for data feedback to the other end. After receiving the feedback data, the test control end does not need to perform complex processing such as parsing, extraction, and analysis on other attributes or data content of the received feedback data, and then supports the service link test according to the analysis content, thereby simply and efficiently completing the service link test for one or more covered service scenarios.

[0089] Step S204, determine the service API target data set corresponding to the test request according to the request generation time and the target service information, the API target data set is the service data generated after calling the vehicle cloud service, and the vehicle cloud service includes at least one of the remote control service, the buried data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service.

[0090] For example, after receiving the target service test request, the cloud test server parses the received test service request to determine the request generation time information and target service information. It can use the crawler selenium library to call the WEB application for testing and obtain test data from the web page. Selenium is a tool for testing Web applications. The Selenium library can be run directly in most common browsers when participating in simulation testing. It is easier to implement service simulation testing of multiple car-to-cloud service links without the need to redevelop compatible services on the cloud service test side.

[0091] Step S205: Feedback the service API target data set to the test control end, so that the test control end compares the received service API target data set with the expected feedback data corresponding to the target service test request to determine the test result of the vehicle-to-cloud service link. This method can simply and efficiently obtain high-accuracy test results.

[0092] Optionally, in one embodiment of the present application, the service API target data set is fed back to the test control end, including: converting the service API target data set into the form of a string dictionary to generate string dictionary data; adding the flag information corresponding to the target service information to the string dictionary data and then feeding it back to the test control end. In the embodiment of the present application, when different service functions are tested online, there are problems such as a large number of data signals and a heavy burden of manpower testing, and the service link tests of these service functions all require the generated test vehicle-side data to be uploaded to the cloud to determine whether the value of the signal with the same name as the cloud can be uploaded normally. Secondly, the range of different service link test signals is also different, and the API target data set corresponding to a certain service node or time point is also different. Therefore, by judging the request time information and the flag information of the target test service information in the test service request based on the test control end configured by the CANOE end, it is possible to more accurately know which API service interface the test control end is going to call for service testing, and obtain an accurate API target data set to improve the test accuracy.

[0093] The present application provides a vehicle-cloud service link testing method, which establishes communication between the cloud test server and the test control terminal based on the TCP / IP protocol, wherein the cloud test server is created based on Python, and the test control terminal is any one of the test control terminals described in the first aspect of the present application; receives a target service test request generated by the test control terminal using a test simulation system; extracts the request generation time information and target service information contained in the target service test request; determines a service API target data set corresponding to the test request according to the request generation time and the target service information, wherein the API target data set is service data generated after calling a vehicle-cloud service, and the vehicle-cloud service includes at least one of a remote control service, a buried data upload service, a TSP shadow data upload service, a vehicle-side dynamic data collection service, and a FOTA application service; feeds back the service API target data set to the test control terminal, so that the test control terminal compares the received service API target data set with the expected feedback data corresponding to the target service test request to determine the test result of the vehicle-cloud service link. The vehicle-cloud service link testing method disclosed in the present application performs service link testing based on the generation time information of the test service request and the target service information. It can relatively easily realize comprehensive testing of the vehicle-side service functions. The testing process does not need to rely too much on manpower, thereby improving testing efficiency, saving manpower costs, and improving the automation capability of vehicle-side service link testing.

[0094] Embodiment 3

[0095] Based on a vehicle-to-cloud service link testing method provided in the first embodiment of the present application, the present embodiment also provides a vehicle-to-cloud service link testing device 30, such as Figure 3 As shown, Figure 3 A schematic diagram of the structure of a vehicle-to-cloud service link test device 30 provided in an embodiment of the present application, the vehicle-to-cloud service link test device 30 includes:

[0096] Configuration module 301, used to establish communication between the test control end and the cloud test service end based on TCP / IP protocol, wherein the test control end is configured and generated based on the CANOE end;

[0097] The determination module 302 is used to obtain the service test request generated by the test simulation system and determine the request generation time information and the target service information;

[0098] A generating module 303, configured to add the generating time information and the target service information to the service test request to generate a target service test request;

[0099] The sending module 304 sends the target service test request to the cloud test server, so that the cloud test server determines the service API target data set corresponding to the test request according to the request generation time information and the target service information contained in the received target service test request, and feeds it back to the test control end, wherein the API target data set is the service data obtained by calling the vehicle cloud service, and the vehicle cloud service includes at least one of the remote control service, the buried point data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service;

[0100] The testing module 305 is used to compare the received API target data set with the expected feedback data corresponding to the service test request, and determine the test result of the vehicle-to-cloud service link according to the comparison result.

[0101] Optionally, in an embodiment of the present application, the generation module 303 is further used to: convert the generation time information into a preset character string, and determine the flag information corresponding to the test service information; and generate a target service test request based on the flag information and the preset character string.

[0102] Optionally, in an embodiment of the present application, the determination module 302 is further used to: obtain topology information of a body communication system of the tested vehicle; and generate a service test request using vTESTstudio based on the topology information of the body communication system.

[0103] Optionally, in an embodiment of the present application, the configuration module 301 is further used to: configure a Socket communication interface coupled to the test control end, so as to establish communication between the test control end and the cloud test server end through the Socket communication interface.

[0104] Embodiment 4:

[0105] Based on another vehicle-to-cloud service link testing method provided in the second embodiment of the present application, the embodiment of the present application also provides another vehicle-to-cloud service link testing device 40, such as Figure 4 As shown, Figure 4 A schematic diagram of the structure of a vehicle-to-cloud service link test device 40 provided in an embodiment of the present application, the vehicle-to-cloud service link test device 40 includes:

[0106] A communication module 401 is used to establish communication between the cloud test server and the test control terminal based on the TCP / IP protocol, wherein the cloud test server is created based on Python, and the test control terminal is any one of the test control terminals described in the first aspect or the third aspect;

[0107] A receiving module 402 is used to receive a target service test request generated by the test control end using a test simulation system;

[0108] An extraction module 403 is used to extract the request generation time information and the target service information contained in the target service test request;

[0109] The detection module 404 is used to determine the service API target data set corresponding to the test request according to the request generation time and target service information, and the API target data set is the service data generated after calling the vehicle cloud service, and the vehicle cloud service includes at least one of the remote control service, the buried point data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service.

[0110] Feedback module 405 is used to feed back the service API target data set to the test control end, so that the test control end can compare the received service API target data set with the expected feedback data corresponding to the target service test request to determine the test result of the vehicle-cloud service link.

[0111] Optionally, in one embodiment of the present application, the detection module 404 is also used to call the WEB application using the crawler selenium library according to the request generation time, target service information and the acquired topology information of the body communication system of the vehicle under test, so as to determine the service API target data set corresponding to the test request.

[0112] Optionally, in one embodiment of the present application, the feedback module 405 is also used to convert the service API target data set into a string dictionary form to generate string dictionary data; add flag information corresponding to the target service information to the string dictionary data and then feed it back to the test control terminal.

[0113] Embodiment 5

[0114] An embodiment of the present application also provides a storage medium on which a computer program is stored. When the program is executed by a processor, it implements any one of the vehicle-cloud service link testing methods described in Embodiment 1 or Embodiment 2 of the present application.

[0115] The present application also provides an electronic device, such as Figure 5 As shown, the electronic device includes:

[0116] One or more processors 501;

[0117] The memory 503 is used to store one or more programs.

[0118] When the one or more programs are instructed to be executed by the one or more processors 501 through the communication bus 504 based on the operation command received through the communication interface 502, the one or more processors 501 implement the vehicle-cloud service link testing method as described in any one of the above embodiments.

[0119] So far, the application has described specific embodiments of the subject matter. Other embodiments are within the scope of the appended claims. In some cases, the actions recorded in the claims can be performed in a different order and still achieve the desired results. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or sequential order shown to achieve the desired results. In some embodiments, multitasking and parallel processing can be advantageous.

[0120] In the 1990s, improvements to a technology could be clearly distinguished as hardware improvements (for example, improvements to the circuit structure of diodes, transistors, switches, etc.) or software improvements (improvements to the method flow). However, with the development of technology, many improvements to the method flow today can be regarded as direct improvements to the hardware circuit structure. Designers almost always obtain the corresponding hardware circuit structure by programming the improved method flow into the hardware circuit. Therefore, it cannot be said that an improvement in a method flow cannot be implemented using a hardware entity module. For example, a programmable logic device (PLD) (such as a field programmable gate array (FPGA)) is such an integrated circuit whose logical function is determined by the user's programming of the device. Designers can "integrate" a digital system layer on a PLD by programming it themselves, without having to ask a chip manufacturer to design and produce a dedicated integrated circuit chip. Moreover, nowadays, instead of manually making integrated circuit chips, this kind of programming is mostly implemented by "logic compiler" software, which is similar to the software compiler used when developing and writing programs, and the original code before compilation must also be written in a specific programming language, which is called hardware description language (HDL). There is not only one HDL, but many kinds, such as ABEL (Advanced Boolean Expression Language), AHDL (Altera Hardware Description Language), Confluence, CUPL (Cornell University Programming Language), HDCal, JHDL (Java Hardware Description Language), Lava, Lola, MyHDL, PALASM, RHDL (Ruby Hardware Description Language), etc. The most commonly used ones are VHDL (Very-High-Speed ​​Integrated Circuit Hardware Description Language) and Verilog. Those skilled in the art should also know that it is only necessary to program the method flow slightly in the above-mentioned hardware description languages ​​and program it into the integrated circuit, and then it is easy to obtain the hardware circuit that implements the logic method flow.

[0121] The controller can be implemented in any appropriate manner, for example, the controller can take the form of a microprocessor or processor and a computer-readable medium storing a computer-readable program code (such as software or firmware) that can be executed by the (micro)processor, a logic gate, a switch, an application-specific integrated circuit (ASIC), a programmable logic controller, and an embedded microcontroller. Examples of controllers include, but are not limited to, the following microcontrollers: ARC 625D, Atmel AT91SAM, Microchip PIC18F26K20, and Silicone Labs C8051F320. The memory controller can also be implemented as part of the control logic of the memory. Those skilled in the art also know that in addition to implementing the controller in a purely computer-readable program code manner, the controller can be implemented in the form of a logic gate, a switch, an application-specific integrated circuit, a programmable logic controller, and an embedded microcontroller by logically programming the method steps. Therefore, this controller can be considered as a hardware component, and the devices included therein for implementing various functions can also be regarded as structures within the hardware component. Or even, the devices for implementing various functions can be regarded as both software modules for implementing the method and structures within the hardware component.

[0122] The system layers, devices, modules or units described in the above embodiments may be implemented by computer chips or entities, or by products with certain functions. A typical implementation device is a computer. Specifically, the computer may be, for example, a personal computer, a laptop computer, a cellular phone, a camera phone, a smart phone, a personal digital assistant, a media player, a navigation device, an email device, a game console, a tablet computer, a wearable device, or a combination of any of these devices.

[0123] For the convenience of description, the above device is described in various units according to their functions. Of course, when implementing the present application, the functions of each unit can be implemented in the same or multiple software and / or hardware.

[0124] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, system layers, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0125] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0126] The present application may be described in the general context of computer-executable instructions executed by a computer, such as program modules. Generally, program modules include routines, programs, objects, components, data structures, etc. that perform specific transactions or implement specific abstract data types. The present application may also be practiced in distributed computing environments where transactions are performed by remote processing devices connected through a communication network. In a distributed computing environment, program modules may be located in local and remote computer storage media, including storage devices.

[0127] Each embodiment in this specification is described in a progressive manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the system layer embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0128] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A vehicle-cloud service link testing method, characterized in that: Applied to the test control terminal, the method includes: Based on the TCP / IP protocol, establish communication between the test control end and the cloud test service end, wherein the test control end is configured and generated based on the CANOE end; Obtaining a service test request generated by a test simulation system, and determining request generation time information and target service information; Adding the generation time information and the target service information to the service test request to generate a target service test request; The target service test request is sent to the cloud test server, so that the cloud test server determines the service API target data set corresponding to the test request according to the request generation time information and the target service information contained in the received target service test request and feeds it back to the test control end, wherein the API target data set is the service data obtained by calling the vehicle cloud service, and the vehicle cloud service includes at least one of the remote control service, the buried point data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service; The received API target data set is compared with the expected feedback data corresponding to the service test request, and the test result of the vehicle-to-cloud service link is determined based on the comparison result.

2. The vehicle-to-cloud service link testing method according to claim 1, characterized in that: The adding the generation time information and the test service information to the service test request to generate a target service test request includes: Convert the generation time information into a preset character string, and determine the flag information corresponding to the test service information; A target service test request is generated according to the flag information and the preset character string.

3. The vehicle-to-cloud service link testing method according to claim 1, characterized in that: The obtaining of the service test request generated by the test simulation system includes: Obtaining topology information of the body communication system of the vehicle under test; Based on the topology information of the vehicle body communication system, a service test request is generated using vTESTstudio.

4. The vehicle-to-cloud service link testing method according to claim 1, characterized in that: The establishing of communication between the test control end and the cloud test service end includes: A Socket communication interface coupled to the test control end is configured to establish communication between the test control end and the cloud test service end through the Socket communication interface.

5. A vehicle-cloud service link testing method, characterized in that: Applied to a cloud testing server, the method includes: Based on the TCP / IP protocol, establish communication between the cloud test server and the test control terminal, wherein the cloud test server is created based on Python, and the test control terminal is the test control terminal described in any one of claims 1 to 4; Receiving a target service test request generated by the test control end using a test simulation system; Extracting the request generation time information and the target service information contained in the target service test request; Determine the service API target data set corresponding to the test request according to the request generation time and target service information, where the API target data set is service data generated after calling the vehicle cloud service, and the vehicle cloud service includes at least one of the following: remote control service, buried point data upload service, TSP shadow data upload service, vehicle-side dynamic data collection service, and FOTA application service; The service API target data set is fed back to the test control end, so that the test control end compares the received service API target data set with the expected feedback data corresponding to the target service test request to determine the test result of the vehicle-to-cloud service link.

6. The vehicle-to-cloud service link testing method according to claim 1, characterized in that: The determining of the service API target data set corresponding to the test request according to the request generation time and the target service information and feeding back to the test control end includes: According to the request generation time, target service information and the acquired topology information of the body communication system of the vehicle under test, the crawler selenium library is used to call the WEB application or send a POST request to the API to determine the service API target data set corresponding to the test request, and the acquired service API target data set is fed back to the test control end.

7. The vehicle-to-cloud service link testing method according to claim 5, characterized in that: Feeding back the service API target data set to the test control end includes: Convert the service API target data set into a string dictionary format to generate string dictionary data; The flag information corresponding to the target service information is added to the character string dictionary data and then fed back to the test control terminal.

8. A vehicle-cloud service link testing device, characterized in that: include: A configuration module, used to establish communication between the test control terminal and the cloud test service terminal based on the TCP / IP protocol, wherein the test control terminal is configured and generated based on the CANOE terminal; A determination module is used to obtain a service test request generated by a test simulation system, and determine request generation time information and target service information; A generating module, used for adding the generating time information and the target service information to the service testing request to generate the target service testing request; A sending module sends the target service test request to a cloud test server, so that the cloud test server determines the service API target data set corresponding to the test request according to the request generation time information and the target service information contained in the received target service test request, and feeds it back to the test control end, wherein the API target data set is the service data obtained by calling the vehicle cloud service, and the vehicle cloud service includes at least one of the remote control service, the buried point data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service; The test module is used to compare the received API target data set with the expected feedback data corresponding to the service test request, and determine the test result of the car-cloud service link according to the comparison result.

9. A vehicle-cloud service link testing device, characterized in that: include: A communication module, used for establishing communication between the cloud test server and the test control terminal based on the TCP / IP protocol, wherein the cloud test server is created based on Python, and the test control terminal is the test control terminal described in any one of claims 1 to 4 or claim 8; A receiving module, used for receiving a target service test request generated by the test control end using a test simulation system; An extraction module, used to extract the request generation time information and target service information contained in the target service test request; A detection module is used to determine the service API target data set corresponding to the test request according to the request generation time and target service information, wherein the API target data set is the service data generated after calling the vehicle cloud service, and the vehicle cloud service includes at least one of the remote control service, the buried point data upload service, the TSP shadow data upload service, the vehicle-side dynamic data collection service and the FOTA application service. A feedback module is used to feed back the service API target data set to the test control end, so that the test control end can compare the received service API target data set with the expected feedback data corresponding to the target service test request to determine the test result of the vehicle-cloud service link.

10. A computer storage medium, characterized in that: The computer storage medium stores computer executable instructions, and when the computer executable instructions are executed, the vehicle-cloud service link testing method as described in any one of claims 1-7 is executed.