I am using DSS Java Scripting to automate my Board testing. Where as my test code prompt for console input (file name to create a log) to proceed. I need a way to feed this file name (string) to IO console from the Java scripting.
I looked into the relevant community page Interactive script with DSS. But I could not make it work.
My Java Code:
// Load Program file
debugSession.memory.loadProgram("./Memory_test.out");
// Log all output to console window (e.g. printf)
debugSession.beginCIOLogging("./test/S01_Console_log".txt")
try
{
debugSession.target.run(); // after this My test code Memory_test.out will promt for file name in IO colsole
}
catch(logException)
{
script.traceWrite("Program Ended");
}
in the above code the test code waiting for the input file name till timeout. So I need the following string to be input to the IO console upon the promt
String: S01_"+voltage+"_"+temp+"_".txt"
where the "voltage" & "temp" are variables used in the scripts.
Thanks in advance,
Regards,
Karthikeyan D