Closedown
This commit is contained in:
@@ -155,8 +155,6 @@ public class TestingList extends Panel {
|
||||
jScrollPane2 = new javax.swing.JScrollPane();
|
||||
jTable1 = new javax.swing.JTable();
|
||||
jCheckBox1 = new javax.swing.JCheckBox();
|
||||
jScrollPane1 = new javax.swing.JScrollPane();
|
||||
jTextField1 = new javax.swing.JTextArea();
|
||||
jButtonOpenLog = new javax.swing.JButton();
|
||||
|
||||
setLayout(new java.awt.BorderLayout());
|
||||
@@ -231,14 +229,6 @@ public class TestingList extends Panel {
|
||||
});
|
||||
add(jCheckBox1, java.awt.BorderLayout.LINE_START);
|
||||
|
||||
jTextField1.setColumns(20);
|
||||
jTextField1.setRows(5);
|
||||
jTextField1.setMaximumSize(new java.awt.Dimension(2147483647, 100));
|
||||
jTextField1.setPreferredSize(new java.awt.Dimension(204, 40));
|
||||
jScrollPane1.setViewportView(jTextField1);
|
||||
|
||||
add(jScrollPane1, java.awt.BorderLayout.PAGE_START);
|
||||
|
||||
jButtonOpenLog.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icons/log-icon-64px.png"))); // NOI18N
|
||||
jButtonOpenLog.setToolTipText("Open current sessions Log");
|
||||
jButtonOpenLog.addActionListener(new java.awt.event.ActionListener() {
|
||||
@@ -322,10 +312,8 @@ public class TestingList extends Panel {
|
||||
private javax.swing.JButton jButtonOpenLog;
|
||||
private javax.swing.JButton jButtonRun;
|
||||
private javax.swing.JCheckBox jCheckBox1;
|
||||
private javax.swing.JScrollPane jScrollPane1;
|
||||
private javax.swing.JScrollPane jScrollPane2;
|
||||
private javax.swing.JTable jTable1;
|
||||
private javax.swing.JTextArea jTextField1;
|
||||
// End of variables declaration//GEN-END:variables
|
||||
|
||||
|
||||
@@ -506,7 +494,6 @@ public class TestingList extends Panel {
|
||||
Properties propDevice = new Properties();
|
||||
Properties propTest = new Properties();
|
||||
String fileName = TESTS_DEVICES_DEFAULT_DIR;
|
||||
this.jTextField1.setText(fileName + "\n");
|
||||
File folder = new File(fileName);
|
||||
File testsFolder = null;
|
||||
String sTestName;
|
||||
@@ -516,22 +503,18 @@ public class TestingList extends Panel {
|
||||
File[] listOfFiles = folder.listFiles();
|
||||
for (File listOfFile : listOfFiles) {
|
||||
if (listOfFile.isFile()) {
|
||||
this.jTextField1.append("\nFile " + listOfFile.getName());
|
||||
} else if (listOfFile.isDirectory()) {
|
||||
this.jTextField1.append("\nDirectory " + listOfFile.getName());
|
||||
File configFile = new File(listOfFile.getPath() + FilenameUtils.separatorsToSystem("/.config"));
|
||||
if (configFile.exists() && !configFile.isDirectory()) {
|
||||
InputStream is = new FileInputStream(configFile);
|
||||
propDevice.load(is);
|
||||
//config of device was loaded. now load the config of each test belonging to the device
|
||||
sTestName = TESTS_TESTS_DEFAULT_DIR + propDevice.getProperty("tests");
|
||||
this.jTextField1.append("\nTest suite: " + sTestName);
|
||||
testsFolder = new File(sTestName);
|
||||
if (testsFolder.exists() && testsFolder.isDirectory()) {
|
||||
File[] listOfTests = testsFolder.listFiles();
|
||||
for (File listOfTest : listOfTests) {
|
||||
if (listOfTest.isDirectory()) {
|
||||
this.jTextField1.append("\nTest: " + listOfTest.getPath());
|
||||
configFile = new File(listOfTest.getPath() + FilenameUtils.separatorsToSystem("/.config"));
|
||||
if (configFile.exists() && !configFile.isDirectory()) {
|
||||
InputStream ist = new FileInputStream(configFile);
|
||||
@@ -540,11 +523,6 @@ public class TestingList extends Panel {
|
||||
propDevice.getProperty("description"),
|
||||
propDevice.getProperty("tests"),
|
||||
propTest.getProperty("name"));
|
||||
this.jTextField1.append("\nProperties: ");
|
||||
this.jTextField1.append(propDevice.getProperty("name"));
|
||||
this.jTextField1.append(propDevice.getProperty("description"));
|
||||
this.jTextField1.append(propDevice.getProperty("tests"));
|
||||
this.jTextField1.append(propTest.getProperty("name"));
|
||||
iCounter++;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user