mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
updated regressiontest.java
Signed-off-by: Sean-M <Smoss117@gmail.com>
This commit is contained in:
parent
b08647f94d
commit
3fcff19c3f
@ -93,12 +93,12 @@ public class RegressionTest extends TestCase{
|
|||||||
enableModules(".*");
|
enableModules(".*");
|
||||||
conf = conf.addTest("testNewCaseWizardOpen",
|
conf = conf.addTest("testNewCaseWizardOpen",
|
||||||
"testNewCaseWizard",
|
"testNewCaseWizard",
|
||||||
"testStartAddImage",
|
"testStartAddDataSource",
|
||||||
"testConfigureIngest1",
|
"testConfigureIngest1",
|
||||||
"testConfigureHash",
|
"testConfigureHash",
|
||||||
"testConfigureIngest2",
|
"testConfigureIngest2",
|
||||||
"testConfigureSearch",
|
"testConfigureSearch",
|
||||||
"testAddImageWizard1",
|
"testAddSourceWizard1",
|
||||||
"testIngest",
|
"testIngest",
|
||||||
"testGenerateReportToolbar",
|
"testGenerateReportToolbar",
|
||||||
"testGenerateReportButton"
|
"testGenerateReportButton"
|
||||||
@ -143,17 +143,17 @@ public class RegressionTest extends TestCase{
|
|||||||
wo.btFinish().clickMouse();
|
wo.btFinish().clickMouse();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testStartAddImage() {
|
public void testStartAddDataSource() {
|
||||||
logger.info("Starting Add Image process");
|
logger.info("Starting Add Image process");
|
||||||
WizardOperator wo = new WizardOperator("Add Image");
|
WizardOperator wo = new WizardOperator("Add Data");
|
||||||
JTextFieldOperator jtfo0 = new JTextFieldOperator(wo, 0);
|
JTextFieldOperator jtfo0 = new JTextFieldOperator(wo, 0);
|
||||||
String imageDir = System.getProperty("img_path");
|
String imageDir = System.getProperty("img_path");
|
||||||
((JTextField)jtfo0.getSource()).setText(imageDir);
|
((JTextField)jtfo0.getSource()).setText(imageDir);
|
||||||
wo.btNext().clickMouse();
|
wo.btNext().clickMouse();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void testAddImageWizard1() {
|
public void testAddSourceWizard1() {
|
||||||
WizardOperator wo = new WizardOperator("Add Image");
|
WizardOperator wo = new WizardOperator("Add Data");
|
||||||
while(!wo.btFinish().isEnabled()) {
|
while(!wo.btFinish().isEnabled()) {
|
||||||
new Timeout("pausing", 1000).sleep(); // give it a second (or five) to process
|
new Timeout("pausing", 1000).sleep(); // give it a second (or five) to process
|
||||||
}
|
}
|
||||||
@ -163,7 +163,7 @@ public class RegressionTest extends TestCase{
|
|||||||
|
|
||||||
public void testConfigureIngest1() {
|
public void testConfigureIngest1() {
|
||||||
logger.info("Ingest 1");
|
logger.info("Ingest 1");
|
||||||
WizardOperator wo = new WizardOperator("Add Image");
|
WizardOperator wo = new WizardOperator("Add Data");
|
||||||
JTableOperator jto = new JTableOperator(wo, 0);
|
JTableOperator jto = new JTableOperator(wo, 0);
|
||||||
int row = jto.findCellRow("Hash Lookup", 1, 0);
|
int row = jto.findCellRow("Hash Lookup", 1, 0);
|
||||||
jto.clickOnCell(row, 1);
|
jto.clickOnCell(row, 1);
|
||||||
@ -203,7 +203,7 @@ public class RegressionTest extends TestCase{
|
|||||||
|
|
||||||
public void testConfigureIngest2() {
|
public void testConfigureIngest2() {
|
||||||
logger.info("Ingest 2");
|
logger.info("Ingest 2");
|
||||||
WizardOperator wo = new WizardOperator("Add Image");
|
WizardOperator wo = new WizardOperator("Add Data");
|
||||||
JTableOperator jto = new JTableOperator(wo, 0);
|
JTableOperator jto = new JTableOperator(wo, 0);
|
||||||
int row = jto.findCellRow("Keyword Search", 1, 0);
|
int row = jto.findCellRow("Keyword Search", 1, 0);
|
||||||
jto.clickOnCell(row, 1);
|
jto.clickOnCell(row, 1);
|
||||||
@ -239,7 +239,7 @@ public class RegressionTest extends TestCase{
|
|||||||
}
|
}
|
||||||
JButtonOperator jbo2 = new JButtonOperator(jdo, "OK", 0);
|
JButtonOperator jbo2 = new JButtonOperator(jdo, "OK", 0);
|
||||||
jbo2.pushNoBlock();
|
jbo2.pushNoBlock();
|
||||||
WizardOperator wo = new WizardOperator("Add Image");
|
WizardOperator wo = new WizardOperator("Add Data");
|
||||||
JCheckBoxOperator jbco0 = new JCheckBoxOperator(wo, "Process Unallocated Space");
|
JCheckBoxOperator jbco0 = new JCheckBoxOperator(wo, "Process Unallocated Space");
|
||||||
if(Boolean.parseBoolean(System.getProperty("ignore_unalloc"))) {
|
if(Boolean.parseBoolean(System.getProperty("ignore_unalloc"))) {
|
||||||
jbco0.doClick();
|
jbco0.doClick();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user