metamorphic, model-based testing of …metamorphic, model-based testing of autonomous systems mikael...

14
Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter Gudjon Magnusson Christoph Schulze

Upload: others

Post on 12-Mar-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Metamorphic, Model-Based Testing of Autonomous Systems

Mikael LindvallAdam Porter

Gudjon Magnusson Christoph Schulze

Page 2: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Testing Autonomous Systems

§ Increasing interest in using autonomous systems to perform safety-critical missions in the real-world

§ Can’t test every possible scenario§ Difficult to determine correct test behavior

§ Systems designed to make their own decisions§ Non-deterministic control algorithms

Page 3: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

§ Uses sense and avoid algorithm to autonomously navigate an unknown environment to deliver packages

§ Uses LIDAR and traditional cameras to avoid obstacles and identify landing pads

§ Used a simulation environment and a testing framework to generate numerous test cases

Testing an Autonomous Drone

Page 4: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Model-Based, Metamorphic Testing

§ Manually created test cases for a small set of interesting scenarios

§ Use model-based testing to generate a large number of variants from each manual scenario

§ Instrumented drone software to emit information about its internal state

Page 5: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Model-Based, Metamorphic Testing

§ Used metamorphic testing principles to identify anomalous behaviors in “equivalent” test cases

§ Assume small changes in test cases should lead to small changes in behavior

§ Flag anomalies to detect unsafe/unstable behavior for certain configurations

Page 6: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Metamorphic Equivalences

§ Behavior should be relatively independent of:§ Repeated runs§ Geographic rotation§ Geographic translation§ Obstacle locations § Obstacle formations

Page 7: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Comparing Behaviors

§ Flight path shape§ Experimental

§ Safety property violations§ Time in unsafe internal states§ Control state sequences

Page 8: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Example Test Scenario

Starthere(LandingpadA)

Landhere(LandingpadB)

Drone

Avoidobstacles

Page 9: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Analyzing a Test Run

Page 10: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Identifying an Anomaly

Original Rotated1º

Page 11: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Identifying Another Anomaly

Page 12: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

360 Test Case Variants

Page 13: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Preliminary Findings

§ Model-based, metamorphic testing was practical and useful for safety testing of an autonomous system§ Identified unstable/unpredictable behaviors§ Identified corner cases with catastrophic failure and

landing problems§ Confirmed usefulness of safety-related features for

identifying anomalies (implemented as safety cages)

Page 14: Metamorphic, Model-Based Testing of …Metamorphic, Model-Based Testing of Autonomous Systems Mikael Lindvall Adam Porter GudjonMagnusson Christoph Schulze Testing Autonomous Systems

Future Work

§ Higher fidelity simulation§ Smarter (adaptive) test generation§ Automatically learn relationships between

changes in environment and changes in behavior

§ Define autonomy requirements