mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-06 21:00:22 +00:00
Minor fix to the regression test
may require reinstalling cygwin with python updates
This commit is contained in:
parent
cfaa710501
commit
28889c51ec
@ -633,7 +633,7 @@ def compare_to_gold_html():
|
||||
if os.path.isdir(os.path.join(os.getcwd(), case.output_dir, case.image_name, "AutopsyTestCase", "Reports", fs)):
|
||||
htmlfolder = fs
|
||||
autopsy_html_path = make_local_path(case.output_dir, case.image_name, "AutopsyTestCase", "Reports", htmlfolder) #, "AutopsyTestCase", "Reports", htmlfolder)
|
||||
print autopsy_html_path
|
||||
print(autopsy_html_path)
|
||||
|
||||
|
||||
try:
|
||||
@ -1262,7 +1262,7 @@ def vsBuild():
|
||||
vs.append("/p:configuration=release")
|
||||
vs.append("/p:platform=win32")
|
||||
vs.append("/t:rebuild")
|
||||
print vs
|
||||
print(vs)
|
||||
subprocess.call(vs)
|
||||
|
||||
|
||||
@ -1563,4 +1563,4 @@ if __name__ == "__main__":
|
||||
if SYS is OS.WIN or SYS is OS.CYGWIN:
|
||||
main()
|
||||
else:
|
||||
print("We only support Windows and Cygwin at this time.")
|
||||
print("We only support Windows and Cygwin at this time.")
|
||||
|
@ -24,6 +24,7 @@ import java.awt.Robot;
|
||||
import java.awt.Toolkit;
|
||||
import java.awt.image.BufferedImage;
|
||||
import java.io.File;
|
||||
import java.io.FileWriter;
|
||||
import java.io.IOException;
|
||||
import java.text.DateFormat;
|
||||
import java.text.SimpleDateFormat;
|
||||
@ -35,7 +36,6 @@ import java.util.logging.Level;
|
||||
import java.util.logging.Logger;
|
||||
import javax.imageio.ImageIO;
|
||||
import javax.swing.JDialog;
|
||||
import javax.swing.JTabbedPane;
|
||||
import javax.swing.JTextField;
|
||||
import junit.framework.Test;
|
||||
import junit.framework.TestCase;
|
||||
@ -116,10 +116,13 @@ public class RegressionTest extends TestCase{
|
||||
logger.info("New Case");
|
||||
NbDialogOperator nbdo = new NbDialogOperator("Welcome");
|
||||
JButtonOperator jbo = new JButtonOperator(nbdo, 0); // the "New Case" button
|
||||
jbo.clickMouse();
|
||||
jbo.push();
|
||||
}
|
||||
|
||||
public void testNewCaseWizard() {
|
||||
public void testNewCaseWizard() throws IOException {
|
||||
FileWriter outp = new FileWriter("C:\\log.txt");
|
||||
outp.write("got to 124");
|
||||
outp.flush();
|
||||
logger.info("New Case Wizard");
|
||||
WizardOperator wo = new WizardOperator("New Case Information");
|
||||
JTextFieldOperator jtfo1 = new JTextFieldOperator(wo, 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user