diff --git a/plugins/TestingList.java b/plugins/TestingList.java index c7ca56a..07c9682 100644 --- a/plugins/TestingList.java +++ b/plugins/TestingList.java @@ -79,7 +79,7 @@ public class TestingList extends Panel { //these paths are converted to unix or win path according to host OS private String TESTS_DEVICES_DEFAULT_DIR = new java.io.File( "." ).getCanonicalPath()+ FilenameUtils.separatorsToSystem("/home/script/tests/production/"); private String TESTS_TESTS_DEFAULT_DIR = new java.io.File( "." ).getCanonicalPath()+ FilenameUtils.separatorsToSystem("/home/script/tests/tests/"); - private String TESTS_LOG_DEFAULT_DIR = new java.io.File( "." ).getCanonicalPath()+ FilenameUtils.separatorsToSystem("/home/script/tests/log/TestsLog"+getNow()+".txt"); + private String TESTS_LOG_DEFAULT_DIR = new java.io.File( "." ).getCanonicalPath()+ FilenameUtils.separatorsToSystem("/home/script/tests/log/TestsLog"+getnow()+".txt"); //table1 columns indexes private int COL_CHECK = 0; private int COL_TIME = 1; @@ -392,6 +392,12 @@ public class TestingList extends Panel { Date date = new Date(); return dateFormat.format(date); } + + public String getnow(){ + DateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); + Date date = new Date(); + return dateFormat.format(date); + } public void loadTests() throws FileNotFoundException, IOException{ diff --git a/script/tests/log/TestsLog.txt b/script/tests/log/TestsLog.txt new file mode 100644 index 0000000..2ee062e --- /dev/null +++ b/script/tests/log/TestsLog.txt @@ -0,0 +1,4 @@ +Jun 09, 2015 3:38:57 PM TestingList$NetbeansPluginPanel showResult +INFO: Running Test Range Shifter Tests ... +Jun 09, 2015 3:39:03 PM TestingList$NetbeansPluginPanel showResult +SEVERE: Test Range Shifter Tests result: Test failed (Failed)