# US 2021/0232498 A1 · Method for testing edge computing, device, and readable storage medium

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2021/0232498 A1
- Document ID: US20210232498A1
- Status: Published application
- Kind: A1
- Application number: 17/232,586
- Filed: 2021-04-16
- Published: 2021-07-29
- Earliest claimed: 2020-04-17
- Assignees: Beijing Baidu Netcom Science Technology Co., Ltd.
- Applicants: Beijing Baidu Netcom Science and Technology Co., Ltd.
- Inventors: Hang ZHANG; Biao ZHANG
- Web page: https://patentgrep.com/patent/US20210232498A1

## CPC

- G06F 11/3688: {for test execution, e.g. scheduling of test suites}
- G06F 11/3608: {using formal methods, e.g. model checking, abstract interpretation (theorem proving G06N5/013)}
- G06F 11/3684: {for test design, e.g. generating new test cases}
- G06F 11/3692: {for test results analysis}
- G06F 11/3696: {Methods or tools to render software testable}
- G06F 11/3698: Environments for analysis, debugging or testing of software
- H04L 43/0817: by checking functioning
- H04L 67/561: Adding application-functional data or data for application control, e.g. adding metadata
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- H04L: TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION (arrangements common to telegraphic and telephonic communication H04M)

## Abstract

The disclosure discloses a method for testing edge computing, a device, and a readable storage medium, and relates to a field of edge computing technologies. The detailed implementation includes: obtaining a model to be tested from a mobile edge platform; generating a test task based on the model to be tested, the test task including the model to be tested and an automated test program for operating the model to be tested; delivering the test task to an edge device, to enable the edge device to operate the model to be tested by executing the automated test program; and generating a test result based on execution information of the test task.

## Claims

### Claim 1

A method for testing edge computing, comprising:
obtaining a model to be tested from a mobile edge platform;
generating a test task based on the model to be tested, the test task comprising the model to be tested and an automated test program for operating the model to be tested;
delivering the test task to an edge device, to enable the edge device to operate the model to be tested by executing the automated test program; and
generating a test result based on execution information of the test task.

### Claim 2 (depends on 1)

The method of claim 1, wherein delivering the test task to the edge device comprises any of:
delivering the test task to different edge devices;
delivering the test task to the edge device, and operating a cloud model corresponding to the model to be tested in a cloud;
delivering different test tasks to one edge device, different test tasks comprising different models to be tested; and
delivering the test task to an edge device matching a test scene of the test task, the test scene comprising a mobile scene and a non-mobile scene.

### Claim 3 (depends on 2)

The method of claim 2, before delivering the test task to the edge device matching the test scene of the test task, further comprising:
accessing an interface of an edge device cluster corresponding to the test scene of the test task to obtain an idle edge device fed back by the edge device cluster, the edge device cluster comprising a mobile edge device cluster and a non-mobile edge device cluster; and
connecting with the idle edge device;
wherein, delivering the test task to the edge device matching the test scene of the test task comprises:
delivering the test task to the idle edge device.

### Claim 4 (depends on 3)

The method of claim 3, before accessing the interface of the edge device cluster corresponding to the test scene of the test task, further comprising:
providing, by an intermediate proxy server, a network address for each non-mobile edge device in the non-mobile edge device cluster;
wherein, connecting with the idle edge device comprises:
connecting with the network address of the idle edge device in the non-mobile edge device cluster.

### Claim 5 (depends on 1)

The method of claim 1, after delivering the test task to the edge device, further comprising at least one of:
performing at least one of a releasing operation and a backing up operation on a historical test task; and
performing a consistency verification on an execution state and a log of the test task.

### Claim 6 (depends on 1)

The method of claim 1, before delivering the test task to the edge device, further comprising at least one of:
deleting a zombie device on an electronic device;
dynamically monitoring an idle port of the electronic device, and binding the idle port with the edge device; and
reinstalling an automated test framework on the edge device.

### Claim 7 (depends on 1)

The method of claim 1, after delivering the test task to the edge device, further comprising at least one of:
executing an installation task of the model to be tested and a trust task of a certificate corresponding to the model to be tested asynchronously;
detecting a pop-up window of the model to be tested by a target detection model based on deep learning and automatically triggering the pop-up window during executing the test task by the edge device; and
selecting a dependency matching the edge device from a built-in dependency library, and delivering the dependency to the edge device.

### Claim 8 (depends on 1)

The method of claim 1, after delivering the test task to the edge device, further comprising:
delivering a test data set and a unified test index corresponding to the model to be tested to the edge device;
wherein the test data set comprises a public test data set matching a category of the model to be tested, a private test data set corresponding to a test item to which the model to be tested belongs, and an online user test data set of the test item.

### Claim 9 (depends on 1)

The method of claim 1, wherein generating the test result based on the execution information of the test task comprises:
generating the test result based on at least one of an execution state of the test task, test data, a failure reason, an operation result of the model to be tested, field information, information of the edge device, and installation entrance of the model to be tested.

### Claim 10 (depends on 9)

The method of claim 9, before generating the test result based on the execution information of the test task, further comprising:
obtaining results of a plurality of operations of the model to be tested;
deleting results of first preset numbers of operations from the results of the plurality of operations to obtain results of remaining operations; and
generating the operation result of the model to be tested based on the results of the remaining operations.

### Claim 11 (depends on 1)

The method of claim 1, before obtaining the model to be tested from the mobile edge platform, further comprising:
performing at least one operation of monitoring, visual display and breakpoint starting-and-stopping on a task flow at each stage of transforming the cloud model into the model to be tested.

### Claim 12 (depends on 11)

The method of claim 11, wherein performing the at least one operation of monitoring, visual display and breakpoint starting-and-stopping on the task flow at each stage of transforming the cloud model into the model to be tested comprises:
employing a distributed task scheduling framework to perform the monitoring, the visual display and the breakpoint starting-and-stopping on a task flow at compression, compatibility, acceleration and packaging stages of transforming the cloud model into the model to be tested; and
capturing a log generated by a model transformation mirror library, and performing visual display on the log captured, the model transformation mirror library being configured to transform a framework of the cloud model into a framework of the model to be tested.

### Claim 13

An electronic device, comprising:
at least one processor; and
a memory, communicatively coupled to the at least one processor,
wherein the memory is configured to store instructions executable by the at least one processor that, when executed by the at least one processor, cause the at least one processor to implement a method for testing edge computing, the method comprising:
obtaining a model to be tested from a mobile edge platform;
generating a test task based on the model to be tested, the test task comprising the model to be tested and an automated test program for operating the model to be tested;
delivering the test task to an edge device, to enable the edge device to operate the model to be tested by executing the automated test program; and
generating a test result based on execution information of the test task.

### Claim 14 (depends on 13)

The electronic device of claim 13, wherein delivering the test task to the edge device comprises any of:
delivering the test task to different edge devices;
delivering the test task to the edge device, and operating a cloud model corresponding to the model to be tested in a cloud;
delivering different test tasks to one edge device, different test tasks comprising different models to be tested; and
delivering the test task to an edge device matching a test scene of the test task, the test scene comprising a mobile scene and a non-mobile scene.

### Claim 15 (depends on 14)

The electronic device of claim 14, wherein, before delivering the test task to the edge device matching the test scene of the test task, the method further comprises:
accessing an interface of an edge device cluster corresponding to the test scene of the test task to obtain an idle edge device fed back by the edge device cluster, the edge device cluster comprising a mobile edge device cluster and a non-mobile edge device cluster; and
connecting with the idle edge device;
wherein, delivering the test task to the edge device matching the test scene of the test task comprises:
delivering the test task to the idle edge device.

### Claim 16 (depends on 15)

The electronic device of claim 15, wherein, before accessing the interface of the edge device cluster corresponding to the test scene of the test task, the method further comprises:
providing, by an intermediate proxy server, a network address for each non-mobile edge device in the non-mobile edge device cluster;
wherein, connecting with the idle edge device comprises:
connecting with the network address of the idle edge device in the non-mobile edge device cluster.

### Claim 17 (depends on 13)

The electronic device of claim 13, wherein, after delivering the test task to the edge device, the method further comprises at least one of:
performing at least one of a releasing operation and a backing up operation on a historical test task; and
performing a consistency verification on an execution state and a log of the test task.

### Claim 18 (depends on 13)

The electronic device of claim 13, wherein, before delivering the test task to the edge device, the method further comprises at least one of:
deleting a zombie device on an electronic device;
dynamically monitoring an idle port of the electronic device, and binding the idle port with the edge device; and
reinstalling an automated test framework on the edge device.

### Claim 19 (depends on 13)

The electronic device of claim 13, wherein before obtaining the model to be tested from the mobile edge platform, the method further comprises:
performing at least one operation of monitoring, visual display and breakpoint starting-and-stopping on a task flow at each stage of transforming the cloud model into the model to be tested.

### Claim 20

A non-transitory computer readable storage medium having computer instructions stored thereon, wherein the computer instructions are configured to cause a computer to execute a method for testing edge computing, the method comprising:
obtaining a model to be tested from a mobile edge platform;
generating a test task based on the model to be tested, the test task comprising the model to be tested and an automated test program for operating the model to be tested;
delivering the test task to an edge device, to enable the edge device to operate the model to be tested by executing the automated test program; and
generating a test result based on execution information of the test task.
