mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-08 14:19:32 +00:00
Merge pull request #2791 from zhhl/2640-nightlyTimeoutIssue
2640: wait until the 'Add Data Source' dialog loaded
This commit is contained in:
commit
8effe75dd6
@ -106,6 +106,9 @@ public class AutopsyTestCases {
|
|||||||
public void testStartAddImageFileDataSource() {
|
public void testStartAddImageFileDataSource() {
|
||||||
logger.info("Starting Add Image process");
|
logger.info("Starting Add Image process");
|
||||||
WizardOperator wo = new WizardOperator("Add Data Source");
|
WizardOperator wo = new WizardOperator("Add Data Source");
|
||||||
|
while(!wo.btNext().isEnabled()){
|
||||||
|
new Timeout("pausing", 1000).sleep(); // give it a second till the Add Data Source dialog enabled
|
||||||
|
}
|
||||||
//select the toggle button for Disk Image or VM File it will be the first button created and proceed to next panel
|
//select the toggle button for Disk Image or VM File it will be the first button created and proceed to next panel
|
||||||
JToggleButtonOperator jtbo = new JToggleButtonOperator(wo, 0);
|
JToggleButtonOperator jtbo = new JToggleButtonOperator(wo, 0);
|
||||||
jtbo.clickMouse();
|
jtbo.clickMouse();
|
||||||
@ -122,6 +125,9 @@ public class AutopsyTestCases {
|
|||||||
public void testStartAddLogicalFilesDataSource() {
|
public void testStartAddLogicalFilesDataSource() {
|
||||||
logger.info("Starting Add Logical Files process");
|
logger.info("Starting Add Logical Files process");
|
||||||
WizardOperator wo = new WizardOperator("Add Data Source");
|
WizardOperator wo = new WizardOperator("Add Data Source");
|
||||||
|
while(!wo.btNext().isEnabled()){
|
||||||
|
new Timeout("pausing", 1000).sleep(); // give it a second till the Add Data Source dialog enabled
|
||||||
|
}
|
||||||
//select the toggle button for Logical Files it will be the third button created and proceed to next panel
|
//select the toggle button for Logical Files it will be the third button created and proceed to next panel
|
||||||
JToggleButtonOperator jtbo = new JToggleButtonOperator(wo, 2);
|
JToggleButtonOperator jtbo = new JToggleButtonOperator(wo, 2);
|
||||||
jtbo.clickMouse();
|
jtbo.clickMouse();
|
||||||
@ -154,6 +160,9 @@ public class AutopsyTestCases {
|
|||||||
|
|
||||||
logger.info("Looking for hash lookup module in ingest job settings panel");
|
logger.info("Looking for hash lookup module in ingest job settings panel");
|
||||||
WizardOperator wo = new WizardOperator("Add Data Source");
|
WizardOperator wo = new WizardOperator("Add Data Source");
|
||||||
|
while(!wo.btNext().isEnabled()){
|
||||||
|
new Timeout("pausing", 1000).sleep(); // give it a second till the Add Data Source dialog enabled
|
||||||
|
}
|
||||||
JTableOperator jto = new JTableOperator(wo, 0);
|
JTableOperator jto = new JTableOperator(wo, 0);
|
||||||
int row = jto.findCellRow("Hash Lookup", 2, 0);
|
int row = jto.findCellRow("Hash Lookup", 2, 0);
|
||||||
jto.clickOnCell(row, 1);
|
jto.clickOnCell(row, 1);
|
||||||
@ -200,6 +209,9 @@ public class AutopsyTestCases {
|
|||||||
public void testConfigureIngest2() {
|
public void testConfigureIngest2() {
|
||||||
logger.info("Looking for keyword search module in ingest job settings panel");
|
logger.info("Looking for keyword search module in ingest job settings panel");
|
||||||
WizardOperator wo = new WizardOperator("Add Data Source");
|
WizardOperator wo = new WizardOperator("Add Data Source");
|
||||||
|
while(!wo.btNext().isEnabled()){
|
||||||
|
new Timeout("pausing", 1000).sleep(); // give it a second till the Add Data Source dialog enabled
|
||||||
|
}
|
||||||
JTableOperator jto = new JTableOperator(wo, 0);
|
JTableOperator jto = new JTableOperator(wo, 0);
|
||||||
int row = jto.findCellRow("Keyword Search", 2, 0);
|
int row = jto.findCellRow("Keyword Search", 2, 0);
|
||||||
jto.clickOnCell(row, 1);
|
jto.clickOnCell(row, 1);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user