Autopsy Developer Documentation  4.19.3
Graphical digital forensics platform for The Sleuth Kit and other tools.
Functional/Unit Testing in Autopsy

Introduction

Autopsy has both functional and unit tests for the Core and KeywordSearch NBMs. These tests can be run at the NBM, package or file level via Netbeans or Apache Ant. The following sections will demonstrate how to run at each of these granularities with both Netbeans and Apache Ant.

Running Tests by NBM

unit_functional_testing_nbm.png

An internet connection may be required the first time the Autopsy Core tests are run. The ant target will attempt to reach out to Google Drive to download the required test data. This data is stored in autopsy\Core\test\qa-functional\data. In the event that tests are failing due to missing test data, manually run the “getTestDataFiles” target from the Core/build.xml script.

Running Tests by Package

unit_functional_testing_package.png

Running Tests by File

unit_functional_testing_file.png

Copyright © 2012-2022 Basis Technology. Generated on Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.