Service test method and platform, server, client and storage medium

By combining the server-side controller and simulation module of the service testing platform, hardware reuse and parallel testing are achieved, solving the problems of hardware resource waste and insufficient testing accuracy in the existing technology, and improving testing efficiency and accuracy.

CN120692191APending Publication Date: 2025-09-23ZHAOQING XIAOPENG NEW ENERGY INVESTMENT CO LTD GUANGZHOU BRANCH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510850252.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-23
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

In the existing technology, the service testing solution of the SOA service architecture based on the SOME/IP protocol has problems such as waste of hardware resources, non-scalability and insufficient testing accuracy. The vehicle-level SOA test bench cannot be tested in parallel, and the single-piece SOA service simple test bench cannot truly reflect the test scenario.

Method used

A service testing platform is used, including a server controller and simulation modules. Multiple server control modules interact with the client to achieve hardware reuse and parallel testing. The real server controller is used for testing, combined with the virtualization technology of the server simulation module to ensure the authenticity of the test scenario.

Benefits of technology

It improves the hardware utilization and reuse rate of service testing, enhances the accuracy and efficiency of testing, reduces the waste of data transmission resources, and supports the parallel execution of multiple test services.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120692191A_ABST
    Figure CN120692191A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a service test method, a platform, a server, clients and a storage medium, the method is applied to the server in the service test platform, the service test platform further comprises a plurality of clients and a load module, the server comprises a server controller and a server simulation module, and the server simulation module comprises a plurality of clients and a plurality of load modules. The server-side simulation module comprises a plurality of server-side control modules, each server-side control module corresponds to one client, and the method comprises the following steps: a target server-side control module in the plurality of server-side control modules receives a service request sent by a corresponding target client, and the service request is used for indicating to test a to-be-tested service; the target server-side control module issues a service request to the server-side controller; and the server-side controller controls a target load in a load module associated with the to-be-tested service to run according to the service request so as to execute the to-be-tested service. According to the embodiment of the invention, the hardware reuse rate and the test accuracy of the service test are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present application relate to the field of testing technology, and are related to but not limited to a service testing method, platform, server, client, and storage medium. Background Art

[0002] In the field of vehicle testing, service-oriented architecture (SOA) based on scalable service-oriented middleware over IP (SOME / IP) is mainly used for service testing.

[0003] In related technologies, testing solutions based on the aforementioned SOA service architecture primarily include vehicle-level SOA test benches and simple SOA service test benches at the single-unit level. The vehicle-level SOA test bench requires a corresponding test bench for each device under test, wasting significant hardware resources and lacking scalability and reusability. The simple SOA service test bench at the single-unit level primarily utilizes simulation tools, which cannot fully replicate the actual test scenario, thus affecting test accuracy. Summary of the Invention

[0004] In view of this, an embodiment of the present application provides a service testing method, platform, server, client and storage medium. This embodiment realizes parallel requests from multiple clients to the server for different service requests, thereby improving the hardware reuse rate and test accuracy of service testing.

[0005] An embodiment of the present application provides a service testing method, which is applied to a server in a service testing platform. The service testing platform further includes multiple clients and a load module. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, each of which corresponds to a client. The method includes:

[0006] A target server control module among the multiple server control modules receives a service request sent by a corresponding target client, wherein the service request is used to instruct to test the service to be tested;

[0007] The target server control module sends the service request to the server controller;

[0008] The server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0009] In the above embodiment, the server side of the service test platform includes a server side controller and a server side simulation module, that is, this solution is based on the hardware controller such as the server side controller, and is supplemented by the software such as the server side simulation module to realize the virtualization of the hardware controller to build a test service platform. When performing service testing based on this service test platform, since the server side simulation module includes multiple server side control modules, the expansion of multiple server side control modules is realized, so that each client can interact with the corresponding server side control module, and each client and each server side control module do not interfere with each other, that is, a single server side controller is reused by multiple clients, realizing parallel testing of multiple test services, and improving the hardware utilization and reuse rate of service testing; at the same time, the service test is completed based on the server side controller. This real hardware controller can ensure that the test process is based on a real test scenario, effectively improving the test accuracy.

[0010] In some embodiments, the server simulation module further includes a server management module, and the target server control module sends the service request to the server controller, including:

[0011] The target server control module sends the service request to the server management module;

[0012] When the target load is not occupied, the server management module sends the service request to the server controller.

[0013] In the above embodiment, when the target server-side control module sends a service request to the server-side controller, it will judge the occupancy status of the target load associated with the service to be tested through the server-side management module of the server. The service request will be sent to the server-side controller only when the target load is not occupied. In other words, the service request will not be sent first when it is occupied. In this way, time-sharing multiplexing of the test service is realized, and whether the load is occupied is judged, which is conducive to reducing unnecessary data transmission and saving data transmission resources.

[0014] In some embodiments, the method further comprises:

[0015] The server management module determines the occupancy of the target load according to the load associated with other test services being executed and the target load, wherein the other test services are indicated by service requests from clients other than the target client among the multiple clients.

[0016] In the above embodiment, the server management module can quickly and accurately determine whether the target load associated with the service to be tested is occupied by the load associated with other test services being executed, and can quickly send the service request to the server controller, which is conducive to improving the efficiency of subsequent service tests.

[0017] In some embodiments, the server simulation module further includes a server management module, each client includes a client simulation module, each client simulation module is communicatively connected to a corresponding server control module, and the method further includes:

[0018] The server-side management module sends load information to the target client simulation module corresponding to the target client through the target server-side control module. The load information is used to indicate the occupancy status of the load associated with other test services being executed, so that the target client simulation module determines that the target load is not occupied based on the occupancy status of the load associated with other test services and the target load, and then sends the service request to the target server-side control module.

[0019] In the above embodiment, when the target client sends a service request to the target server control module, the target client simulation module of the target client will judge the occupancy status of the target load associated with the service to be tested. The service request will be sent to the target server control module only when the target load is not occupied. In other words, the service request will not be sent first when the target load is occupied. In this way, time-sharing multiplexing of the test service is realized. Moreover, this method of judging whether the load is occupied on the client further reduces unnecessary data transmission and saves data transmission resources.

[0020] In some embodiments, the method further comprises:

[0021] After the service to be tested is completed, the server controller sends service status information of the service to be tested to the server management module, where the service status information is used to indicate that the service to be tested has completed testing.

[0022] In the above embodiment, after the service test is completed, the server controller can feed back the service status information of the service to be tested to the server management module, and can provide real-time feedback on the completion status of the service to be tested. This real-time feedback mechanism makes the testing process more transparent, improves the flexibility and efficiency of the test, and facilitates the monitoring and management of the service test.

[0023] In some embodiments, the method further comprises:

[0024] The server management module updates the current state of the service to be tested according to the service state information, and the updated current state of the service to be tested is used to indicate that the target load is not occupied; or

[0025] The server management module sends the service status information to the target server control module;

[0026] The target server control module updates the current state of the service to be tested according to the service state information, and the updated current state of the service to be tested is used to indicate that the target load is not occupied;

[0027] The target server control module sends information indicating the updated current status of the service to be tested to the target client.

[0028] In the above embodiment, the current status of the service to be tested can be updated through the server-side management module or the target server-side control module, so that the load occupancy can be reflected in real time and accurately, and unoccupied load resources can be quickly identified. This is beneficial in the process of judging whether the load in each test service request is occupied. It can make more accurate judgments in real time based on the latest load occupancy situation, improve the efficiency of responding to other test services, and make it easier to use the load for other test tasks. This load release mechanism improves the utilization efficiency of the load and avoids load idleness and waste.

[0029] In some embodiments, the method further comprises:

[0030] The server simulation module receives an access request sent by the target client, where the access request is used to request access to one of the multiple server control modules;

[0031] In response to the access request, the server simulation module connects the target client to the target server control module.

[0032] In the above embodiment, the server-side simulation module can connect the target client to the target server-side control module after receiving the access request sent by the target client. That is to say, the server-side simulation module can centrally process access requests from multiple clients. This centralized management method simplifies the access process and improves the overall access efficiency. In addition, the client and the server-side control module interact indirectly through the server-side simulation module, reducing the complexity and potential errors of direct communication. This indirect interaction mechanism reduces the access risk and improves the reliability of the service testing platform.

[0033] In some embodiments, in response to the access request, the server simulation module connects the target client to the target server control module, including:

[0034] In response to the access request, the server simulation module connects the target client to the target server control module according to the client information currently connected in the multiple server control modules, and the client information is used to indicate whether there is a client currently connected to the server simulation module.

[0035] In the above embodiment, the server simulation module can dynamically allocate access requests from different clients based on the currently connected client information to ensure load balancing of each server control module. This access method can avoid overloading of a server control module in the server simulation module due to accessing too many clients, and can maintain efficient operation in high-concurrency scenarios, thereby improving overall performance and response speed.

[0036] In some embodiments, the multiple server-side control modules include a server-side master control module and at least one server-side slave control module, the server-side master control module performs data transmission with the server-side controller, and the server-side slave control module performs data transmission with the server-side controller through the server-side master control module. The server-side simulation module connects the target client to the target server-side control module based on the information of the client currently connected in the multiple server-side control modules, including:

[0037] When the client information indicates that no client is currently connected to the server simulation module, the server simulation module determines the server main control module as the target server control module and connects the target client to the server main control module; or

[0038] When the client information indicates that a client is currently connected to the server simulation module, the server simulation module determines the target server slave control module in the at least one server slave control module as the target server control module, and connects the target client to the target server slave control module.

[0039] In the above embodiment, by setting up a server-side main control module and at least one server-side slave control module, the main control module is responsible for direct data transmission with the server-side controller, while the slave control module does not directly transmit data with the server-side controller. This architecture can effectively reduce the number of communication links of the server-side controller, reduce the complexity of communication, and improve the overall processing capability of the system; and, in the case of no client access, the target client is preferentially connected to the server-side main control module, and in the case of existing client access, the target client is connected to the server-side slave control module. This method can reasonably allocate client access according to the real-time access status of the server-side control module, thereby improving resource utilization.

[0040] In some embodiments, the access request includes a target test service subscribed to by the target client. After the server simulation module connects the target client to the target server control module in response to the access request, the method further includes:

[0041] The target server control module completes a subscription operation for the target test service according to at least one test service corresponding to the server controller and the target test service.

[0042] In the above embodiment, the target client can pre-subscribe to the target test service in the test service provided by the server controller when accessing the server, so that the configuration of the relevant test service can be completed before the service request is issued, so that the target client can enter the test state immediately after accessing the server. After subsequently initiating the service request, the test time can be shortened and the test efficiency can be improved.

[0043] An embodiment of the present application provides a service testing method, which is applied to a target client of multiple clients in a service testing platform. The service testing platform also includes a server and a load module. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, each server control module corresponding to a client. The method includes:

[0044] The target client sends a service request to a target server control module among the multiple server control modules, wherein the service request is used to instruct to test the service to be tested, so that the target server control module sends the service request to the server controller, so that the server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested;

[0045] Receive test data corresponding to the service to be tested sent by the target server control module.

[0046] In the above embodiment, since the server-side simulation module includes multiple server-side control modules, the expansion of multiple server-side control modules is realized, and a single server-side controller is reused by multiple clients, so that multiple server-side control modules can interact with multiple clients, that is, supporting parallel testing of multiple test services, thereby improving the hardware utilization and reuse rate of service testing; at the same time, service testing is completed based on the server-side controller. This real hardware controller can ensure that the testing process is based on a real test scenario, effectively improving the test accuracy.

[0047] In some embodiments, each client includes a client simulation module and a client controller, each client simulation module is communicatively connected to a corresponding server control module, and the target client sends a service request to a target server control module among the multiple server control modules, including:

[0048] The target client controller corresponding to the target client sends the service request to the corresponding target client simulation module;

[0049] When the target load is not occupied, the target client simulation module sends the service request to the target server control module.

[0050] In the above embodiment, when the target client sends a service request to the target server control module, the target client simulation module of the target client will judge the occupancy status of the target load associated with the test service. Only when the target load is not occupied will the service request be sent to the target server control module. In other words, the service request will not be sent first when it is occupied. In this way, time-sharing multiplexing of the test service is realized. Moreover, this method of judging whether the load is occupied on the client further reduces unnecessary data transmission and saves data transmission resources.

[0051] In some embodiments, when the target load is not occupied, the target client simulation module sends the service request to the target server control module, including:

[0052] The target client simulation module receives the load information sent by the target server control module, where the load information is used to indicate the occupancy of the load associated with other test services being executed;

[0053] According to the occupancy status of the load associated with the other test services and the target load, when it is determined that the target load is not occupied, the target client simulation module sends the service request to the target server control module.

[0054] In the above embodiment, the target client simulation module can quickly and accurately determine whether the target load associated with the service to be tested is occupied through the load associated with other test services being executed, and can quickly send the service request to the target server control module, which is conducive to improving the efficiency of subsequent service tests.

[0055] An embodiment of the present application provides a service testing platform, which includes a server, multiple clients, and a load module. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, each server control module corresponding to a client.

[0056] A target client among the multiple clients sends a service request to a target server control module among the multiple server control modules, wherein the service request is used to instruct to test the service to be tested;

[0057] The target server control module sends the service request to the server controller;

[0058] The server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0059] An embodiment of the present application provides a server, which is applied to a service testing platform. The service testing platform further includes multiple clients and a load module. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, each corresponding to a client. The multiple server control modules include a target server control module, wherein:

[0060] The target server control module is configured to receive a service request sent by a corresponding target client, wherein the service request is used to instruct to test the service to be tested;

[0061] The target server control module is further configured to send the service request to the server controller;

[0062] The server-side controller is configured to control the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0063] An embodiment of the present application provides a client, which is applied to a service testing platform. The service testing platform also includes a server and a load module. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, each of which corresponds to a client, wherein:

[0064] The client is configured to send a service request to a target server control module among the multiple server control modules, wherein the service request is used to instruct to test the service to be tested, so as to send the service request to the server controller through the target server control module, so that the server controller controls the operation of the target load in the load module associated with the service to be tested according to the service request, so as to execute the service to be tested;

[0065] The client is further configured to receive test data corresponding to the service to be tested sent by the target server control module.

[0066] The computer-readable storage medium provided in the embodiment of the present application stores a computer program thereon, and when the computer program is executed by a processor, the method described in the embodiment of the present application is implemented.

[0067] The computer program product provided in the embodiments of the present application includes a computer program, which implements the method described in the embodiments of the present application when executed by a processor. BRIEF DESCRIPTION OF THE DRAWINGS

[0068] The drawings herein are incorporated into and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and, together with the specification, are used to illustrate the technical solutions of the present application.

[0069] Figure 1 This is a schematic diagram of the system architecture of a service testing platform disclosed in an embodiment of the present application;

[0070] Figure 2 This is a flow chart of a service testing method disclosed in an embodiment of the present application;

[0071] Figure 3 This is a schematic diagram of the system architecture of another service testing platform disclosed in an embodiment of the present application;

[0072] Figure 4 This is a flowchart of another service testing method disclosed in an embodiment of the present application;

[0073] Figure 5 This is a flowchart of another service testing method disclosed in an embodiment of the present application;

[0074] Figure 6 This is a flowchart of another service testing method disclosed in an embodiment of the present application;

[0075] Figure 7 This is a flowchart of another service testing method disclosed in an embodiment of the present application;

[0076] Figure 8 This is a flow chart of another service testing method disclosed in an embodiment of the present application;

[0077] Figure 9 This is a schematic diagram of the structure of a server disclosed in an embodiment of the present application;

[0078] Figure 10 This is a schematic diagram of the structure of a client disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0079] To make the purpose, technical solutions and advantages of the embodiments of the present application clearer, the specific technical solutions of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application but are not intended to limit the scope of the present application.

[0080] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art to which this application pertains. The terms used herein are for the purpose of describing the embodiments of this application only and are not intended to limit this application.

[0081] In the following description, reference is made to “some embodiments”, which describes a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.

[0082] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged with a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.

[0083] In the field of vehicle testing, the SOA service architecture built on the SOME / IP protocol is primarily used for service testing. SOA is a service-oriented software architecture design pattern; the SOME / IP protocol is an IP-based communication protocol that allows efficient and reliable data exchange between different electronic controllers. Using the SOA service architecture built on the SOME / IP protocol allows different services in the vehicle to be called and managed. That is, the SOA service architecture uses the SOME / IP protocol to enable communication between different modules in the vehicle. For example, the in-vehicle infotainment system (such as the large screen) can act as a client and request services from the server (such as the vehicle's air conditioning controller or powertrain controller) through the SOME / IP protocol, such as air conditioning control services or window adjustment services.

[0084] In related technologies, testing solutions based on the aforementioned SOA service architecture primarily include vehicle-level SOA test benches and single-unit SOA service simple test benches. The vehicle-level SOA test bench includes a real server controller and client controller, as well as the server's peripheral interfaces and load modules. The disadvantages of this test bench are:

[0085] First, test bench construction relies on a large number of hardware resources, resulting in a waste of hardware resources and making them unscalable and unreusable. This is because vehicle-level SOA test benches are typically designed for specific test scenarios. Once test requirements change, the test bench may need to be reconfigured or rebuilt on a large scale, which is not only time-consuming but also costly, making hardware resource configuration complex and expensive.

[0086] Second, multiple business testers cannot share test bench resources for parallel testing. In other words, a test bench's hardware resources are usually difficult to share between multiple test tasks, making it impossible to perform multiple test tasks simultaneously. In order to achieve parallel testing, a corresponding SOA test bench needs to be built for each tested end. This limits the efficiency and speed of testing, resulting in low resource utilization, and is particularly unable to adapt to the rapid iteration of development and testing needs. For example, assume that in a vehicle-level SOA test bench, the server-side controller includes the air conditioning controller and the power system controller, the client controller includes the central domain controller and the large screen, and the load module includes the thermal management module and the headlight module. The test tasks include Test Task 1 (verifying the cooling and heating functions of the air conditioning system) and Test Task 2 (verifying the acceleration and deceleration performance of the power system); Test Task 1 requires the use of the central domain controller and the large screen in the client controller, the air conditioning controller of the server controller, and the thermal management module of the load module; Test Task 2 requires the use of the central domain controller in the client controller, the power system controller of the server controller, and the headlight module of the load module. Then, since the central domain controller is a hardware resource required by both test tasks, and the air-conditioning controller and power system controller are the core resources of the two test tasks respectively, they cannot be used for different tests at the same time. If test task 1 starts first, test task 2 must wait until test task 1 is completed before using the bench resources. Therefore, during the test of test task 1, the power system controller and the headlight module are idle and cannot be used by test task 2. That is, hardware resources cannot be shared between different test tasks, resulting in some resources being completely idle during certain time periods, increasing testing costs.

[0087] Third, data monitoring and parsing on the protocol link need to be implemented with the help of additional tool chains. These tool chains may require separate configuration and maintenance, which increases the complexity of testing and increases the overall testing cost.

[0088] Among them, the construction of a simple bench for single-piece SOA services only builds the corresponding bench for the controller under test, and other ports use simulation tools to simulate monitoring and sending of the SOME / IP protocol. The simulation tool can generate and monitor data packets of the SOME / IP protocol to simulate the real communication environment. The SOME / IP protocol is used for communication between the client and the simulation software. The simulation software verifies whether the client under test can correctly send and receive data by simulating the behavior of the server. For example, if the object under test is the client, the server will be simulated through the simulation tool, and the simulation tool simulates the behavior of the server. This simulation can simulate the response and data transmission of the server and interact with the real client. The disadvantage of this bench is that it lacks real data interaction and cannot fully restore the real test scenario, which will affect the accuracy of the test.

[0089] First, because the test bench relies on simulation tools to simulate server-side and client-side interactions, the simulation process can only simulate the requirements document without actual data reference, and may not accurately reflect the complex data interactions in actual vehicle operation. As a result, the test process lacks real vehicle data and cannot reproduce the actual interaction process of the SOME / IP protocol signal in the entire vehicle. In other words, the simulation environment cannot fully reproduce the real test scenario. Second, the SOME / IP protocol signal interaction in the vehicle can be affected by various factors, such as network latency, packet loss, and hardware characteristics. This means that it is difficult to fully simulate these variables in the simulation environment.

[0090] Therefore, how to improve the hardware utilization and reuse rate of service testing, realize parallel testing, and improve test accuracy have become technical problems that still need to be solved.

[0091] In view of this, an embodiment of the present application provides a service testing method, platform, server, client and storage medium, the method is applied to the server in the service testing platform, the service testing platform also includes multiple clients and load modules, the server includes a server controller and a server simulation module, the server simulation module includes multiple server control modules, each server control module corresponds to a client, the method includes: a target server control module in the multiple server control modules receives a service request sent by the corresponding target client, the service request is used to indicate that the service to be tested is to be tested; the target server control module sends a service request to the server controller; the server controller controls the target load in the load module associated with the service to be tested according to the service request to execute the service to be tested. The embodiment of the present application can improve the hardware reuse rate and test accuracy of service testing.

[0092] In order to make the purpose and technical solution of this application clearer and more intuitive, the following describes a service testing method, platform, server, client and storage medium disclosed in this application in conjunction with the accompanying drawings.

[0093] The present application discloses a service testing platform, which includes a server, multiple clients, and a load module. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, each corresponding to a client. Exemplarily, the server simulation module may include server application software.

[0094] In some embodiments, each client is connected to the corresponding server control module via a network interface. Optionally, the network interface may include a socket network interface, which is a network programming interface that can be used to communicate with the Transmission Control Protocol (TCP / IP) protocol.

[0095] In some embodiments, the server simulation module and the server controller are connected to each other via a first interactive protocol. Optionally, the first interactive protocol may include a SOME / IP protocol.

[0096] In some embodiments, the server controller and the load module are communicatively connected via a second interactive protocol. Optionally, the second interactive protocol may include a CAN / LIN (controller area network, local interconnect network) bus protocol, which is responsible for controlling the operation of the load module.

[0097] It should be noted that this application does not limit the above-mentioned network interface, first interaction protocol, and second interaction protocol.

[0098] Optionally, the load module may include loads such as a thermal management module, a lamp module, a window module, a seat module, and a rearview mirror module, which is not limited in this application.

[0099] See Figure 1 , Figure 1 This is a schematic diagram of the system architecture of a service testing platform disclosed in the embodiment of this application. Figure 1The service testing platform shown includes multiple clients (client 1, client 2, ..., client N), and the server simulation module includes multiple server control modules (server control module 1, server control module 2, ..., server control module N). Client 1 is connected to server control module 1 via a network interface, client 2 is connected to server control module 2 via a network interface, client N is connected to server control module N via a network interface, the server simulation module is connected to the server controller via a first interactive protocol, and the server controller is connected to the load module via a second interactive protocol. For example, the load module (such as a thermal management module, a headlight module, etc.) communicates with the server controller via the CAN / LIN bus protocol. The server controller, as middleware, communicates with the server simulation module via the SOME / IP protocol. The server simulation module communicates with the client via a socket network interface.

[0100] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the service testing platform on which the solution of the present application is applied. The specific service testing platform may include more or fewer modules than shown in the figure, or combine certain modules.

[0101] It can be seen that the server side of the service test platform proposed in the embodiment of the present application includes a server side controller and a server side simulation module, that is, this solution is based on a hardware controller such as a server side controller, and is supplemented by a software such as a server side simulation module to realize the virtualization of the hardware controller, and is combined with the client and the load to build a test service platform. When performing service testing based on this service test platform, since the server side simulation module includes multiple server side control modules, and each server side control module can interact with different clients respectively, the expansion of the server side control module is realized, and the parallel testing of multiple test services is realized, thereby improving the hardware utilization and reuse rate of the service test; moreover, the test service platform is built based on a real server side controller, so that the test process can truly reflect the test scenario, thereby improving the test accuracy.

[0102] The following is an example of a service test method disclosed in this application combined with a vehicle service test method. Figure 1 and Figure 2 See Figure 2 , Figure 2 This is a flow chart of a service testing method disclosed in the embodiment of this application. Figure 2 The method shown may include the following steps:

[0103] Step 201: The target client sends a service request to the target server control module. The service request is used to instruct to test the service to be tested.

[0104] It should be noted that the target client is any one of the multiple clients, and the target server control module is the server control module corresponding to the target client among the multiple server control modules of the server simulation module.

[0105] In an embodiment of the present application, the target client may send a service request to the server. When sending the service request, the target client may send the service request to the corresponding target server control module through a network interface.

[0106] In this embodiment of the present application, a service request includes a target payload associated with the service to be tested. After the service request is responded to, the target payload can be invoked to complete the service to be tested. In other words, a service request is used to instruct the service to be tested to be tested, which can be understood as completing the test of the service to be tested by invoking and controlling the target payload.

[0107] For example, Figure 1 For example, assuming that the performance of the vehicle seat heating system needs to be tested to ensure that it can quickly and effectively increase the seat temperature in a low-temperature environment, the target client is client 1 (such as the central domain controller), and the target server control module is server control module 1. The tester can select the seat heating function test option through the central domain controller of the vehicle's client 1. The central domain controller sends the seat heating function test request (an example of a service request) to the corresponding server control module 1 through the network interface to complete the sending of the service request.

[0108] It should be noted that the target load associated with the service to be tested includes at least one load in the load module, and this application does not limit the number of loads required for the service to be tested corresponding to the service request.

[0109] In some embodiments, each client and the corresponding server control module are configured with a preset identifier, and the preset identifiers of each client are different. The target client can determine the corresponding target server control module through the preset identifier, and then send the service request to the corresponding target server control module. The service request can be sent quickly and accurately through the preset identifier.

[0110] Step 202: The target server control module sends a service request to the server controller.

[0111] In this embodiment of the present application, after receiving a service request from a target client, the target server control module sends the service request to the server controller. For example, continuing with the example in step 201, after receiving a seat heating function test request, the server control module 1 can send the seat heating function test request to the server controller via the SOME / IP protocol.

[0112] Step 203: The server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0113] In this embodiment of the present application, after receiving a service request from a target server control module, the server controller responds to the service request and controls the target load associated with the service to be tested to execute the service to be tested. For example, continuing with the example of steps 201-202, after receiving a seat heating function test request, the server controller controls the thermal management module and the seat module to execute, initiating a test of the seat heating system.

[0114] It should be noted that the load corresponding to each test service can be preset by testers in this field, and this application does not limit this.

[0115] It can be seen that when performing service testing based on the service testing platform proposed in the embodiment of the present application, since the server-side simulation module includes multiple server-side control modules, the expansion of multiple server-side control modules is realized, and any client among the multiple clients (such as the target client) can send a service request to the server-side control module corresponding to the client (such as the target server-side control module). The server-side control module sends the service request to the server-side controller, thereby controlling the operation of the target load associated with the service to be tested through the real server-side controller to execute the service to be tested; this service testing process allows each client to interact with the corresponding server-side control module, and each client and each server-side control module do not interfere with each other, that is, a single server-side controller is reused by multiple clients, realizing parallel testing of multiple test services, and improving the hardware utilization and reuse rate of the service test; at the same time, based on the server-side controller to complete the service test, this real hardware controller can ensure that the test process is based on a real test scenario, effectively improving the test accuracy.

[0116] In some embodiments, each client includes a client simulation module and a client controller, and each client simulation module is in communication with a corresponding server control module. For example, the client simulation module may include client application software, and the client controller may include a large screen, a central domain controller, etc.

[0117] In some embodiments, each client simulation module is communicatively connected to the corresponding server control module via a network interface. Optionally, the network interface may include a socket network interface.

[0118] In some embodiments, the client controller corresponding to each client is connected to the client simulation module via a first interactive protocol. Optionally, the first interactive protocol may include a SOME / IP protocol.

[0119] See Figure 3 , Figure 3 This is a schematic diagram of the system architecture of another service testing platform disclosed in the embodiment of this application. Figure 3 The service testing platform shown includes multiple clients and servers, each client including a client simulation module and a client controller, such as the client controller and client simulation module 1 corresponding to client 1, the client controller and client simulation module 2 corresponding to client 2, ..., the client controller and client simulation module N corresponding to client N. Specifically, client simulation module 1 is communicatively connected to server control module 1 via a network interface, client simulation module 2 is communicatively connected to server control module 2 via a network interface, and client simulation module N is communicatively connected to server control module N via a network interface; the client controller corresponding to client 1 is communicatively connected to client simulation module 1 via a first interactive protocol, the client controller corresponding to client 2 is communicatively connected to client simulation module 2 via a first interactive protocol, and the client controller corresponding to client N is communicatively connected to client simulation module N via a first interactive protocol.

[0120] In some embodiments, the server simulation module further includes a server management module, and a communication connection is established between the server management module and each server control module.

[0121] In some embodiments, the service simulation module further includes a server gateway, the server gateway establishes a communication connection with the server management module, and the server gateway communicates with the server controller via a first interaction protocol. Optionally, the first interaction protocol may include the SOME / IP protocol.

[0122] In some embodiments, the server controller includes a first server controller and a second server controller, and the first server controller and the second server controller are used to control different loads of the load module. The first server controller is used to control the first load of the load module, and the second server controller is used to control the second load of the load module. It should be noted that in the embodiments of the present application, the target load may include at least one of the first load and / or the second load.

[0123] Exemplarily, the first server-side controller may be a left domain control unit (LDCU), and the second server-side controller may be a right domain control unit (RDCU). The left domain controller and the right domain controller are electronic controllers responsible for functional control of different areas of the vehicle, respectively, thereby controlling different loads.

[0124] See Figure 3 ,like Figure 3 The service test platform shown includes a server management module, a server management module and a server gateway; the server controller includes a first server controller and a second server controller.

[0125] It can be seen that Figure 3 The service testing platform shown is based on a real server controller and client controller, a server simulation control module and a client simulation control module, as well as a load module. The server simulation control module and the client simulation control module are used to virtually simulate the protocol data of the client and the server respectively, thereby realizing virtual clones of the data and improving the utilization and reuse rate of the test hardware resources. Moreover, the test service platform is built based on a real server controller, so that the test process can truly reflect the test scenario and improve the test accuracy.

[0126] Those skilled in the art will understand that Figure 3 The architecture shown in the figure is only a block diagram of part of the structure related to the solution of the present application, and does not constitute a limitation on the service testing platform on which the solution of the present application is applied. The specific service testing platform may include more or fewer modules than shown in the figure, or combine certain modules.

[0127] In some embodiments, when the target server control module sends a service request to the server management module, it is also necessary to determine whether the target load associated with the current service to be tested is occupied. If it is not occupied, the service request is sent to the server controller. Figure 3 as well as Figure 4 That is, the above step 302 can refer to the following steps 402 to 404.

[0128] See Figure 4 , Figure 4 This is a flow chart of another service testing method disclosed in the embodiment of this application. Figure 4 The method shown may include the following steps:

[0129] Step 401: The target client sends a service request to the target server control module. The service request is used to instruct to test the service to be tested.

[0130] Regarding the implementation of step 401, reference may be made to the content of the aforementioned step 201, which will not be repeated here.

[0131] Step 402: The target server control module sends a service request to the server management module.

[0132] In an embodiment of the present application, after receiving the service request sent by the target client, the target server control module sends the service request to the server management module, so that the server management module can determine whether the target load associated with the current service to be tested is occupied.

[0133] Step 403: When the target load is not occupied, the server management module sends a service request to the server controller.

[0134] In an embodiment of the present application, after the server-side management module receives the service request sent by the target server-side control module, the server-side management module reads the target load associated with the service to be tested from the service request and determines whether the target load is occupied. It can be understood that when the tester conducts testing based on the service testing platform provided by this application, some loads may be called in different test services, so it is necessary to judge the occupancy of the load. For example, for the seat heating function test and the air-conditioning system heating function test, it is necessary to control the operation of the thermal management module of the load module to complete the corresponding test service. Therefore, when the service request sent by the target client is a seat heating function test, it is necessary to determine whether the thermal management module is occupied to avoid test conflicts.

[0135] In some embodiments, the server-side management module determines the occupancy of the target load based on the load associated with other currently executing test services and the target load, where the other test services are requested by clients other than the target client through service requests from multiple clients. In this embodiment, the server-side management module can monitor the load associated with the other currently executing test services to determine whether the target load is the same as the load associated with the other test services. If the target load is not included in the load associated with the other test services, and the server-side management module determines that the target load is not occupied, the server-side management module sends the service request to the server-side controller to respond to the service request.

[0136] By adopting this implementation mode, the server management module can quickly and accurately determine whether the target load associated with the service to be tested is occupied by the load associated with other test services being executed, and can quickly send the service request to the server controller, which is conducive to improving the efficiency of subsequent service tests.

[0137] In some embodiments, if the server management module determines that the target load is occupied based on the load associated with other currently executing test services and the target load, the server management module will not issue a service request to the server controller until the target load is released. It should be noted that the target load being released means that no other test service is currently using the target load for testing.

[0138] Step 404: The server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0139] Regarding the implementation of step 404, reference may be made to the content of the aforementioned step 203, which will not be repeated here.

[0140] 405. The server controller sends the test data corresponding to the service to be tested to the target server control module through the server management module.

[0141] In an embodiment of the present application, after the server-side controller controls the operation of the target load in the load module associated with the service to be tested and completes the service to be tested, the server-side controller can send the test data corresponding to the service to be tested to the server-side management module, and then the server-side management module sends the test data corresponding to the service to be tested to the target server-side control module.

[0142] 406. The target server control module sends the test data corresponding to the service to be tested to the target client.

[0143] In an embodiment of the present application, after the target server-side control module receives the test data corresponding to the service to be tested sent by the server-side management module, the target server-side control module can send the test data corresponding to the service to be tested to the target client, so that the tester can analyze the service to be tested based on the test data of the service to be tested after obtaining the test data corresponding to the service to be tested on the target client.

[0144] It can be seen that, in the implementation of the embodiment of the present application, since the server simulation module includes multiple server control modules, the expansion of multiple server control modules is realized, so that each client can interact with the corresponding server control module, and each client and each server control module do not interfere with each other, that is, a single server controller is reused by multiple clients, and multiple test services are tested in parallel, which improves the hardware utilization and reuse rate of the service test; at the same time, the service test is completed based on the server controller. This real hardware controller can ensure that the test process is based on a real test scenario, which effectively improves the test accuracy. When the target server control module sends a service request to the server controller, it will judge the occupancy of the target load associated with the service to be tested through the server management module of the server. If the target load is not occupied, the service request will be sent to the server controller. That is to say, the service request will not be sent when it is occupied. Thus, time-sharing multiplexing of the test service is realized, and whether the load is occupied is judged, which is conducive to reducing unnecessary data transmission and saving data transmission resources.

[0145] In some embodiments, the target client can also determine whether the target load associated with the current service to be tested is occupied, that is, in the process of the target client sending a service request to the target server control module, the service request is sent to the target server control module only when it is determined that the target load is not occupied. Figure 3 and Figure 5 A detailed description is given, that is, the implementation of the above step 201 can refer to the following steps 501 to 502.

[0146] See Figure 5 , Figure 5 This is a flow chart of another service testing method disclosed in the embodiment of this application. Figure 5 The method shown may include the following steps:

[0147] Step 501: The target client controller corresponding to the target client sends a service request to the corresponding target client simulation module.

[0148] In the embodiment of the present application, each client includes a client simulation module and a client controller, that is, the target client includes a target client simulation module and a target client controller, then the target client can send a service request to the corresponding target client simulation module through the target client controller. For example, see Figure 3Assuming client 1 is the target client, the client controller corresponding to client 1 can issue a service request to the corresponding target client simulation module 1. Continuing with the example in step 201, after the tester selects the seat heating function test option through the client controller of client 1 in the vehicle (e.g., central domain controller 1), the client controller of client 1 can issue a service request to the corresponding client simulation module 1 (e.g., client application software 1).

[0149] Optionally, the target client controller corresponding to the target client sends a service request to the corresponding target client simulation module through the first interaction protocol.

[0150] Step 502: When the target load is not occupied, the target client simulation module sends a service request to the target server control module.

[0151] In an embodiment of the present application, after receiving a service request sent by a target client controller, the target client simulation module reads the target load associated with the service to be tested from the service request and determines whether the target load is occupied.

[0152] In some embodiments, the server-side management module sends load information to the target client simulation module corresponding to the target client via the target server control module. The load information is used to indicate the occupancy status of the load associated with other test services being executed. It is understood that the server-side management module can send the load information to each server-side control module, and each server-side control module then sends the load information to the corresponding client simulation module, so that each client simulation module can determine whether the target load associated with the service to be tested indicated by the service request is occupied after receiving the service request sent by the corresponding client controller.

[0153] In some embodiments, the target client simulation module sends a service request to the target server control module, including: the target client simulation module receives load information sent by the target server control module; and when it is determined that the target load is not occupied based on the occupancy status of the loads associated with other test services and the target load, the target client simulation module sends the service request to the target server control module. With this embodiment, the target client simulation module can quickly and accurately determine whether the target load associated with the service to be tested is occupied based on the load status of other test services being executed, and can quickly send the service request to the target server control module, which is conducive to improving the efficiency of subsequent service testing.

[0154] In some embodiments, if the target client simulation module determines that the target load is occupied based on the load associated with other test services being executed and the target load, the target client simulation module will not send a service request to the target server control module until the target load is released and then send the service request to the target server control module.

[0155] Step 503: The target server control module sends a service request to the server controller.

[0156] Step 504: The server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0157] For other implementations of steps 503 and 504 , reference may be made to the contents of the aforementioned embodiments, which will not be described in detail here.

[0158] It can be seen that, in the implementation of the embodiment of the present application, since the server simulation module includes multiple server control modules, the expansion of multiple server control modules is realized, so that each client can interact with the corresponding server control module, and each client and each server control module do not interfere with each other, that is, a single server controller is reused by multiple clients, and parallel testing of multiple test services is realized, which improves the hardware utilization and reuse rate of service testing; at the same time, the service test is completed based on the server controller. This real hardware controller can ensure that the test process is based on a real test scenario, which effectively improves the test accuracy. When the target client sends a service request to the target server control module, the target client simulation module of the target client will judge the occupancy of the target load associated with the service to be tested. If the target load is not occupied, the service request will be sent to the target server control module. That is to say, the service request will not be sent when it is occupied. Thus, time-sharing multiplexing of the test service is realized, and this method of judging whether the load is occupied at the client further reduces unnecessary data transmission and saves data transmission resources.

[0159] In some embodiments, after the service to be tested is completed, the server can feedback the service status information of the service to be tested to the target client. Figure 6 Detailed introduction.

[0160] See Figure 6 , Figure 6 This is a flow chart of another service testing method disclosed in the embodiment of this application. Figure 6 The method shown may include the following steps:

[0161] Step 601: The target client sends a service request to the target server control module. The service request is used to instruct to test the service to be tested.

[0162] Step 602: The target server control module sends a service request to the server controller.

[0163] Step 603: The server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0164] Regarding the implementation of steps 601 to 603 , reference may be made to the contents of the aforementioned embodiment, and no further details will be given here.

[0165] Step 604: After the service to be tested is completed, the server controller sends the service status information of the service to be tested to the server management module.

[0166] In an embodiment of the present application, the service status information is used to indicate that the service to be tested has completed the test. It can be understood that when the service to be tested is completed, the server-side controller will feedback the service status information of the service to be tested to the object that initiated the request for the service to be tested, so that the object that initiated the service request can promptly know the completion status of the service to be tested and release the target load corresponding to the service to be tested.

[0167] In some embodiments, after the server controller sends the service status information of the service to be tested to the server management module, in addition to knowing that the service to be tested has been completed, the current status of the service to be tested can also be updated by the server management module or the target server control module.

[0168] Mode 1: The server-side management module updates the current status of the service to be tested based on the service status information, and the updated current status of the service to be tested is used to indicate that the target load is not occupied. After receiving the service status information of the service to be tested sent by the server-side controller, the server-side management module can update the current status of the service to be tested, and the updated current status of the service to be tested can be marked by a preset identifier, thereby releasing the target load so that the server-side controller can respond to service requests for the target load issued by other clients except the target client. It can be understood that when the current status of the service to be tested is updated by the server-side management module, whether the load is occupied in the aforementioned embodiment can be determined by the server-side management module.

[0169] Method 2: The server management module sends service status information to the target server control module; the target server control module updates the current status of the service to be tested based on the service status information, and the updated current status of the service to be tested is used to indicate that the target load is not occupied; the target server control module sends information indicating the updated current status of the service to be tested to the target client. In addition to the above-mentioned method 1, after receiving the service status information of the service to be tested sent by the server controller, the server management module sends the service status information of the service to be tested to the target server control module, and the target server control module updates the current status of the service to be tested and sends the updated current status information of the service to be tested to the target client. It can be understood that the purpose of updating the current status of the service to be tested by the target server control module and sending the corresponding information to the target client is to determine the load occupancy status through the client. Therefore, in this case, in the aforementioned embodiment, whether the load is occupied can be determined by the client simulation module corresponding to the client.

[0170] By adopting the above-mentioned method 1 and method 2, the current status of the service to be tested can be updated through the server-side management module or the target server-side control module, so that the load occupancy can be reflected in real time and accurately, and unoccupied load resources can be quickly identified. This is conducive to making more accurate judgments in real time based on the latest load occupancy in the process of judging whether the load in each test service request is occupied, thereby improving the efficiency of responding to other test services and making it easier to use the load for other test tasks. This load release mechanism improves the utilization efficiency of the load and avoids load idleness and waste.

[0171] In some embodiments, the target server control module includes a service status table, the service status table including a current status corresponding to at least one test service, the service to be tested being one of the at least one test service. The target server control module updates the current status of the service to be tested based on the service status information, including: the target server control module updating the occupancy status of the target load associated with the service to be tested in the service status table to unoccupied. It will be appreciated that a service status table may be pre-set to record the current status corresponding to each test service, and when the current status of each test service is updated, the service status table may be updated to accomplish the update.

[0172] It can be seen that, in the implementation of the embodiment of the present application, since the server-side simulation module includes multiple server-side control modules, the expansion of multiple server-side control modules is realized, so that each client can interact with the corresponding server-side control module, and each client and each server-side control module do not interfere with each other, that is, a single server-side controller is reused by multiple clients, which realizes the parallel testing of multiple test services and improves the hardware utilization and reuse rate of service testing; at the same time, the service test is completed based on the server-side controller. This real hardware controller can ensure that the test process is based on the real test scenario, which effectively improves the test accuracy. After the service test is completed, the server-side controller can feed back the service status information of the service to be tested to the server-side management module, and can feed back the completion status of the service to be tested in real time. This real-time feedback mechanism makes the test process more transparent, improves the flexibility and efficiency of the test, and facilitates the monitoring and management of the service test.

[0173] According to the description of the above embodiments, the interaction between the client and the server during the service test has been basically understood. In some embodiments, before the target client sends a service request, it is necessary to connect the target client to the server. Figure 7 Detailed introduction.

[0174] See Figure 7 , Figure 7 This is a flow chart of another service testing method disclosed in the embodiment of this application. Figure 7 The method shown may include the following steps:

[0175] Step 701: The target client sends an access request to the server simulation module. The access request is used to request access to one of the multiple server control modules.

[0176] In the embodiment of the present application, before the client sends a service request, it is necessary to connect the client to the server of the service testing platform. Therefore, before the target client sends a service request, the target client can send an access request to the server simulation module, and the access request is used to request access to one of the multiple server control modules.

[0177] In some embodiments, the target client sends an access request to the server simulation module, including: the target client controller corresponding to the target client sends the access request to the server simulation module through the target client simulation module. For example, see Figure 3 The client controller of client 1 can send an access request to the client simulation module 1 through the first interactive protocol, and then the client simulation module 1 sends the access request to the server simulation module through the network interface, and the server simulation module configures the server control module 1 for the client 1 to complete the access.

[0178] Step 702: The server simulation module responds to the access request and connects the target client to the target server control module.

[0179] In an embodiment of the present application, after receiving the access request sent by the target client, the server simulation module can connect the target client to one of the multiple server control modules.

[0180] In some implementations, the server simulation module may connect the target client to any one of a plurality of server control modules.

[0181] It can be seen that when implementing the embodiments of the present application, the server-side simulation module can connect the target client to the target server-side control module after receiving the access request sent by the target client. That is to say, the server-side simulation module can centrally process access requests from multiple clients. This centralized management method simplifies the access process and improves the overall access efficiency. In addition, the client and the server-side control module interact indirectly through the server-side simulation module, reducing the complexity and potential errors of direct communication. This indirect interaction mechanism reduces the access risk and improves the reliability of the service testing platform.

[0182] In some embodiments, since the server simulation module includes multiple server control modules, the server simulation module can determine which server control module of the multiple server control modules to connect the target client to based on the client information currently connected in the multiple server control modules. Figure 8 Detailed introduction.

[0183] See Figure 8 , Figure 8 This is a flow chart of another service testing method disclosed in the embodiment of this application. Figure 8 The method shown may include the following steps:

[0184] Step 801: The target client sends an access request to the server simulation module. The access request is used to request access to one of the multiple server control modules.

[0185] Regarding the implementation of step 801, please refer to the content of the aforementioned step 701, which will not be repeated here.

[0186] Step 802: The server simulation module responds to the access request and connects the target client to the target server control module according to the information of the clients currently connected in the multiple server control modules.

[0187] In the embodiments of the present application, the client information is used to indicate whether a client is currently connected to the server simulation module, that is, to indicate whether a client is currently connected to multiple server control modules. It is understood that the server simulation module can monitor the number of clients connected to multiple server control modules. There can be one or more clients connected to multiple server control modules, and this application does not limit this.

[0188] In some embodiments, the multiple server-side control modules include a server-side master control module and at least one server-side slave control module. The server-side master control module transmits data with the server-side controller, while the server-side slave control module transmits data with the server-side controller via the server-side master control module. In this embodiment, by providing a server-side master control module and at least one server-side slave control module, the server-side master control module is responsible for directly transmitting data with the server-side controller, while the server-side slave control module does not directly transmit data with the server-side controller. This architecture can effectively reduce the number of communication links of the server-side controller, reduce communication complexity, and improve the overall processing capacity of the system.

[0189] For example, see Figure 1 The server simulation module includes multiple server control modules (server control module 1, server control module 2, ... server control module N), among which the server control module 1 can be set as the server master control module. Assuming that the client 1 is connected to the server control module 1, the client 1 can transmit data with the real server controller through the server control module 1; and the other server control modules 2, ... server control module N are server slave control modules. Assuming that the client 2 is connected to the server control module 2, the server control module 2 corresponding to the client 2 can transmit data with the server controller through the server control module 1.

[0190] It can be understood that the SOME / IP protocol data of the server control module 1 and the real server controller is mapped to the server control module 2.

[0191] It should be noted that those skilled in the art may also set the number of the server-side master control module and the server-side slave control module according to actual needs, and this application does not limit this.

[0192] It should be noted that the server-side main control module of the server-side simulation module is usually one, which can minimize the number of communication links of the server-side controller and reduce the transmission pressure of the server-side controller; and the number of server-side slave control modules can be one or more, which is not limited in this application.

[0193] In some embodiments, the server simulation module may connect the target client to the target server control module according to the information of the clients currently connected to the multiple server control modules in the following manner:

[0194] Method 1: The server simulation module connects a target client to a target server control module based on information about clients currently connected to multiple server control modules. This includes: if the client information indicates that no client is currently connected to the server simulation module, the server simulation module determines the server main control module as the target server control module and connects the target client to the server main control module. It will be understood that if no client is currently connected to the server simulation module, the target client is preferentially connected to the server main control module to enable interaction between the target client and the server main control module.

[0195] It can be understood that connecting the target client to the server main control module means connecting the target client simulation module to the server main control module.

[0196] Mode 2: When the client information indicates that a client is currently connected to the server simulation module, the server simulation module determines a target server slave control module in at least one server slave control module as the target server control module and connects the target client to the target server slave control module. It will be understood that when a client is already connected to the server simulation module, the target client is connected to any one of the server slave control modules (e.g., the target server slave control module) to enable the target client to interact with the server slave control module.

[0197] It can be understood that connecting the target client to the server slave control module means connecting the target client simulation module to the server slave control module.

[0198] By adopting the above-mentioned method 1 and method 2, when there is no client access, the target client is preferentially connected to the server main control module. When there is already a client access, the target client is connected to the server slave control module. This method can reasonably allocate client access according to the real-time access status of the server control module, thereby improving resource utilization.

[0199] In some embodiments, the access request includes a target test service to which the target client subscribes. In response to the access request, the server simulation module connects the target client to the target server control module. The target server control module then completes the subscription operation for the target test service based on at least one test service corresponding to the server controller and the target test service. In this embodiment, the server controller may send the corresponding at least one test service to the server simulation module. Upon detecting that the client has connected to the corresponding server control module, the server simulation module may pre-subscribe the client to one or more test services through the corresponding server control module.

[0200] Optionally, the server controller may send SOME / IP protocol service data corresponding to at least one test service to the server simulation module. Exemplarily, the SOME / IP protocol service data may include vehicle air conditioning service data, such as vehicle air conditioning behavior control service and vehicle air conditioning service tracking event group data; vehicle seat service data, such as vehicle seat control service and vehicle seat status tracking event group data; and vehicle window service data, such as vehicle window control service and vehicle window status tracking event group data.

[0201] By adopting this implementation mode, the target client can pre-subscribe to the target test service in the test service provided by the server controller when accessing the server, so that the configuration of the relevant test service can be completed before the service request is issued, so that the target client can enter the test state immediately after accessing the server. After the service request is subsequently initiated, the test time can be shortened and the test efficiency can be improved.

[0202] In some embodiments, after the target server control module completes the subscription operation of the target test service based on at least one test service corresponding to the server controller and the target test service, the target server control module can configure the corresponding port to transmit data with the target client through the corresponding port, that is, the target server control module transmits data with the target client simulation module through the corresponding port.

[0203] It can be seen that by implementing the embodiments of the present application, the server-side simulation module can dynamically allocate access requests of different clients based on the currently connected client information to ensure load balancing of each server-side control module. This access method can avoid overloading of a server-side control module in the server-side simulation module due to accessing too many clients, and can maintain efficient operation in high-concurrency scenarios, thereby improving overall performance and response speed.

[0204] It should be understood that, although the various steps in the above-mentioned flowcharts are displayed in sequence according to the instructions of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless clearly stated herein, the execution of these steps is not strictly restricted in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the above-mentioned flowcharts may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with at least a portion of other steps or sub-steps or stages of other steps. In addition, the above-mentioned multiple embodiments can be implemented independently or in combination with each other, and are not limited thereto.

[0205] Based on the aforementioned embodiment, the embodiment of the present application provides a server, which is applied to the service test platform in the aforementioned embodiment. The service test platform also includes multiple clients and load modules. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, each server control module corresponds to a client, and the multiple server control modules include a target server control module. The server includes the modules included and the units included in each module, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0206] See Figure 9 , Figure 9 This is a schematic diagram of the structure of a server disclosed in an embodiment of the present application. Figure 9 The server shown includes a target server control module 901 and a server controller 902 .

[0207] The target server control module 901 is used to receive a service request sent by a corresponding target client, where the service request is used to instruct to test the service to be tested;

[0208] The target server control module 901 is also used to send a service request to the server controller;

[0209] The server controller 902 is used to control the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0210] In some embodiments, the target server control module 901 is specifically used to send a service request to the server management module.

[0211] The server simulation module also includes a server management module;

[0212] The server management module is used to send service requests to the server controller when the target load is not occupied.

[0213] In some embodiments, the server management module is further used to determine the occupancy of the target load based on the load associated with other test services being executed and the target load. The other test services are indicated by service requests from clients other than the target client among multiple clients.

[0214] In some embodiments, the server simulation module further includes a server management module, each client includes a client simulation module, and each client simulation module is communicatively connected to a corresponding server control module;

[0215] The server management module is also used to send load information to the target client simulation module corresponding to the target client through the target server control module. The load information is used to indicate the occupancy status of the load associated with other test services being executed, so that the target client simulation module can send a service request to the target server control module based on the occupancy status of the load associated with other test services and the target load, when it determines that the target load is not occupied.

[0216] In some embodiments, the server controller 902 is further configured to send service status information of the service to be tested to the server management module after the service to be tested is completed, where the service status information is used to indicate that the service to be tested has completed testing.

[0217] In some embodiments, the server management module is further configured to update the current state of the service to be tested according to the service state information, and the updated current state of the service to be tested is used to indicate that the target load is not occupied; or

[0218] The server management module sends service status information to the target server control module; the target server control module updates the current status of the service to be tested based on the service status information, and the updated current status of the service to be tested is used to indicate that the target load is not occupied; the target server control module sends information indicating the updated current status of the service to be tested to the target client.

[0219] In some embodiments, the server simulation module is used to receive an access request sent by the target client, where the access request is used to request access to one of multiple server control modules; in response to the access request, the server simulation module connects the target client to the target server control module.

[0220] In some embodiments, the server simulation module is specifically used to:

[0221] In response to the access request, the server simulation module connects the target client to the target server control module according to the client information currently connected in multiple server control modules. The client information is used to indicate whether there is a client currently connected to the server simulation module.

[0222] In some embodiments, the plurality of server-side control modules include a server-side master control module and at least one server-side slave control module, the server-side master control module performs data transmission with the server-side controller, and the server-side slave control module performs data transmission with the server-side controller via the server-side master control module;

[0223] The server simulation module is also used for:

[0224] When the client information indicates that there is currently no client connected to the server simulation module, the server simulation module determines the server main control module as the target server control module and connects the target client to the server main control module; or, when the client information indicates that there is currently a client connected to the server simulation module, the server simulation module determines the target server slave control module in at least one server slave control module as the target server control module, and connects the target client to the target server slave control module.

[0225] In some embodiments, the access request includes a target test service to which the target client subscribes;

[0226] The target server control module 901 is further configured to complete a subscription operation for the target test service according to at least one test service corresponding to the server controller and the target test service.

[0227] Based on the aforementioned embodiment, the embodiment of the present application provides a client, which is applied to the service test platform in the aforementioned embodiment. The service test platform also includes a server and a load module. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, and each server control module corresponds to a client. The client includes the modules included and the units included in each module, which can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.

[0228] See Figure 10 , Figure 10 This is a schematic diagram of the structure of a client disclosed in an embodiment of the present application. Figure 10 The clients shown include client 1001 .

[0229] The client 1001 is configured to send a service request to a target server control module among the multiple server control modules. The service request is used to instruct to test the service to be tested, so that the target server control module sends the service request to the server controller, so that the server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

[0230] The client 1001 is further configured to receive test data corresponding to the service to be tested sent by the target server control module.

[0231] In some embodiments, each client includes a client simulation module and a client controller, and each client simulation module is communicatively connected to a corresponding server control module;

[0232] The client 1001 is specifically used to: send a service request to the corresponding target client simulation module through the corresponding target client controller; and send a service request to the target server control module through the target client simulation module when the target load is not occupied.

[0233] In some embodiments, the client 1001 is further configured to:

[0234] The target client simulation module receives the load information sent by the target server control module, and the load information is used to indicate the occupancy status of the load associated with other test services being executed; based on the occupancy status of the load associated with other test services and the target load, if it is determined that the target load is not occupied, the target client simulation module sends a service request to the target server control module.

[0235] An embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, part or all of the steps in any one of the service testing methods provided in the above embodiments are implemented.

[0236] An embodiment of the present application also provides a computer program product, including a computer program, which, when executed by a processor, implements part or all of the steps in any one of the service testing methods provided in the above embodiments.

[0237] Those skilled in the art will understand that Figure 9 and Figure 10 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server and client to which the solution of the present application is applied. The specific server and client may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.

[0238] It should be noted that the descriptions of the server, client, computer-readable storage medium, and computer program product embodiments described above are similar to the descriptions of the method embodiments described above and have similar beneficial effects as the method embodiments. For technical details not disclosed in the server, client, computer-readable storage medium, and computer program product embodiments of this application, please refer to the descriptions of the method embodiments of this application for understanding.

[0239] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that the specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in an embodiment" or "in some embodiments" appearing throughout the specification do not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in the various embodiments of the present application, the size of the serial numbers of the above-mentioned processes does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application. The above-mentioned serial numbers of the embodiments of the present application are for description only and do not represent the advantages and disadvantages of the embodiments. The above description of the various embodiments tends to emphasize the differences between the various embodiments. The same or similar aspects can be referenced to each other. For the sake of brevity, they will not be repeated here.

[0240] The term "and / or" in this article is only a description of the association relationship between associated objects, indicating that there can be three relationships. For example, object A and / or object B can mean: object A exists alone, object A and object B exist at the same time, and object B exists alone.

[0241] It should be noted that, in this document, the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a series of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or apparatus comprising the element.

[0242] In the several embodiments provided in this application, it should be understood that the disclosed methods, devices and vehicles can be implemented in other ways. The embodiments described above are merely illustrative. For example, the division of the modules above is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.

[0243] Those skilled in the art will understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above-mentioned method embodiments; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, and other media that can store program codes.

[0244] The methods disclosed in the several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.

[0245] The above is merely an embodiment of the present application, but the scope of protection of the present application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.

Claims

1. A service testing method, characterized in that: The server is applied to a service testing platform, the service testing platform further comprising a plurality of clients and a load module, the server comprising a server controller and a server simulation module, the server simulation module comprising a plurality of server control modules, each server control module corresponding to a client, the method comprising: A target server control module among the multiple server control modules receives a service request sent by a corresponding target client, wherein the service request is used to instruct to test the service to be tested; The target server control module sends the service request to the server controller; The server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

2. The method according to claim 1, characterized in that The server simulation module further includes a server management module, and the target server control module sends the service request to the server controller, including: The target server control module sends the service request to the server management module; When the target load is not occupied, the server management module sends the service request to the server controller.

3. The method according to claim 2, characterized in that The method further comprises: The server management module determines the occupancy of the target load according to the load associated with other test services being executed and the target load, wherein the other test services are indicated by service requests from clients other than the target client among the multiple clients.

4. The method according to claim 1, wherein The server simulation module further includes a server management module, each client includes a client simulation module, and each client simulation module is communicatively connected to a corresponding server control module. The method further includes: The server-side management module sends load information to the target client simulation module corresponding to the target client through the target server-side control module. The load information is used to indicate the occupancy status of the load associated with other test services being executed, so that the target client simulation module determines that the target load is not occupied based on the occupancy status of the load associated with other test services and the target load, and then sends the service request to the target server-side control module.

5. The method according to any one of claims 2 to 4, characterized in that The method further comprises: After the service to be tested is completed, the server controller sends service status information of the service to be tested to the server management module, where the service status information is used to indicate that the service to be tested has completed testing.

6. The method according to claim 5, characterized in that The method further comprises: The server management module updates the current state of the service to be tested according to the service state information, and the updated current state of the service to be tested is used to indicate that the target load is not occupied; or The server management module sends the service status information to the target server control module; The target server control module updates the current state of the service to be tested according to the service state information, and the updated current state of the service to be tested is used to indicate that the target load is not occupied; The target server control module sends information indicating the updated current status of the service to be tested to the target client.

7. The method according to claim 1, characterized in that The method further comprises: The server simulation module receives an access request sent by the target client, where the access request is used to request access to one of the multiple server control modules; In response to the access request, the server simulation module connects the target client to the target server control module.

8. The method according to claim 7, characterized in that In response to the access request, the server simulation module connects the target client to the target server control module, including: In response to the access request, the server simulation module connects the target client to the target server control module according to the client information currently connected in the multiple server control modules, and the client information is used to indicate whether there is a client currently connected to the server simulation module.

9. The method according to claim 8, characterized in that The multiple server-side control modules include a server-side master control module and at least one server-side slave control module, the server-side master control module performs data transmission with the server-side controller, and the server-side slave control module performs data transmission with the server-side controller via the server-side master control module. The server-side simulation module connects the target client to the target server-side control module based on information of the client currently connected in the multiple server-side control modules, including: When the client information indicates that no client is currently connected to the server simulation module, the server simulation module determines the server main control module as the target server control module and connects the target client to the server main control module; or When the client information indicates that a client is currently connected to the server simulation module, the server simulation module determines the target server slave control module in the at least one server slave control module as the target server control module, and connects the target client to the target server slave control module.

10. The method according to claim 9, characterized in that The access request includes a target test service subscribed by the target client. After the server simulation module connects the target client to the target server control module in response to the access request, the method further includes: The target server control module completes a subscription operation for the target test service according to at least one test service corresponding to the server controller and the target test service.

11. A service testing method, characterized in that: A target client applied to multiple clients in a service testing platform, the service testing platform further comprising a server and a load module, the server comprising a server controller and a server simulation module, the server simulation module comprising multiple server control modules, each server control module corresponding to one client, the method comprising: The target client sends a service request to a target server control module among the multiple server control modules, wherein the service request is used to instruct to test the service to be tested, so that the target server control module sends the service request to the server controller, so that the server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested; Receive test data corresponding to the service to be tested sent by the target server control module.

12. The method according to claim 11, characterized in that Each client includes a client simulation module and a client controller, each client simulation module is in communication with a corresponding server control module, and the target client sends a service request to a target server control module among the multiple server control modules, including: The target client controller corresponding to the target client sends the service request to the corresponding target client simulation module; When the target load is not occupied, the target client simulation module sends the service request to the target server control module.

13. The method according to claim 12, characterized in that When the target load is not occupied, the target client simulation module sends the service request to the target server control module, including: The target client simulation module receives the load information sent by the target server control module, where the load information is used to indicate the occupancy of the load associated with other test services being executed; According to the occupancy status of the load associated with the other test services and the target load, when it is determined that the target load is not occupied, the target client simulation module sends the service request to the target server control module.

14. A service testing platform, characterized in that: The service testing platform includes a server, multiple clients and a load module. The server includes a server controller and a server simulation module. The server simulation module includes multiple server control modules, each server control module corresponds to a client. A target client among the multiple clients sends a service request to a target server control module among the multiple server control modules, wherein the service request is used to instruct to test the service to be tested; The target server control module sends the service request to the server controller; The server controller controls the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

15. A server, characterized in that: Applied to a service testing platform, the service testing platform further includes multiple clients and load modules, the server includes a server controller and a server simulation module, the server simulation module includes multiple server control modules, each server control module corresponds to a client, and the multiple server control modules include a target server control module, wherein: The target server control module is configured to receive a service request sent by a corresponding target client, wherein the service request is used to instruct to test the service to be tested; The target server control module is further configured to send the service request to the server controller; The server-side controller is configured to control the target load in the load module associated with the service to be tested to run according to the service request, so as to execute the service to be tested.

16. A client, characterized in that: Applied to a service testing platform, the service testing platform also includes a server and a load module, the server includes a server controller and a server simulation module, the server simulation module includes multiple server control modules, each server control module corresponds to a client, wherein: The client is configured to send a service request to a target server control module among the multiple server control modules, wherein the service request is used to instruct to test the service to be tested, so as to send the service request to the server controller through the target server control module, so that the server controller controls the operation of the target load in the load module associated with the service to be tested according to the service request, so as to execute the service to be tested; The client is further configured to receive test data corresponding to the service to be tested sent by the target server control module.

17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 10 or 11 to 13 is implemented.

18. A computer program product, characterized in that The invention comprises a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 10 or 11 to 13 is implemented.