o Reality Gap
oReproducible
oScalable & Automatable
o Affordable
o Safe
oSimulation-based Test Generation
vs. Simulation-based Testing
o Reliable
o Not Reproducible
oLimited Test Scenarios
o Expensive & Time Consuming
o Unsafe
3
Field Testing
Aerialist
UAV Test Bench
5
"Simulation-basedtesting of unmanned aerial vehicles with Aerialist“, ICSE 2024
Khatiri, Sajad, Sebastiano Panichella, and Paolo Tonella
UAV Config.
Env. Config.
Commands
Expectation
Test Description
6.
Given an autonomousUAV flight mission
Generate test cases that violate safety distance to the
obstacles by placing obstacles in the environment
6
Test Generation
"Simulation-based Test Case Generation for Unmanned Aerial Vehicles in the
Neighborhood of real flights “, ICST 2023
Sajad Khatiri, Sebastiano Panichella, and Paolo Tonella
7.
7
First Edition
SBFT@ICSE 2024
"SBFTTool Competition 2024 - CPS-UAV Test Case Generation Track “, SBFT@ICSE 2024
Sajad Khatiri , et al.
• 6 competing test generation tools
• 1 baseline approach
• Generated tests for 6 flight missions
• 5 competing test generation tools
• 3 at ICST
• 2 at SBFT
Joint ICST/SBFT call for the second edition
8.
Competition Rules
• Usethe provided platform for test definition
• Use a test generation approach
• Place up to 3 box-shaped obstacles
• Size (length, width, height)
• Position (x, y, z)
• Orientation (r)
• Obstacles should
• Keep the mission physically possible
• Fit in the predefined area
• Be taller than the flight altitude (10m)
8
Evaluation
• 5 competingtest generation tools (ICST:3, SBFT:2)
• 1 baseline approach
• Generated tests for 3 flight missions
• With 100 Simulation Budget
• Using our K8S evaluation platform
• Reported a ranked test suite from the failing ones
10
11.
Evaluation Metrics
• Top20 Tests from each test suite were evaluated
• Failure Score
• Simulated 3 times
• Assign points to each execution
• Assign a score to each test case
• Calculate the failure score for the test suite
• Diversity Score
• Similarity of the area covered by the obstacles
• Assign a similarity score to each pair of tests
• Calculate the diversity score for the test suite
11