Autopsy  4.21.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
org.sleuthkit.autopsy.testing.AutopsyTestCases Class Reference

Public Member Functions

 AutopsyTestCases (boolean isMultiUser)
 
void screenshot (String name)
 
void testAddSourceWizard1 ()
 
void testConfigureHash ()
 
void testConfigureIngest1 ()
 
void testConfigureIngest2 ()
 
void testConfigureSearch ()
 
void testExpandDataSourcesTree ()
 
void testGenerateReportButton () throws IOException
 
void testGenerateReportToolbar ()
 
void testIngest ()
 
void testNewCaseWizard ()
 
void testNewCaseWizardOpen (String title)
 
void testStartAddImageFileDataSource ()
 
void testStartAddLogicalFilesDataSource ()
 

Static Public Member Functions

static String getEscapedPath (String path)
 

Private Member Functions

void expandNodes (JTreeOperator jto, TreePath tp)
 
void logSystemDiagnostics ()
 
void setMultiUserPerferences ()
 
Timeouts setTimeout (String name, int value)
 

Static Private Member Functions

static< T > List< T > getFilteredLimited (List< Map< String, String >> objects, Function< Map< String, String >, T > keyObjMapper, Comparator< T > comparator)
 
static List< Pair< String, Long > > getKeyValLimited (List< Map< String, String >> objects, String keyId, String valId)
 
static String getProcStdOut (String...cmd) throws IOException
 
static String getSystemDiagnostics ()
 
static String getWmicString (String wmicQuery, String key) throws IOException
 
static List< Map< String, String > > getWmicTable (String cmd) throws IOException
 

Private Attributes

long start
 

Static Private Attributes

static final long DIALOG_FIND_TIMEOUT_MINUTES = 5
 
static final Pattern EQUALS_PATTERN = Pattern.compile("^([^=]*)=(.*)$")
 
static Set< String > IGNORED_PROCESSES = Stream.of("_Total", "Idle", "Memory Compression").collect(Collectors.toSet())
 
static final Logger logger = Logger.getLogger(AutopsyTestCases.class.getName())
 
static final String NEWLINE = System.lineSeparator()
 
static final int TOP_NUM = 10
 

Detailed Description

Definition at line 84 of file AutopsyTestCases.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.testing.AutopsyTestCases.AutopsyTestCases ( boolean  isMultiUser)

Member Function Documentation

void org.sleuthkit.autopsy.testing.AutopsyTestCases.expandNodes ( JTreeOperator  jto,
TreePath  tp 
)
private
static String org.sleuthkit.autopsy.testing.AutopsyTestCases.getEscapedPath ( String  path)
static
static <T> List<T> org.sleuthkit.autopsy.testing.AutopsyTestCases.getFilteredLimited ( List< Map< String, String >>  objects,
Function< Map< String, String >, T >  keyObjMapper,
Comparator< T >  comparator 
)
staticprivate

Returns a list of a given type limited to TOP_NUM of the first values.

Parameters
objectsThe objects to sort and filter.
keyObjMapperMaps the list of map objects to the new new value.
comparatorComparator determining first values.
Returns
The list capped at TOP_NUM.

Definition at line 697 of file AutopsyTestCases.java.

Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getKeyValLimited(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics().

static List<Pair<String, Long> > org.sleuthkit.autopsy.testing.AutopsyTestCases.getKeyValLimited ( List< Map< String, String >>  objects,
String  keyId,
String  valId 
)
staticprivate

Returns a pair of a string key and long number value limited to TOP_NUM of the highest number values.

Parameters
objectsThe list of objects.
keyIdThe id of the key in the map.
valIdThe id of the value in the map.
Returns
The highest valued key value pairs.

Definition at line 672 of file AutopsyTestCases.java.

References org.sleuthkit.autopsy.testing.AutopsyTestCases.getFilteredLimited().

Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics().

static String org.sleuthkit.autopsy.testing.AutopsyTestCases.getProcStdOut ( String...  cmd) throws IOException
staticprivate

Runs the command line entry returning standard output.

Parameters
cmdThe command.
Returns
The standard output.
Exceptions
IOException

Definition at line 712 of file AutopsyTestCases.java.

Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicTable().

static String org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics ( )
staticprivate
static String org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicString ( String  wmicQuery,
String  key 
) throws IOException
staticprivate

Returns a string from a wmic query.

Parameters
wmicQueryThe wmic query.
keyThe key column to return.
Returns
The first row's value for the given key.
Exceptions
IOException

Definition at line 767 of file AutopsyTestCases.java.

References org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicTable().

Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics().

static List<Map<String, String> > org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicTable ( String  cmd) throws IOException
staticprivate

Returns a list of maps mapping the wmic header column (lower cased) to the value for the row.

Parameters
cmdThe wmic command to run.
Returns
The list of rows.
Exceptions
IOException

Definition at line 731 of file AutopsyTestCases.java.

References org.sleuthkit.autopsy.testing.AutopsyTestCases.getProcStdOut().

Referenced by org.sleuthkit.autopsy.testing.AutopsyTestCases.getSystemDiagnostics(), and org.sleuthkit.autopsy.testing.AutopsyTestCases.getWmicString().

void org.sleuthkit.autopsy.testing.AutopsyTestCases.logSystemDiagnostics ( )
private
void org.sleuthkit.autopsy.testing.AutopsyTestCases.screenshot ( String  name)
void org.sleuthkit.autopsy.testing.AutopsyTestCases.setMultiUserPerferences ( )
private
Timeouts org.sleuthkit.autopsy.testing.AutopsyTestCases.setTimeout ( String  name,
int  value 
)
private
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testAddSourceWizard1 ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureHash ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureIngest1 ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureIngest2 ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testConfigureSearch ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testExpandDataSourcesTree ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportButton ( ) throws IOException
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testGenerateReportToolbar ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testIngest ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizard ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testNewCaseWizardOpen ( String  title)
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddImageFileDataSource ( )
void org.sleuthkit.autopsy.testing.AutopsyTestCases.testStartAddLogicalFilesDataSource ( )

Member Data Documentation

final long org.sleuthkit.autopsy.testing.AutopsyTestCases.DIALOG_FIND_TIMEOUT_MINUTES = 5
staticprivate

Definition at line 90 of file AutopsyTestCases.java.

final Pattern org.sleuthkit.autopsy.testing.AutopsyTestCases.EQUALS_PATTERN = Pattern.compile("^([^=]*)=(.*)$")
staticprivate

Definition at line 719 of file AutopsyTestCases.java.

Set<String> org.sleuthkit.autopsy.testing.AutopsyTestCases.IGNORED_PROCESSES = Stream.of("_Total", "Idle", "Memory Compression").collect(Collectors.toSet())
staticprivate

Definition at line 539 of file AutopsyTestCases.java.

final Logger org.sleuthkit.autopsy.testing.AutopsyTestCases.logger = Logger.getLogger(AutopsyTestCases.class.getName())
staticprivate

Definition at line 86 of file AutopsyTestCases.java.

final String org.sleuthkit.autopsy.testing.AutopsyTestCases.NEWLINE = System.lineSeparator()
staticprivate
long org.sleuthkit.autopsy.testing.AutopsyTestCases.start
private
final int org.sleuthkit.autopsy.testing.AutopsyTestCases.TOP_NUM = 10
staticprivate

Definition at line 537 of file AutopsyTestCases.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2022 Basis Technology. Generated on: Tue Feb 6 2024
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.