CN117056201A - Intelligent cabin testing method, device and medium - Google Patents
Intelligent cabin testing method, device and medium Download PDFInfo
- Publication number
- CN117056201A CN117056201A CN202310826931.6A CN202310826931A CN117056201A CN 117056201 A CN117056201 A CN 117056201A CN 202310826931 A CN202310826931 A CN 202310826931A CN 117056201 A CN117056201 A CN 117056201A
- Authority
- CN
- China
- Prior art keywords
- test
- task
- subtask
- candidate
- test device
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000012360 testing method Methods 0.000 title claims abstract description 545
- 238000000034 method Methods 0.000 claims abstract description 44
- 238000004891 communication Methods 0.000 claims abstract description 23
- 238000000354 decomposition reaction Methods 0.000 claims abstract description 12
- 238000003860 storage Methods 0.000 claims description 15
- 238000012216 screening Methods 0.000 claims description 7
- 238000010998 test method Methods 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 description 18
- 230000015654 memory Effects 0.000 description 17
- 230000006870 function Effects 0.000 description 11
- 238000012545 processing Methods 0.000 description 11
- 230000008569 process Effects 0.000 description 6
- 238000004458 analytical method Methods 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 5
- 238000010586 diagram Methods 0.000 description 5
- 238000001514 detection method Methods 0.000 description 4
- 238000002955 isolation Methods 0.000 description 4
- 238000013515 script Methods 0.000 description 4
- 238000004590 computer program Methods 0.000 description 3
- 230000000694 effects Effects 0.000 description 3
- 230000003993 interaction Effects 0.000 description 3
- 230000002093 peripheral effect Effects 0.000 description 3
- 230000004044 response Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 230000010354 integration Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000011664 signaling Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000006978 adaptation Effects 0.000 description 1
- 238000013473 artificial intelligence Methods 0.000 description 1
- 230000036760 body temperature Effects 0.000 description 1
- 238000004364 calculation method Methods 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 230000008909 emotion recognition Effects 0.000 description 1
- 230000004927 fusion Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000008447 perception Effects 0.000 description 1
- 230000000750 progressive effect Effects 0.000 description 1
- 230000001737 promoting effect Effects 0.000 description 1
- 230000000306 recurrent effect Effects 0.000 description 1
- 238000011160 research Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3684—Test management for test design, e.g. generating new test cases
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/3668—Software testing
- G06F11/3672—Test management
- G06F11/3688—Test management for test execution, e.g. scheduling of test suites
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Quality & Reliability (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses an intelligent cabin testing method, device and medium, relating to the field of intelligent cabins, wherein the method comprises the following steps: acquiring a global test task sent by a cloud under the condition that the current resource occupation information of a target server meets a first preset idle condition; decomposing the global test task to obtain at least one test subtask; determining at least one candidate test device from a test device set in communication connection with a target server; determining a task allocation relation between at least one test subtask and at least one candidate test device based on the data channel type corresponding to each test subtask; based on the task allocation relation, the at least one test subtask is correspondingly sent to at least one candidate test device, so that the at least one candidate test device performs a test on the intelligent cabin. The intelligent cabin test system and the intelligent cabin test method can effectively improve the execution efficiency of intelligent cabin tests through the selection of the service end and the test equipment and the decomposition and distribution of tasks.
Description
Technical Field
The application relates to the field of intelligent cabins, in particular to an intelligent cabin testing method, an intelligent cabin testing device and a medium.
Background
With the development of technology, intelligent cabins have presented the following development trends: integration of a large number of intelligent components, application of large-size high-definition screens, application of multimode interaction technology and the like. Under the conditions of information fusion, linkage complexity, application ecology enrichment, great improvement of software design complexity and acceleration of updating iteration speed, the test requirement is also improved.
The related technology mainly takes manual testing as a main part, consumes a great deal of time and labor, has low execution efficiency, and has the problems of missing the recurrent problem, poor process consistency and the like; the automation test level in the related technology is low, the automation degree is low, the automation test activities are distributed, the execution efficiency is low, and the current automation test method is difficult to meet the requirement of testing a complex intelligent cabin.
Disclosure of Invention
In order to improve the execution efficiency of intelligent cabin test, the application provides an intelligent cabin test method, an intelligent cabin test device and an intelligent cabin test medium. The technical scheme is as follows:
in a first aspect, the present application provides an intelligent cabin testing method, applied to a target server, the method comprising:
acquiring a global test task sent by a cloud under the condition that the current resource occupation information of the target server meets a first preset idle condition;
Decomposing the global test task to obtain at least one test subtask;
determining at least one candidate test device from a test device set in communication connection with the target server, each candidate test device being in communication connection with the intelligent cabin based on a plurality of data channels;
determining a task allocation relation between the at least one test subtask and the at least one candidate test device based on the data channel type corresponding to each test subtask;
and correspondingly transmitting the at least one test subtask to the at least one candidate test device based on the task allocation relation so that the at least one candidate test device performs a test on the intelligent cabin.
Optionally, the determining at least one candidate test device from the test device set communicatively connected to the target server includes:
acquiring current resource occupation information of at least one test device in the test device set, wherein each test device is in communication connection with the target server;
and screening the test equipment based on the second preset idle condition and the current resource occupation information of the at least one test equipment to obtain the at least one candidate test equipment.
Optionally, the global test task includes at least one test case, and the decomposing the global test task to obtain at least one test subtask includes:
and decomposing the global test task according to the test object corresponding to the at least one test instance, the test index corresponding to the at least one test instance or the logic execution sequence among the at least one test instance to obtain the at least one test subtask.
Optionally, the decomposing the global test task to obtain at least one test subtask further includes:
determining device number information and device type information of the at least one candidate test device;
and decomposing the global test task according to the equipment quantity information and the equipment type information to obtain at least one test subtask.
Optionally, the determining, based on the data channel type corresponding to each test subtask, a task allocation relationship between the at least one test subtask and the at least one candidate test device includes:
acquiring current data channel occupation information of each candidate test device;
And determining the task allocation relation based on the data channel type corresponding to each test subtask and the current data channel occupation information of each candidate test device.
Optionally, based on the task allocation relationship, sending the at least one test subtask to the at least one candidate test device correspondingly, including:
determining at least one target test device based on the task allocation relationship, wherein the at least one target test device is part or all of the at least one candidate test device;
based on the task allocation relation, the at least one test subtask is correspondingly sent to the at least one target test device; the task allocation relation characterizes a one-to-one or one-to-many correspondence between the test subtasks and the target test equipment.
Optionally, the method further comprises:
generating sub-task execution sequence information according to the at least one test sub-task;
and sending the subtask execution sequence information to each candidate test device so that each candidate test device can execute the at least one test subtask in parallel or execute the at least one test subtask in sequence according to the subtask execution sequence information.
Optionally, the method further comprises:
acquiring at least one piece of test feedback information sent by the at least one candidate test device, wherein the at least one piece of test feedback information corresponds to the at least one test subtask one by one;
generating test result information corresponding to the global test task according to the at least one test feedback information;
and sending the test result information to the cloud end so that a user can remotely check the test result information.
In a second aspect, the present application provides an intelligent cabin testing device, applied to a target server, the device comprising:
the task acquisition module is used for acquiring a global test task sent by the cloud under the condition that the current resource occupation information of the target server meets a first preset idle condition;
the task decomposition module is used for decomposing the global test task to obtain at least one test subtask;
the device selection module is used for determining at least one candidate test device from a test device set in communication connection with the target server, and each candidate test device is in communication connection with the intelligent cabin based on a multi-data channel function;
The task allocation relation determining module is used for determining the task allocation relation between the at least one test subtask and the at least one candidate test device based on the data channel type corresponding to each test subtask;
and the task distribution module is used for correspondingly transmitting the at least one test subtask to the at least one candidate test device based on the task distribution relation so as to enable the at least one candidate test device to execute a test on the intelligent cabin.
In a third aspect, the present application provides a computer readable storage medium having stored therein at least one instruction or at least one program loaded and executed by a processor to implement a method of intelligent cockpit testing according to the first aspect.
In a fourth aspect, the present application provides a computer device comprising a processor and a memory having stored therein at least one instruction or at least one program loaded and executed by the processor to implement a method of intelligent cockpit testing according to the first aspect.
In a fifth aspect, the present application provides a computer program product comprising computer instructions which, when executed by a processor, implement a method of intelligent cabin testing as described in the first aspect.
The intelligent cabin testing method, the intelligent cabin testing device and the intelligent cabin testing medium provided by the application have the following technical effects:
the scheme provided by the application is that under the condition that the current resource occupation information of the target server side meets a first preset idle condition, a global test task sent by a cloud is obtained, and the global test task is decomposed to obtain at least one test subtask; determining at least one candidate test device from a test device set in communication connection with the target server; the target server determines a task allocation relation between at least one test subtask and at least one candidate test device according to the data channel type corresponding to each test subtask, so that the at least one test subtask can be correspondingly sent to the at least one candidate test device based on the task allocation relation to execute a test on the intelligent cabin. The scheme provided by the application is a remote automatic test scheme realized based on a cloud-server-test equipment-intelligent cabin architecture, a proper target server can be selected to issue a global test task according to the current resource occupation condition of the server, and the target server selects available candidate test equipment from a test equipment set connected with the target server to issue and execute a test subtask, so that the waiting time from cloud generation of the whole test task to intelligent cabin execution is shortened, and the test execution efficiency is improved; according to the scheme provided by the application, the global test task is subjected to task decomposition at the target server, and the decomposed test subtasks are distributed to the proper candidate test equipment according to the corresponding data channel types, so that the data isolation of the test subtasks is realized, the waiting time caused by the congestion of the data channels is reduced, and the execution efficiency of the test can be further improved.
Additional aspects and advantages of the application will be set forth in part in the description which follows, and in part will be obvious from the description, or may be learned by practice of the application.
Drawings
In order to more clearly illustrate the embodiments of the application or the technical solutions and advantages of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are only some embodiments of the application, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of an implementation environment of an intelligent cabin testing method according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an intelligent cabin testing method according to an embodiment of the present application;
FIG. 3 is a schematic flow chart of task decomposition provided by an embodiment of the present application;
FIG. 4 is a schematic flow chart of screening test equipment according to an embodiment of the present application;
FIG. 5 is a schematic diagram of an intelligent cabin test device according to an embodiment of the present application;
fig. 6 is a schematic hardware structure of an apparatus for implementing an intelligent cabin testing method according to an embodiment of the present application.
Detailed Description
In order to improve test execution efficiency, the embodiment of the application provides an intelligent cabin test method, an intelligent cabin test device and an intelligent cabin test medium. The following description of the embodiments of the present application will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application. Examples of the embodiments are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to like or similar elements throughout or elements having like or similar functionality.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that the embodiments of the application described herein may be implemented in sequences other than those illustrated or otherwise described herein. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or server that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed or inherent to such process, method, article, or apparatus, but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In order to facilitate understanding of the technical solution and the technical effects thereof described in the embodiments of the present application, the embodiments of the present application explain related terms:
intelligent cabin: intelligent Capin aims at integrating various information technologies and artificial intelligence technologies, creating a brand new in-vehicle integrated digital platform, providing intelligent experience for drivers and promoting driving safety. At present, many researches have been carried out at home and abroad, such as installing cameras on AB posts and rearview mirrors of vehicles, and providing emotion recognition, age detection, legacy detection, safety belt detection and the like.
Referring to fig. 1, which is a schematic diagram of an implementation environment of an intelligent cabin testing method according to an embodiment of the present application, as shown in fig. 1, the implementation environment may at least include a cloud platform, a target server, a candidate testing device, and an intelligent cabin.
The cloud platform may adopt a Browser-Server (Browser-Server) architecture to manage login of multiple users and sharing of test resources, and the test resources may include, but are not limited to, a test system, test equipment, test scripts and the like of a local Server. The cloud platform can be connected with a plurality of test systems and a plurality of test devices of the local server through a network, so that the issuing and execution of the test are realized. Specifically, a user can remotely create a test task through a cloud platform, and the cloud platform selects a target server with highest idle degree to issue the test task by acquiring occupation conditions of CPUs, memories and the like of a plurality of local servers. After the test task is created and issued, a user can remotely check the progress of the test task, the test result, the test report and the like on the cloud platform.
The local target Server adopts a Server-Client (Client-Server) architecture, the architecture has the characteristics of high response speed and high safety, the target Server is connected with a cloud platform through a network to realize interaction with the cloud, and the target Server can specifically execute: and responding to the issued test task to decompose the task, issuing the decomposed test subtask, inquiring the progress of the test subtask in real time, feeding back the test result to the cloud, and the like. The local target server is connected with a plurality of test devices through a network, and the test devices are portable small-sized devices, so that test tasks can be decomposed into a plurality of available candidate test devices in the plurality of test devices for execution. The target server side is provided with a test system, and can also be responsible for the functions of system management, system configuration, function test, report analysis, peripheral extension, compiling environment, remote monitoring and the like.
The candidate test equipment is connected to the test system of the target server through a network, and is tested and executed according to the distributed test subtasks, and the candidate test equipment communicates with the vehicle in the tested intelligent cabin and other expansion peripherals through a vehicle-mounted communication network such as CAN (controller ra network), etherCAT (ethernet control automation technology), LVDS (low voltage differential signaling, which is a high-speed point-to-point application communication standard) or other hard wire modes, or wireless connection modes such as bluetooth and Wifi. The candidate test equipment collects test execution information and test result information and transmits the test execution information and the test result information back to the target server for test result analysis.
The embodiment of the application can also be realized by combining cloud technology, wherein the cloud technology (Cloudtechnology) refers to a hosting technology for integrating hardware, software, network and other series resources in a wide area network or a local area network to realize calculation, storage, processing and sharing of data, and can also be understood as the general term of network technology, information technology, integration technology, management platform technology, application technology and the like applied based on a cloud computing business mode. Cloud technology requires cloud computing as a support. Cloud computing is a computing model that distributes computing tasks over a large number of computer-made resource pools, enabling various application systems to acquire computing power, storage space, and information services as needed. The network that provides the resources is referred to as the "cloud". Specifically, the cloud platform is located at the cloud, and the cloud platform may be a physical machine or a virtualized machine.
The application provides an intelligent cabin testing method. Fig. 2 is a flow chart of a method for intelligent cockpit testing provided by an embodiment of the present application, which provides the method operational steps as described in the examples or flow charts, but may include more or fewer operational steps based on conventional or non-inventive labor. The order of steps recited in the embodiments is merely one way of performing the order of steps and does not represent a unique order of execution. When implemented in a real system or server product, the methods illustrated in the embodiments or figures may be performed sequentially or in parallel (e.g., in a parallel processor or multithreaded environment). Referring to fig. 2, the method for testing the intelligent cabin provided by the embodiment of the application is applied to a target server, and the method can include the following steps:
S210: and under the condition that the current resource occupation information of the target server side meets a first preset idle condition, acquiring a global test task sent by the cloud.
In the embodiment of the application, referring to the implementation environment schematic diagram shown in fig. 1, a user can remotely write a script of a global test task on a cloud platform, and the global test task can be a script containing all function interfaces of an intelligent cabin.
In the embodiment of the application, the target server is used as a main execution main body of the test task and is mainly responsible for acquiring the global test task issued by the cloud and issuing the decomposed global test task to the available test equipment; and the target server is also responsible for receiving the test execution information and the test result information returned by the test equipment and carrying out test analysis locally, and can also return the test execution information, the test result information or the test analysis information to the cloud for the user to check.
In the embodiment of the present application, the current resource occupation information represents a current occupied condition of a service resource of the target service end, where the service resource may include, but is not limited to, a central processing unit, a memory, a hard disk storage space, an Input/Output (IO) throughput, an IO response time, and the like, and the current resource occupation information may indicate a busy idle state of the target service end. In the case that a plurality of service ends exist, in order to reduce the execution waiting time of the global test task, the service end with the current resource occupation condition meeting the first preset idle condition is preferentially selected as a target service end, so that the test is efficiently executed. The first preset idle condition may define an upper limit of a resource occupation condition, for example, the upper limit may be represented by a certain resource occupation rate, the higher the resource occupation rate is, the more busy the server is, and the current resource occupation condition is lower than the upper limit of the resource occupation condition, so as to satisfy the first preset idle condition.
S220: and decomposing the global test task to obtain at least one test subtask.
In the embodiment of the application, the target server can dynamically and adaptively decompose the global test task to obtain at least one test subtask so as to improve the executed efficiency of each test subtask. The test sub-tasks may consist of minimal unit test cases, which may also be referred to herein as instances, that perform the test.
In one possible implementation, the global test task includes at least one test case, and step S220 may include:
s221: and decomposing the global test task according to the test object corresponding to the at least one test instance, the test index corresponding to the at least one test instance or the logic execution sequence among the at least one test instance to obtain at least one test subtask.
The test object corresponding to the test instance can be a functional interface class object of the intelligent cabin; the test indexes corresponding to the test examples can be subdivision indexes in vehicle control types, environment perception types, in-vehicle living body detection types, man-machine interaction types and the like, such as steering angles, rainfall, human body temperature, voice recognition accuracy and the like; the logic execution sequence corresponding to the at least one test case indicates that a plurality of test cases have logic association relation, for example, for a scene test under a vehicle driving environment, the logic execution sequence can include a plurality of test cases for different functional interfaces, and the actual execution logic sequence of the plurality of test cases is related to the change of an environment scene.
Wherein each test sub-task may include at least one test case, and one test case may be divided into a plurality of test sub-tasks.
In the embodiment, the global test task is automatically decomposed from the attribute of the global test task, so that the cost of manually writing each function test script is reduced, the degree of automation of the test is improved, and meanwhile, the test can be executed without missing each function, and the test coverage rate is improved.
In another possible embodiment, as shown in fig. 3, step S220 may be further implemented as:
s222: device quantity information and device type information for at least one candidate test device are determined.
The candidate test equipment is the candidate test equipment in the step S230, that is, in the embodiment of the present application, the execution sequence of the step S220 and the step S230 may be interchanged, at least one available candidate test equipment is determined first, and then dynamic decomposition of the global test task is performed according to the equipment information of the at least one candidate test equipment.
The device number information characterizes the number of at least one candidate test device, the device type information indicates the type of each candidate test device, and the test device may be classified according to a transmissible data channel, an information carrier (such as a signal, a picture, audio, etc.), or a connection interface with a smart cabin, etc.
S223: and decomposing the global test task according to the equipment quantity information and the equipment type information to obtain at least one test subtask.
The method comprises the steps that a global test task is decomposed according to equipment quantity information and equipment type information, the quantity of obtained test subtasks can not exceed the quantity of candidate test equipment, in this case, each test subtask can be immediately executed when being issued to the corresponding candidate test equipment, the quantity of obtained test subtasks can exceed the quantity of the candidate test equipment, and accordingly the execution waiting time of the test subtasks can be increased; in addition, for each test subtask, there is at least one candidate test device that can meet the requirements of the data communication type of the test subtask.
In the above embodiment, from the perspective of available candidate test equipment, the global test task is adaptively decomposed, so that the decomposed test subtasks can be maximally ensured to be efficiently executed, and the execution efficiency of the whole test is improved.
S230: at least one candidate test device is determined from a set of test devices communicatively coupled to the target server, each candidate test device communicatively coupled to the intelligent cockpit based on the data channel.
In the embodiment of the application, the test equipment in the test equipment set is connected with the test system of the target server through a network, and the test equipment is communicated with the vehicle and other expansion peripherals in the intelligent cabin to be tested through a vehicle-mounted communication network such as CAN (controller area network), etherCAT (Ethernet Automation technology), LVDS (low voltage differential signal, a high-speed point-to-point application communication standard) or other hard wire modes, or wireless connection modes such as Bluetooth, wifi and the like. The test equipment can be portable small-sized equipment, has the greatest characteristics of portability and independence (namely higher adaptation degree), has a common multi-channel function of an integrated cabin, supports parallelism, and can execute test subtasks by using a plurality of test equipment connected with a target server according to actual test requirements.
In the embodiment of the application, at least one candidate test device can be determined from the test device set according to the idle busy degree of the test device, so that the current state of each candidate test device is enough to meet the execution requirement of the test subtask. Specifically, as shown in fig. 4, step S230 may be implemented as:
S231: and acquiring current resource occupation information of at least one test device in the test device set, wherein each test device is in communication connection with the target server.
The current resource occupation information of at least one test device characterizes the current occupied condition of service resources of each test device, wherein the service resources can include, but are not limited to, a processor, a memory, a storage, IO throughput, IO response time and the like, and the current resource occupation information of at least one test device can indicate idle busy states of each test device.
S232: and screening the test equipment based on the second preset idle condition and the current resource occupation information of the at least one test equipment to obtain at least one candidate test equipment.
In the case that a plurality of test devices exist, in order to reduce the execution waiting time of the test subtasks, the test device with the current resource occupation condition meeting the second preset idle condition is preferentially selected as the test device, so that the test is efficiently executed. The second preset idle condition may define an upper limit of a resource occupation condition, for example, the upper limit may be represented by a certain resource occupation rate, the higher the resource occupation rate is, the more busy the test device is, and the current resource occupation condition is lower than the upper limit of the resource occupation condition, so that the second preset idle condition is satisfied.
In the above embodiment, at least one candidate test device may be determined from the test device set according to the idle degree of the test device, where the current state of each candidate test device is sufficient to meet the execution requirement of the test subtasks, and each test subtask may be executed more efficiently.
S240: and determining a task allocation relation between at least one test subtask and at least one candidate test device based on the data channel type corresponding to each test subtask.
In the embodiment of the application, the task allocation relation between at least one test subtask and at least one candidate test device is determined according to the corresponding data channel type, the test subtask only corresponds to one candidate test device, the candidate test device allocated with the test subtask can execute one or more test subtasks, data isolation can be realized among a plurality of test subtasks executed by the same candidate test device through different data channels, the waiting time caused by congestion of the data channels is reduced when the test subtask is issued and executed, and the execution efficiency of the test can be further improved. In the embodiment of the application, there may also be candidate test equipment that is not assigned a test subtask.
In an embodiment of the present application, the data channel types include, but are not limited to: CAN (ControllerArea Network ) bus channels, LIN (local interconnect network) bus channels, etherCAT (ethernet control automation technology) channels, LVDS (low voltage differential signaling, a high speed point-to-point application communication standard) channels, or wireless channels such as bluetooth, wifi.
In one embodiment of the present application, specifically, step S240 may include:
s241: and acquiring the current data channel occupation information of each candidate test device.
The current data channel occupation information characterizes whether each data channel of the candidate test equipment is currently in the information transmission process.
S242: and determining a task allocation relation based on the data channel type corresponding to each test subtask and the current data channel occupation information of each candidate test device.
For example, if the data channel type corresponding to the test subtask is a, the data channel a in the matched candidate test device is currently in an idle state.
In the above embodiment, the allocation relationship between the test subtask and the candidate test device is determined according to the data channel type corresponding to the test subtask and the idle state of the data channel in the candidate test device, so as to realize coordinated execution of the task, shorten the execution waiting time of the task, and improve the test execution efficiency.
S250: based on the task allocation relation, the at least one test subtask is correspondingly sent to at least one candidate test device, so that the at least one candidate test device performs a test on the intelligent cabin.
In one embodiment of the application, the test subtask can uniquely correspond to one candidate test device, the candidate test device allocated with the test subtask can execute one or more test subtasks, data isolation can be realized among a plurality of test subtasks executed by the same candidate test device through different data channels, waiting time caused by congestion of the data channels is reduced when the test subtask is issued and executed, and the execution efficiency of the test can be further improved. In one embodiment of the application, there may also be candidate test equipment that is not assigned a test subtask.
In one embodiment of the application, at least one target test device is determined based on the task allocation relationship, the at least one target test device being part or all of the at least one candidate test device; based on the task allocation relation, correspondingly transmitting at least one test subtask to at least one target test device; the task allocation relationship characterizes a one-to-one or one-to-many correspondence between the test subtasks and the target test equipment. That is, there is a case that the current resource occupation condition of one candidate test device satisfies the second preset idle condition, but the data channel is occupied and cannot satisfy the execution requirement of the test subtask, so that the candidate test device needs to be removed, so that the test subtask can be executed on the selected target test device immediately.
In one embodiment of the present application, the method may further include:
s261: and generating sub-task execution sequence information according to at least one test sub-task.
S262: and sending the subtask execution sequence information to each candidate test device so that each candidate test device can execute at least one test subtask in parallel or execute at least one test subtask in sequence according to the subtask execution sequence information.
In the above embodiment, under the condition that a plurality of candidate test devices are matched, a plurality of test subtasks may be executed in parallel or sequentially in a certain order, so as to complete the intelligent cabin test with higher complexity.
In one embodiment of the present application, the method may further include:
s271: and acquiring at least one piece of test feedback information sent by at least one candidate test device, wherein the at least one piece of test feedback information corresponds to the at least one test subtask one by one.
S272: and generating test result information corresponding to the global test task according to the at least one test feedback information.
S273: and sending the test result information to the cloud end so that the user can remotely check the test result information.
In the above embodiment, the candidate test device may also be responsible for collecting test execution information and test result information, and transmitting the test result information back to the target server for test result analysis, so as to further improve the degree of automation of the test.
According to the embodiment, the scheme provided by the application is that the global test task sent by the cloud is obtained and decomposed to obtain at least one test subtask under the condition that the current resource occupation information of the target server meets the first preset idle condition; determining at least one candidate test device from a test device set in communication connection with the target server; the target server determines a task allocation relation between at least one test subtask and at least one candidate test device according to the data channel type corresponding to each test subtask, so that the at least one test subtask can be correspondingly sent to the at least one candidate test device based on the task allocation relation to execute a test on the intelligent cabin. The scheme provided by the application is a remote automatic test scheme realized based on a cloud-server-test equipment-intelligent cabin architecture, a proper target server can be selected to issue a global test task according to the current resource occupation condition of the server, and the target server selects available candidate test equipment from a test equipment set connected with the target server to issue and execute a test subtask, so that the waiting time from cloud generation of the whole test task to intelligent cabin execution is shortened, and the test execution efficiency is improved; according to the scheme provided by the application, the global test task is subjected to task decomposition at the target server, and the decomposed test subtasks are distributed to the proper candidate test equipment according to the corresponding data channel types, so that the data isolation of the test subtasks is realized, the waiting time caused by the congestion of the data channels is reduced, and the execution efficiency of the test can be further improved.
The embodiment of the application also provides an intelligent cabin testing device, as shown in fig. 5, which can comprise:
the task obtaining module 510 is configured to obtain a global test task sent by the cloud end when the current resource occupation information of the target server end meets a first preset idle condition;
the task decomposition module 520 is configured to decompose the global test task to obtain at least one test subtask;
a device selection module 530, configured to determine at least one candidate test device from a set of test devices communicatively connected to the target server, where each candidate test device is communicatively connected to the intelligent cabin based on a multiple data channel function;
a task allocation relation determining module 540, configured to determine a task allocation relation between the at least one test subtask and the at least one candidate test device based on a data channel type corresponding to each test subtask;
and the task distribution module 550 is configured to send the at least one test subtask to the at least one candidate test device correspondingly based on the task allocation relationship, so that the at least one candidate test device performs a test on the intelligent cabin.
In one embodiment of the present application, the device selection module 530 may include:
the first acquisition unit is used for acquiring current resource occupation information of at least one test device in the test device set, and each test device is in communication connection with the target server;
and the first equipment screening unit is used for screening the test equipment based on the second preset idle condition and the current resource occupation information of the at least one test equipment to obtain the at least one candidate test equipment.
In one embodiment of the present application, the task decomposition module 520 may include:
the first decomposition unit is used for decomposing the global test task according to the test object corresponding to the at least one test instance, the test index corresponding to the at least one test instance or the logic execution sequence among the at least one test instance to obtain the at least one test subtask.
In one embodiment of the present application, the task decomposition module 520 may further include:
an equipment information determining unit configured to determine equipment number information and equipment type information of the at least one candidate test equipment;
And the second decomposition unit is used for decomposing the global test task according to the equipment quantity information and the equipment type information to obtain at least one test subtask.
In one embodiment of the present application, the task allocation relation determining module 540 may include:
the unit is used for acquiring the current data channel occupation information of each candidate test device;
and the unit is used for determining the task allocation relation based on the data channel type corresponding to each test subtask and the current data channel occupation information of each candidate test device.
In one embodiment of the present application, the task distribution module 550 may include:
a second device screening unit, configured to determine at least one target test device based on the task allocation relationship, where the at least one target test device is part or all of the at least one candidate test device;
the task distribution unit is used for correspondingly transmitting the at least one test subtask to the at least one target test device based on the task distribution relation; the task allocation relation characterizes a one-to-one or one-to-many correspondence between the test subtasks and the target test equipment.
In one embodiment of the present application, the apparatus may further include:
an execution sequence unit, configured to generate sub-task execution sequence information according to the at least one test sub-task;
and the sequence information sending unit is used for sending the sub-task execution sequence information to each candidate test device so that each candidate test device can execute the at least one test sub-task in parallel or sequentially execute the at least one test sub-task according to the sub-task execution sequence information.
In one embodiment of the present application, the apparatus may further include:
the feedback information acquisition unit is used for acquiring at least one piece of test feedback information sent by the at least one candidate test device, and the at least one piece of test feedback information corresponds to the at least one test subtask one by one;
the test result generating unit is used for generating test result information corresponding to the global test task according to the at least one piece of test feedback information;
and the test result sending unit is used for sending the test result information to the cloud end so as to enable a user to remotely check the test result information.
It should be noted that, in the apparatus provided in the foregoing embodiment, when implementing the functions thereof, only the division of the foregoing functional modules is used as an example, in practical application, the foregoing functional allocation may be implemented by different functional modules, that is, the internal structure of the device is divided into different functional modules, so as to implement all or part of the functions described above. In addition, the apparatus and the method embodiments provided in the foregoing embodiments belong to the same concept, and specific implementation processes of the apparatus and the method embodiments are detailed in the method embodiments and are not repeated herein.
The embodiment of the application provides a computer device, which comprises a processor and a memory, wherein at least one instruction or at least one section of program is stored in the memory, and the at least one instruction or the at least one section of program is loaded and executed by the processor to realize the intelligent cabin testing method provided by the embodiment of the method.
Fig. 6 shows a schematic diagram of a hardware structure of a device for implementing a method for testing an intelligent cabin according to an embodiment of the present application, where the device may participate in forming or including an apparatus or a system according to an embodiment of the present application. As shown in fig. 6, the apparatus 10 may include one or more processors 1002 (shown in the figures as 1002a, 1002b, … …,1002 n) (the processor 1002 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1004 for storing data, and a transmission device 1006 for communication functions. In addition, the method may further include: a display, an input/output interface (I/O interface), a Universal Serial Bus (USB) port (which may be included as one of the ports of the I/O interface), a network interface, a power supply, and/or a camera. It will be appreciated by those of ordinary skill in the art that the configuration shown in fig. 6 is merely illustrative and is not intended to limit the configuration of the electronic device described above. For example, the device 10 may also include more or fewer components than shown in FIG. 6, or have a different configuration than shown in FIG. 6.
It should be noted that the one or more processors 1002 and/or other data processing circuits described above may be referred to herein generally as "data processing circuits. The data processing circuit may be embodied in whole or in part in software, hardware, firmware, or any other combination. Further, the data processing circuitry may be a single stand-alone processing module, or incorporated in whole or in part into any of the other elements in the device 10 (or mobile device). As referred to in embodiments of the application, the data processing circuit acts as a processor control (e.g., selection of the path of the variable resistor termination connected to the interface).
The memory 1004 may be used to store software programs and modules of application software, and the processor 1002 executes the software programs and modules stored in the memory 1004 to perform various functional applications and data processing, i.e., implement a method for testing an intelligent cockpit according to the embodiments of the present application. Memory 1004 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 1004 may further include memory located remotely from the processor 1002, which may be connected to the device 10 via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission means 1006 is for receiving or transmitting data via a network. Specific examples of the network described above may include a wireless network provided by a communications provider of device 10. In one example, the transmission means 1006 includes a network adapter (NetworkInterfaceController, NIC) that can be connected to other network devices via a base station to communicate with the internet. In one example, the transmission means 1006 may be a radio frequency (RadioFrequency, RF) module for communicating wirelessly with the internet.
The display may be, for example, a touch screen type Liquid Crystal Display (LCD) that may enable a user to interact with a user interface of the device 10 (or mobile device).
The embodiment of the application also provides a computer readable storage medium, which can be arranged in a server to store at least one instruction or at least one section of program related to the intelligent cabin test method in the method embodiment, and the at least one instruction or the at least one section of program is loaded and executed by the processor to realize the intelligent cabin test method provided by the method embodiment.
Alternatively, in this embodiment, the storage medium may be located in at least one network server among a plurality of network servers of the computer network. Alternatively, in the present embodiment, the storage medium may include, but is not limited to: a U-disk, a Read-only memory (ROM), a random access memory (RAM, randomAccessMemory), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing program codes.
Embodiments of the present application also provide a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions to cause the computer device to perform a smart cockpit testing method provided in the various alternative embodiments described above.
It should be noted that: the sequence of the embodiments of the present application is only for description, and does not represent the advantages and disadvantages of the embodiments. And the foregoing description has been directed to specific embodiments of this application. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims can be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
The embodiments of the present application are described in a progressive manner, and the same and similar parts of the embodiments are all referred to each other, and each embodiment is mainly described in the differences from the other embodiments. In particular, for apparatus, devices and storage medium embodiments, the description is relatively simple as it is substantially similar to method embodiments, with reference to the description of method embodiments in part.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program for instructing relevant hardware, where the program may be stored in a computer readable storage medium, and the storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The foregoing description of the preferred embodiments of the application is not intended to limit the application to the precise form disclosed, and any such modifications, equivalents, and alternatives falling within the spirit and scope of the application are intended to be included within the scope of the application.
Claims (10)
1. An intelligent cabin testing method, which is characterized by being applied to a target server, comprises the following steps:
Acquiring a global test task sent by a cloud under the condition that the current resource occupation information of the target server meets a first preset idle condition;
decomposing the global test task to obtain at least one test subtask;
determining at least one candidate test device from a test device set in communication connection with the target server, each candidate test device being in communication connection with the intelligent cabin based on a plurality of data channels;
determining a task allocation relation between the at least one test subtask and the at least one candidate test device based on the data channel type corresponding to each test subtask;
and correspondingly transmitting the at least one test subtask to the at least one candidate test device based on the task allocation relation so that the at least one candidate test device performs a test on the intelligent cabin.
2. The method of claim 1, wherein the determining at least one candidate test device from the set of test devices communicatively coupled to the target server comprises:
acquiring current resource occupation information of at least one test device in the test device set, wherein each test device is in communication connection with the target server;
And screening the test equipment based on the second preset idle condition and the current resource occupation information of the at least one test equipment to obtain the at least one candidate test equipment.
3. The method according to claim 1, wherein the global test task includes at least one test case, and the decomposing the global test task to obtain at least one test sub-task includes:
and decomposing the global test task according to the test object corresponding to the at least one test instance, the test index corresponding to the at least one test instance or the logic execution sequence among the at least one test instance to obtain the at least one test subtask.
4. The method of claim 1, wherein the decomposing the global test task to obtain at least one test sub-task further comprises:
determining device number information and device type information of the at least one candidate test device;
and decomposing the global test task according to the equipment quantity information and the equipment type information to obtain at least one test subtask.
5. The method of claim 1, wherein determining a task allocation relationship between the at least one test subtask and the at least one candidate test device based on the data channel type corresponding to each test subtask comprises:
acquiring current data channel occupation information of each candidate test device;
and determining the task allocation relation based on the data channel type corresponding to each test subtask and the current data channel occupation information of each candidate test device.
6. The method of claim 1, wherein the sending the at least one test subtask correspondence to the at least one candidate test device based on the task allocation relationship comprises:
determining at least one target test device based on the task allocation relationship, wherein the at least one target test device is part or all of the at least one candidate test device;
based on the task allocation relation, the at least one test subtask is correspondingly sent to the at least one target test device; the task allocation relation characterizes a one-to-one or one-to-many correspondence between the test subtasks and the target test equipment.
7. The method according to claim 1, wherein the method further comprises:
generating sub-task execution sequence information according to the at least one test sub-task;
and sending the subtask execution sequence information to each candidate test device so that each candidate test device can execute the at least one test subtask in parallel or execute the at least one test subtask in sequence according to the subtask execution sequence information.
8. The method according to claim 1, wherein the method further comprises:
acquiring at least one piece of test feedback information sent by the at least one candidate test device, wherein the at least one piece of test feedback information corresponds to the at least one test subtask one by one;
generating test result information corresponding to the global test task according to the at least one test feedback information;
and sending the test result information to the cloud end so that a user can remotely check the test result information.
9. An intelligent cockpit testing device, characterized in that it is applied to a target service terminal, said device comprising:
the task acquisition module is used for acquiring a global test task sent by the cloud under the condition that the current resource occupation information of the target server meets a first preset idle condition;
The task decomposition module is used for decomposing the global test task to obtain at least one test subtask;
the device selection module is used for determining at least one candidate test device from a test device set in communication connection with the target server, and each candidate test device is in communication connection with the intelligent cabin based on a multi-data channel function;
the task allocation relation determining module is used for determining the task allocation relation between the at least one test subtask and the at least one candidate test device based on the data channel type corresponding to each test subtask;
and the task distribution module is used for correspondingly transmitting the at least one test subtask to the at least one candidate test device based on the task distribution relation so as to enable the at least one candidate test device to execute a test on the intelligent cabin.
10. A computer readable storage medium having stored therein at least one instruction or at least one program, the at least one instruction or the at least one program being loaded and executed by a processor to implement the intelligent cabin testing method of any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310826931.6A CN117056201A (en) | 2023-07-06 | 2023-07-06 | Intelligent cabin testing method, device and medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202310826931.6A CN117056201A (en) | 2023-07-06 | 2023-07-06 | Intelligent cabin testing method, device and medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN117056201A true CN117056201A (en) | 2023-11-14 |
Family
ID=88665215
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202310826931.6A Pending CN117056201A (en) | 2023-07-06 | 2023-07-06 | Intelligent cabin testing method, device and medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN117056201A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117495060A (en) * | 2024-01-02 | 2024-02-02 | 湖南华夏特变股份有限公司 | Method and system for distributing testing tasks of transformer |
-
2023
- 2023-07-06 CN CN202310826931.6A patent/CN117056201A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN117495060A (en) * | 2024-01-02 | 2024-02-02 | 湖南华夏特变股份有限公司 | Method and system for distributing testing tasks of transformer |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019192343A1 (en) | Vehicle diagnosis method, related device and system | |
CN117056201A (en) | Intelligent cabin testing method, device and medium | |
CN113448988B (en) | Training method and device of algorithm model, electronic equipment and storage medium | |
CN114764323A (en) | Intelligent system and method based on SOA framework and vehicle | |
CN114036390A (en) | Scene service recommendation method and device, electronic equipment and storage medium | |
CN113553257A (en) | Test method, test device, storage medium and electronic equipment | |
CN111123728B (en) | Unmanned vehicle simulation method, device, equipment and computer readable medium | |
CN113407157A (en) | Object model determination method and device, storage medium and electronic device | |
CN115834375A (en) | Vehicle-side service communication configuration method, system, equipment and storage medium | |
CN113885971A (en) | State management method and device based on self-adaptive platform system | |
US11223961B2 (en) | Configuration method of wireless network system, configuration terminal and configuration system | |
CN114297109B (en) | Data processing method and device based on subscription and release modes, electronic equipment and storage medium | |
CN115511060A (en) | Model conversion method, device, storage medium and electronic device | |
CN109936500A (en) | A kind of data interactive method, data interaction device and electronic equipment | |
CN109671140B (en) | Cloud rendering service processing method adopting micro-service | |
CN111123727B (en) | Unmanned vehicle simulation building method, device, equipment and computer readable medium | |
CN113760776A (en) | Method and system for collaborative simulation test of automatic driving simulation software | |
CN112883110A (en) | Terminal big data distribution method, storage medium and system based on NIFI | |
CN115509153B (en) | Secondary development method and device for narrow-band internet of things (NB-IoT) communication module | |
CN113067869B (en) | Node control method and device, node management method and device and distributed system | |
CN112394944B (en) | Distributed development method, device, storage medium and computer equipment | |
CN114071580B (en) | Data transmission method and device and electronic equipment | |
CN112036160B (en) | Corpus data acquisition method and device combining RPA and AI | |
CN111355711B (en) | Interactive method and device for automatic driving vehicle, storage medium and processor | |
CN114666234B (en) | Cloud service construction method and device, storage medium and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination |