A drone automated testing method and system based on OTA technology

By combining OTA technology with drone automation testing methods, the fully automated process of drone OTA testing is realized, solving the problem of insufficient intelligence of traditional testing methods, saving manpower expenses and improving testing accuracy.

CN119058973BActive Publication Date: 2025-03-07ABUP TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411569768.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-11-06
Publication Date
2025-03-07
Estimated Expiration
2044-11-06

AI Technical Summary

Technical Problem

The traditional drone upgrade testing methods are not intelligent enough, which is difficult to meet the existing drone technology needs, and the labor cost is high.

Method used

UAV automation testing methods based on OTA technology are adopted. By combining OTA technology with drone automation testing methods, the entire process and full link are completed through system automation to avoid manual intervention.

Benefits of technology

The fully automated process of drone OTA testing has been realized, reducing manual participation, saving labor costs, and improving the accuracy of the test.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119058973B_ABST
    Figure CN119058973B_ABST
Patent Text Reader

Abstract

The present invention discloses a method for automated testing of unmanned aerial vehicles based on OTA technology, comprising the following steps: formulating a test task, creating a test script and associating it with the test task, and publishing the test task; obtaining the test task and the associated test script; executing the test task, automatically running the test script, and obtaining the test result; returning the test result, and generating a test report based on the test result. By combining OTA technology with automated testing of unmanned aerial vehicles, the whole process and the whole link system can be automated, avoiding manual intervention in the testing process, saving manpower expenses, and at the same time, automated testing can avoid the risk of manual operation errors when handling a large number of mechanical repetitive operations, thereby improving the accuracy of automated testing of unmanned aerial vehicles.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to OTA technology, and in particular to an automatic testing method and system for unmanned aerial vehicles based on OTA technology. Background Art

[0002] There are many types of drones on the market, and drones are widely used in various industries and the daily lives of ordinary people. With the development of drone technology, the firmware package of drone systems will become larger and larger in the future, and traditional upgrade test methods can no longer meet the needs; this article innovatively proposes an OTA automated test method in the drone field to simulate OTA testing in a test environment. The automated test process is completed through end-to-end full-link communication and control capabilities, and a test report is automatically generated after the test is completed. This reduces manual participation and realizes the fully automated process of drone OTA testing. Summary of the invention

[0003] In view of the fact that the existing traditional drone upgrade test methods are not intelligent enough, cannot meet the existing drone technology requirements, and have high labor costs, the present invention provides a drone automation test method based on OTA technology. By combining OTA technology with the drone automation test method, the entire process and the entire link are completed through system automation, avoiding manual intervention.

[0004] To achieve the above object, the embodiments of the present invention adopt the following technical solutions:

[0005] An automated test method for a drone based on OTA technology, the automated test method for a drone based on OTA technology comprising the following steps:

[0006] Formulate test tasks, create test scripts and associate them with test tasks, and publish test tasks;

[0007] Get test tasks and associated test scripts;

[0008] Execute test tasks, automatically run test scripts, and obtain test results;

[0009] Return the test results and generate a test report based on the test results.

[0010] According to one aspect of the present invention, the task types of the test tasks include OTA interface test tasks and OTA upgrade test tasks, and the script types of the test scripts include interface test scripts and service test scripts.

[0011] According to one aspect of the present invention, the formulation of the test task includes: defining the test task name, selecting the test task type, selecting the number of executions of the test task, the test phase, the task start time and the task end time.

[0012] According to one aspect of the present invention, creating a test script and associating it with a test task includes:

[0013] Create a script name, select the script type of the test script, and complete the basic information of the script;

[0014] Write automated test cases;

[0015] Automatically generate test scripts based on the completed automatic test cases;

[0016] Associate the generated test script with the test task.

[0017] According to one aspect of the present invention, the executing the test task and automatically running the test script includes executing the OTA interface test task and automatically running the interface test script, specifically:

[0018] Get the OTA interface test task and its associated interface test script;

[0019] Execute OTA interface test tasks and automatically run interface test scripts;

[0020] Get the execution results of each step in the interface test script running process;

[0021] Complete the OTA interface test task, get the test results, and return the execution results of all steps

[0022] According to one aspect of the present invention, the performing of the OTA interface test task and automatically running the interface test script includes:

[0023] Execute OTA interface test tasks;

[0024] Automatically run the interface test script to test the connectivity of the task interface between the AOT automated test cloud platform and the OTA platform;

[0025] Test the connectivity of the four interfaces between the OTA platform and the drone: detection, download, installation, and progress;

[0026] Returns the execution result of each step of the OTA interface test task.

[0027] According to one aspect of the present invention, the executing the test task and automatically running the test script includes executing the OTA upgrade test task and automatically running the service test script, specifically:

[0028] Get OTA upgrade test tasks and their associated business test scripts;

[0029] Execute OTA upgrade test tasks and automatically run business test scripts;

[0030] Trigger OTA upgrade command through ADB simulation APP and execute OTA upgrade command;

[0031] Get the execution result of each OTA upgrade command;

[0032] Complete the OTA upgrade test task, get the test results, and return the execution results of all steps

[0033] According to one aspect of the present invention, triggering an OTA upgrade instruction by simulating an APP through an ADB includes:

[0034] Simulate APP to trigger detection instructions and detect the software version of the drone;

[0035] Simulate APP to trigger download command and download the software package to the drone;

[0036] Simulate the APP to trigger the installation command and install the software package on the drone.

[0037] According to one aspect of the present invention, the automated testing method for drones based on OTA technology further includes: uploading the OTA test report to an OTA platform and making the report available for download.

[0038] An automatic test system for unmanned aerial vehicles based on OTA technology, comprising:

[0039] Drones;

[0040] AOT automated testing cloud platform is used to formulate test tasks, create test scripts and associate them with test tasks, and publish test tasks;

[0041] The industrial computer is used to obtain test tasks and associated test scripts, execute test tasks, automatically run test scripts, obtain test results, return test results, and generate test reports based on the test results;

[0042] OTA platform, used to provide OTA technology.

[0043] Advantages of the implementation of the present invention: The present invention describes an automated test method for drones based on OTA technology, comprising the following steps: formulating a test task, creating a test script and associating it with the test task, and publishing the associated test task; receiving the test task and obtaining the test script in the test task; executing the ADB command according to the test script to execute the drone OTA complete upgrade process; returning the result of the OTA complete upgrade process and generating an OTA test report. By combining OTA technology with drone automated testing, the full process and full link system can be automated, avoiding manual intervention during the test process and saving manpower expenses. At the same time, automated testing can avoid the risk of manual errors when handling a large number of mechanical repetitive operations, thereby improving the accuracy of drone automated testing. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0045] Figure 1 This is a flow chart of the automated testing method for drones based on OTA technology described in Embodiment 1 and Embodiment 2 of the present invention;

[0046] Figure 2 This is a structural diagram of a drone automated testing system based on OTA technology according to Embodiment 3 of the present invention;

[0047] Figure 3 This is a structural diagram of the UAV automated testing equipment based on OTA technology described in Example 4 of the present invention. DETAILED DESCRIPTION

[0048] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0049] The terms "including" and "having" and any variations thereof in the embodiments of the present invention are intended to cover non-exclusive inclusions. For example, a process, method, apparatus, product or equipment comprising a series of steps or modules is not necessarily limited to those steps or modules explicitly listed, but may include other steps or modules not explicitly listed or inherent to these processes, methods, products or equipment.

[0050] The naming or numbering of the steps in the embodiments of the present invention does not mean that the steps in the method flow must be executed in the time / logical sequence indicated by the naming or numbering. The execution order of the named or numbered process steps can be changed according to the technical purpose to be achieved, as long as the same or similar technical effects can be achieved.

[0051] Reference to an "embodiment" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiment may be included in at least one embodiment of the present invention. The appearance of the phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0052] Embodiment 1

[0053] like Figure 1 As shown, a drone automated testing method based on OTA technology includes the following steps:

[0054] Step S1: formulate test tasks, create test scripts and associate them with test tasks, and publish test tasks;

[0055] Step S11: Formulate test tasks, including:

[0056] Step S111: define the test task name;

[0057] Step S112: Select the test task type;

[0058] The types of test tasks include OTA interface test tasks and OTA upgrade test tasks.

[0059] In this embodiment, the test task selects the OTA interface test task, which is used to test whether the task interface between the AOT automated test cloud platform and the OTA platform is connected, and whether the detection, download, installation and progress interfaces between the OTA platform and the drone end or the device end are connected.

[0060] Step S113: Select the number of executions, test phase, task start time and task end time of the test task.

[0061] In actual applications, you can also define forced end conditions for the test task, for example, stop the test task immediately when the execution times reach the preset upper limit, or stop the test task immediately when the execution time of the test task reaches the preset task end time or exceeds the preset task end time for a period of time.

[0062] Step S12: Create a test script and associate it with the test task, including:

[0063] Step S121: Create a script name, select the script type of the test script, and complete the basic information of the script;

[0064] The script types of test scripts that can be selected include but are not limited to interface test scripts and business test scripts.

[0065] In this embodiment, according to the selected OTA interface test task, an interface test script corresponding to the test task is selected.

[0066] In addition to the script name and script type, the basic information of the script also includes the module to which the script belongs and remarks.

[0067] The interface test script refers to the end-to-end interface test, which aims to realize the test of the software interface from the cloud to the drone or device. After the test task is created in the cloud, the script is published and run. The script performs automated testing according to the task start time specified by the test task. Only after the end-to-end interface test is completed can the end-to-end network communication and data interaction be fully opened, that is, the data interaction of application messages, that is, the data interaction of software entities, be realized.

[0068] Step S122: writing automatic test cases;

[0069] Write corresponding automatic test cases in the AOT automatic testing platform according to the script name, script type and other basic information.

[0070] Step S123: automatically generating a test script according to the completed automatic test case;

[0071] Step S124: Associating the generated test script with the test task.

[0072] Specifically, when executing an OTA interface test task, the interface test script needs to be automatically run, and when executing an OTA upgrade test task, the service test script needs to be run.

[0073] Step S2: Obtain the test task and the associated test script;

[0074] The test task is sent to the industrial computer that can execute the test task through the AOT automatic testing platform. After the industrial computer is powered on, the test agent program is launched, the automated test task is detected through the test agent program, and the test script associated with the test task is obtained.

[0075] Step S3: Execute the test task, automatically run the test script, and obtain the test results;

[0076] Step S31: Obtain an OTA interface test task and its associated interface test script;

[0077] In actual applications, after the industrial computer is powered on, the test agent may detect multiple different test tasks, but each test task has its defined task start time. The test agent needs to execute the corresponding test tasks in sequence according to the task start time.

[0078] In this embodiment, the test task is an OTA interface test task, which is associated with an interface test script.

[0079] Step S32: Execute the OTA interface test task and automatically run the interface test script;

[0080] Execute OTA interface test tasks through test agent;

[0081] Automatically run the interface test script to test the connectivity of the task interface between the AOT automated test cloud platform and the OTA platform;

[0082] After the previous step is completed, the connectivity test of the interface between the OTA platform and the drone or device is automatically tested, including but not limited to the test of the detection interface, download interface, installation interface and progress interface;

[0083] Returns the execution result of each step of the OTA interface test task.

[0084] Step S33: Obtain the execution result of each step in the interface test script running process;

[0085] Step S34: Complete the OTA interface test task, obtain the test results, and return the execution results of all steps.

[0086] Step S4: Return the test results and generate a test report based on the test results.

[0087] In step S3, after executing the test of each interface, the test results need to be returned to the test agent immediately. After the entire test task is completed, the final task test results are generated. The test agent generates a test report based on the test results of each interface and the final task test results, and uploads the generated test report to the AOT automated testing cloud platform.

[0088] The automated test result report is displayed through the AOT automated test cloud platform, and users can also download the automated test report to their local computer.

[0089] This embodiment provides a drone automation testing method based on OTA technology. By executing the created test tasks and test scripts, the interface testing between the AOT automation testing cloud platform and the OTA platform, and between the OTA platform and the drone end or the device end is realized, thereby making adequate preparations for the OTA upgrade of the drone end or the device end. The OTA technology is combined with drone automation testing to realize the automation of the entire process and the entire link system, avoiding manual intervention in the testing process and saving manpower expenses. At the same time, automated testing can avoid the risk of manual operation errors when handling a large number of mechanical repetitive operations, thereby improving the accuracy of drone automation testing.

[0090] Embodiment 2

[0091] like Figure 1 As shown, a drone automated testing method based on OTA technology includes the following steps:

[0092] Step S1: formulate test tasks, create test scripts and associate them with test tasks, and publish test tasks;

[0093] Step S11: Formulate test tasks, including:

[0094] Step S111: define the test task name;

[0095] Step S112: Select the test task type;

[0096] The types of test tasks include OTA interface test tasks and OTA upgrade test tasks.

[0097] In this embodiment, the test task is selected as the OTA upgrade test task, which needs to be performed after the interface test task in Embodiment 1 is completed and all interfaces in the test report are used normally. It is used to test whether the drone end or the device end can normally execute the complete OTA upgrade process.

[0098] Step S113: Select the number of executions, test phase, task start time and task end time of the test task.

[0099] In actual applications, you can also define forced end conditions for the test task, for example, stop the test task immediately when the execution times reach the preset upper limit, or stop the test task immediately when the execution time of the test task reaches the preset task end time or exceeds the preset task end time for a period of time.

[0100] Step S12: Create a test script and associate it with the test task, including:

[0101] Step S121: Create a script name, select the script type of the test script, and complete the basic information of the script;

[0102] The script types of test scripts that can be selected include but are not limited to interface test scripts and business test scripts.

[0103] In this embodiment, according to the selected OTA upgrade test task, a service test script corresponding to the test task is selected.

[0104] In addition to the script name and script type, the basic information of the script also includes the module to which the script belongs and remarks.

[0105] The business test script refers to the script that the industrial computer uses to perform OTA testing. After creating the test task, the AOT automated testing platform sends the script to the industrial computer, runs the script through the test agent in the industrial computer, completes the drone's OTA testing process, and automatically generates the final test report and uploads it to cloud storage.

[0106] Step S122: writing automatic test cases;

[0107] Write corresponding automatic test cases in the AOT automatic testing platform according to the script name, script type and other basic information.

[0108] Step S123: automatically generating a test script according to the completed automatic test case;

[0109] Step S124: Associating the generated test script with the test task.

[0110] Specifically, when executing an OTA interface test task, the interface test script needs to be automatically run, and when executing an OTA upgrade test task, the service test script needs to be run.

[0111] Step S2: Obtain the test task and the associated test script;

[0112] The test task is sent to the industrial computer that can execute the test task through the AOT automatic testing platform. After the industrial computer is powered on, the test agent program is launched, the automated test task is detected through the test agent program, and the test script associated with the test task is obtained.

[0113] Step S3: Execute the test task, automatically run the test script, and obtain the test results;

[0114] Step S31: Obtain an OTA upgrade test task and its associated service test script;

[0115] In actual applications, after the industrial computer is powered on, the test agent may detect multiple different test tasks, but each test task has its defined task start time. The test agent needs to execute the corresponding test tasks in sequence according to the task start time.

[0116] In this embodiment, the test task is an OTA upgrade test task, and its associated test script is a service test script.

[0117] Step S32: Execute the OTA upgrade test task and automatically run the service test script;

[0118] Execute OTA upgrade test tasks through the test agent, automatically run business test scripts, and execute the complete OTA upgrade process.

[0119] Step S33: Trigger the OTA upgrade command through ADB simulation APP and execute the OTA upgrade command;

[0120] In actual applications, executing OTA upgrade test tasks requires the test agent to execute ADB commands to simulate the operation process of the mobile phone APP, as follows:

[0121] The test agent simulates triggering to detect the new version, and the APP returns the detection command to detect the drone software version;

[0122] The test agent simulates triggering a download command, and the APP returns the download command to download the software package to the drone.

[0123] The test agent simulates triggering the installation command, and the APP returns the installation command to install the software package on the drone.

[0124] Step S32 and step S33 constitute a complete OTA upgrade process, which is as follows:

[0125] The test agent executes the business script to initiate a command to detect the latest version of the drone or device to determine whether it meets the version requirements of this OTA upgrade process. The OTA master receives the command and traverses the software versions of the entire terminal device.

[0126] The test agent simulates triggering a download command and returns to the drone or device OTA upgrade main program OTAmaster; OTA master obtains the upgrade package from the OTA platform and downloads it to the controller storage of the drone or device at the same time;

[0127] The test agent simulates triggering the installation command and returns to the drone or device OTA upgrade main program OTAmaster. The OTA master executes the installation process on the drone or device.

[0128] Step S34: Obtain the execution result of each OTA upgrade instruction;

[0129] After each step is completed, the OTA master returns the execution result of the step to the test agent.

[0130] Step S35: Complete the OTA upgrade test task, obtain the test results, and return the execution results of all steps.

[0131] Step S4: Return the test results and generate a test report based on the test results.

[0132] In step S3, after executing each step of the complete OTA upgrade, the test results need to be returned to the test agent immediately. After the entire test task is completed, the final task test results are generated. The test agent determines whether the complete OTA upgrade process is successfully executed based on the execution results of each step, and generates a test report based on the final results and uploads it to the AOT automated testing cloud platform.

[0133] In actual applications, the OTA master will also return the execution results to the OTA cloud after completing each step of the OTA upgrade task.

[0134] The automated test result report is displayed through the AOT automated test cloud platform, and users can also download the automated test report to their local computer.

[0135] In actual applications, the OTA test report can also be uploaded to the OTA platform and made available for download.

[0136] This embodiment provides a drone automation testing method based on OTA technology. By executing the created test tasks and test scripts, it is possible to test whether the drone end can normally execute the complete OTA upgrade process. The OTA technology is combined with drone automation testing to achieve full-process and full-link system automation, avoid manual intervention in the testing process, and save manpower expenses. At the same time, automated testing can avoid the risk of manual errors when handling a large number of repetitive mechanical operations, thereby improving the accuracy of drone automation testing.

[0137] Embodiment 3

[0138] like Figure 2 As shown, a drone automated testing system based on OTA technology includes:

[0139] The drone or device side has an OTA master pre-installed, which serves as an upgrade component for the forward OTA main service.

[0140] AOT automated testing cloud platform is used to formulate test tasks, create test scripts and associate them with test tasks, and publish test tasks;

[0141] The industrial computer is used to obtain test tasks and associated test scripts, execute test tasks, automatically run test scripts, obtain test results, generate test reports based on the test results, and return test results. Specifically, the industrial computer uses its preset test agent as the main business control component for executing OTA automation scripts on the drone side to perform the above steps.

[0142] The drone automation test system based on OTA technology also includes an OTA platform, which is used to provide OTA technology, that is, to send OTA upgrade packages to the drone side or device side to assist the drone side in performing OTA upgrade tasks.

[0143] When the UAV automated testing system based on OTA technology performs OTA interface testing tasks, it formulates test tasks and creates test scripts through the AOT automated testing cloud platform, and sends the test tasks to the industrial computer. The test agent pre-installed in the industrial computer executes the OTA interface testing tasks and runs the interface testing script to test the task interface between the AOT automated testing cloud platform and the OTA platform. After completion, it executes the detection, downloading, installation, progress and other interface tests between the OTA platform and the drone or device end. Finally, the test agent generates a test report based on the return results of each step in the task execution process and uploads it to the AOT automated testing cloud platform.

[0144] When the UAV automated test system based on OTA technology performs OTA upgrade test tasks, it formulates test tasks and creates test scripts through the AOT automated test cloud platform, and sends the test tasks to the industrial computer. The test agent pre-installed in the industrial computer executes the OTA interface test task and runs the interface test script. It simulates the various instructions in the complete OTA upgrade task process triggered by the mobile phone APP through ADB technology. The test agent executes according to the OTAmaster that transmits the instructions to the drone or device side. Specifically, the OTA master receives the detection instruction to traverse the entire software version of the drone or device side. After receiving the download instruction, it interacts with the OTA platform to obtain the OAT upgrade package. After receiving the installation instruction, it installs the OTA upgrade package on the drone or device side, and the OTA master returns the instructions of each step to the test agent and the OTA platform. Finally, the testagent generates a test report according to the return results of each step in the task execution process and uploads it to the AOT automated test cloud platform.

[0145] Embodiment 4

[0146] like Figure 3 As shown, a drone automated testing device based on OTA technology includes:

[0147] A memory 100, used for storing computer programs;

[0148] The processor 200 is used to execute the computer program to implement the steps of the automated testing method for a drone based on OTA technology as described in Embodiment 1 and Embodiment 2.

[0149] Embodiment 5

[0150] A readable storage medium for automated testing of unmanned aerial vehicles based on OTA technology, wherein a computer program is stored on the readable storage medium, and when the computer program is executed, the steps of the automated testing method for unmanned aerial vehicles based on OTA technology as described in Embodiment 1 and Embodiment 2 are implemented.

[0151] The present invention may be a system, method and / or computer program product. The computer program product may include a computer-readable storage medium (or medium) having computer-readable program instructions thereon, the computer-readable program instructions being used to cause a processor to perform aspects of the present invention.

[0152] The readable storage medium is a computer-readable storage medium, which can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer-readable storage medium can be, for example, but not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of computer-readable storage media includes the following: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device (such as a punch card or a raised structure in a groove with instructions recorded thereon), and any suitable combination of the above.

[0153] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to a corresponding computing / processing device or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network can include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.

[0154] The computer programs described herein are computer-readable program instructions that can be downloaded from a computer-readable storage medium to a corresponding computing / processing device or downloaded to an external computer or external storage device via a network (e.g., the Internet, a local area network, a wide area network, and / or a wireless network). The network may include copper transmission cables, optical transmission fibers, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions to be stored in a computer-readable storage medium in the corresponding computing / processing device.

[0155] The computer-readable program instructions may be executed entirely on the user's computer, partially on the user's computer, as a stand-alone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the latter case, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider). In some embodiments, an electronic circuit (including, for example, a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA)) may execute computer-readable program instructions to personalize the electronic circuit by utilizing state information of the computer-readable program instructions so as to perform aspects of the present invention.

[0156] Aspects of the present invention are described herein with reference to flowcharts of methods, systems, devices, and computer program products according to embodiments of the present invention and / or block diagrams. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0157] These computer-readable program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to produce a machine that, when executed by a processor of the computer or other programmable data processing apparatus, creates a device for implementing the functions / actions specified in one or more blocks of the flowchart and / or block diagram. These computer-readable program instructions may also be stored in a computer-readable storage medium that can instruct a computer, a programmable data processing apparatus, and / or other device to function in a particular manner, such that a computer-readable storage medium having instructions stored therein includes an article of manufacture that includes instructions for implementing various aspects of the functions / actions specified in one or more blocks of the flowchart and / or block diagram.

[0158] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by any technician familiar with the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. An automated test method for drones based on OTA technology, characterized in that: The automated testing method for unmanned aerial vehicles based on OTA technology comprises the following steps: Formulate test tasks, create test scripts and associate them with test tasks, and publish test tasks. The task types of the test tasks include OTA interface test tasks and OTA upgrade test tasks. The script types of the test scripts include interface test scripts and business test scripts. The test tasks are formulated through the AOT automated testing platform, and the test scripts are created and associated with the test tasks through the AOT automated testing cloud platform. The test tasks are sent to the industrial computer through the AOT automated testing cloud platform; Obtaining the test task and the associated test script, specifically, obtaining the test task and the associated test script through an industrial computer; Execute test tasks, automatically run test scripts, obtain test results, execute OTA interface test tasks and run interface test scripts through the test agent preset in the industrial computer, simulate the mobile phone APP through ADB technology to trigger various instructions in the complete OTA upgrade process, and the test agent transmits the instructions to the OTA master on the drone or device side for execution; Return the test results and generate a test report based on the test results.

2. The unmanned aerial vehicle automated testing method based on OTA technology according to claim 1, characterized in that: The formulation of the test task includes: defining the test task name, selecting the test task type, selecting the number of executions of the test task, the test phase, the task start time and the task end time.

3. The unmanned aerial vehicle automated testing method based on OTA technology according to claim 1 is characterized in that: The creating of the test script and associating it with the test task includes: Create a script name, select the script type of the test script, and complete the basic information of the script; Write automated test cases; Automatically generate test scripts based on the completed automatic test cases; Associate the generated test script with the test task.

4. The unmanned aerial vehicle automated testing method based on OTA technology according to claim 1, characterized in that: The executing test task and automatically running the test script include executing the OTA interface test task and automatically running the interface test script, specifically: Get the OTA interface test task and its associated interface test script; Execute OTA interface test tasks and automatically run interface test scripts; Get the execution results of each step in the interface test script running process; Complete the OTA interface test task, obtain the test results, and return the execution results of all steps.

5. The unmanned aerial vehicle automated testing method based on OTA technology according to claim 4 is characterized in that: The execution of the OTA interface test task and the automatic running of the interface test script include: Execute OTA interface test tasks; Automatically run the interface test script to test the connectivity of the task interface between the AOT automated test cloud platform and the OTA platform; Test the connectivity of the four interfaces between the OTA platform and the drone: detection, download, installation, and progress; Returns the execution result of each step of the OTA interface test task.

6. The unmanned aerial vehicle automated testing method based on OTA technology according to claim 1, characterized in that: The executing test task and automatically running the test script include executing the OTA upgrade test task and automatically running the service test script, specifically: Get OTA upgrade test tasks and their associated business test scripts; Execute OTA upgrade test tasks and automatically run business test scripts; Trigger OTA upgrade command through ADB simulation APP and execute OTA upgrade command; Get the execution result of each OTA upgrade command; Complete the OTA upgrade test task, get the test results, and return the execution results of all steps.

7. The unmanned aerial vehicle automated testing method based on OTA technology according to claim 6, characterized in that: The triggering of the OTA upgrade instruction by simulating the APP through the ADB includes: Simulate APP to trigger detection instructions and detect the software version of the drone; Simulate APP to trigger download command and download the software package to the drone; Simulate the APP to trigger the installation command and install the software package on the drone.

8. The unmanned aerial vehicle automated testing method based on OTA technology according to claim 1, characterized in that: The OTA-based UAV automated testing method further includes: uploading the test report to the AOT automated testing cloud platform and providing a report download method.

9. An OTA-based UAV automated testing system, wherein the OTA-based UAV automated testing system is based on the OTA-based UAV automated testing method according to any one of claims 1 to 8, characterized in that: The UAV automatic test system based on OTA technology includes: Drones; AOT automated testing cloud platform, used to formulate test tasks, create test scripts and associate them with test tasks, and publish test tasks. The task types of the test tasks include OTA interface test tasks and OTA upgrade test tasks, and the script types of the test scripts include interface test scripts and business test scripts; The industrial computer is used to obtain test tasks and associated test scripts, execute test tasks, automatically run test scripts, obtain test results, return test results, and generate test reports based on the test results; OTA platform, used to provide OTA technology.

Citation Information

Patent Citations

  • Automatic testing method for OTA upgrade of automobile intelligent network connection system

    CN116089284A

  • Vehicle-mounted interface test method, electronic equipment and storage medium

    CN116244210A