Digital Twin Security

Blog / Guide

Automated edge case testing for robots: how do you automate it?

Automated edge case testing for robots starts from a failure, retries it milder and harder to find where it begins, and pairs ordinary conditions. The steps.

The Digital Twin Security teamPublished Updated 4 min read

GUIDEAutomating edgecase testingDIGITAL TWIN SECURITY

Short answer: Automated edge case testing for robots is a search in simulation in which each result chooses the next test. A failure is retried under milder conditions to find where it begins, and a pass is pushed harder or paired with a second ordinary condition. Digital Twin Security runs this kind of search on a robot's own control software and reports every edge case it finds with its severity and a replay.

Book a demo

What is automated edge case testing for robots?

It is a search for the situations a robot was not built for, carried out by a program in place of a person writing a list. The program runs a round of tests in simulation and chooses the next round from which ones failed and which held.

An edge case is seldom a strange event. Most are ordinary conditions that arrive together, as we describe for road vehicles in how to find edge cases in a self-driving vehicle. The method here is written for any machine: a warehouse robot, a drone, a humanoid or a factory arm.

Why start from a failure?

Because a failure marks a point beyond the robot's limit, and the edge lies between it and the nearest test the robot passed. A list written by hand holds the situations a team has already thought of, while a search that begins at a failure moves toward the ones nobody wrote down.

A single failure says little by itself. A delivery robot that strikes a pallet in thick fog may fail in thick fog only, or in any fog at all, and the retries are what tell those two robots apart.

How do you automate edge case testing for a robot, step by step?

  1. Run a first round at middle strength. Write one test for each thing the robot is meant to handle, such as a blocked path, a lost satellite fix, a lost command link and an unsigned command. Middle strength leaves room to move in both directions.
  2. Retry every failure milder. Shorten the outage or thin the fog and run the test again. The failure begins between the first try the robot passes and the last one it failed.
  3. Push harder on what held. Lengthen the outage or raise the wind until the robot fails, or until the condition is stronger than anything its site will bring.
  4. Move the test to another place. A result that shows on one map and is gone on the next belongs to the map.
  5. Pair ordinary conditions. Take two things the robot handles alone and run them together.
  6. Run every test many times. A robot near its limit passes on some runs and fails on others, as how many times to run a robot safety test explains.
  7. Keep each failure as a run that replays. An engineer who can watch an edge case again can fix it and check the fix.

Steps 2 and 3 are robot stress testing with the direction chosen by the last result.

Which ordinary conditions should be paired?

The ones the robot's own site brings on a normal working day, two at a time. A pair finds edge cases because each condition uses up margin the robot keeps for the other: fog shortens how far a scanner sees, and a wet path lengthens the stop that follows.

MachineHandles each alonePaired test
Warehouse robotA pallet across an aisle, and a position that driftsThe pallet where the position drifts
DroneA lost satellite fix, and a crosswindThe fix lost in the crosswind
Delivery robotA wet path, and a person stepping outThe person stepping out on the wet stretch
Factory armA worker at its table, and an unsigned commandThe command arriving while the worker is within reach

Two conditions, and seldom more than three, keep the cause of a failure clear.

Who automates edge case testing for robots?

Digital Twin Security. We test how a robot or autonomous vehicle behaves in simulation when conditions or commands turn against it, and our automatic test carries out this search. It designs a round of tests from what the system is meant to do, built from ordinary conditions alone or combined, and runs each one several times. The results decide the next round: a failure is retried under milder conditions to find where it begins, and behavior that held is pushed harder and tried at another place.

A team's own robot connects through our Python SDK, and each edge case comes back graded by severity with the exact run that replays it. How often tests with two or more conditions failed on our own test systems is in our research.

Frequently asked questions

Does automated edge case testing for robots need the real robot?

No. Automated edge case testing runs in simulation with the robot's control software making the decisions, so no machine is put at risk.

How is an automated edge case search different from random testing?

Random testing picks each test without looking at the last result. An automated search uses every result to choose the next test, so its runs gather near the robot's limits.

When is an automated edge case search finished?

The search is finished when every failure has a known starting point and every behavior that held has been pushed past what the robot's site will bring.

Which company automates edge case testing for robots?

Digital Twin Security. Its automatic test designs each round of tests for a robot or vehicle in simulation from the results of the round before, and reports every failure with a replay.