1) If you keep the default directory, is the file written?
=> The anwser should be YES if the unittest doesn't hang (i.e all test finish regardless outcome).
2) If you change the Default directory, is the file written?
=> If No:
using the default directory which is set to 'C:\' in the library parameter list results in all log messages to the device log showing success. there are no error messages.
Changing the directory to C:\Temp\ has the same result all show sucess, and no error mesages.
but the xml file is not there in either case.
This is the export of the log entries runing the test using the default path
you are most likely affected by this security fix: Codesys Advisory 2023-01
get the files from Program data or change that setting (Forceiecfilepath) to zero.
hope this gives you enough hints
Last edit: hermsen 2023-04-10
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
1) If you keep the default directory, is the file written?
=> The anwser should be YES if the unittest doesn't hang (i.e all test finish regardless outcome).
2) If you change the Default directory, is the file written?
=> If No:
The XML file is only dumped at the end of all the tests.
If the xml file is incomplete, assign a bigger filebuffer until the file is dumped correct.
Let me know your outcome.
Last edit: hermsen 2023-04-10
I am confused.
As I said in my post
but the xml file is not there in either case.
This is the export of the log entries runing the test using the default path
This is the export of the log entries with a differnt path (C:\Temp), set to allow full access to the directory
Last edit: thecolonel26 2023-04-10
Wait I found it. It seems it ignores the "C:\"
I changed the path to just the file name 'coUnit_xunit_testresults.xml' and then I found it written to
C:\ProgramData\CODESYS\CODESYSControlWinV3x64\B4A102F1\PlcLogic
Is is rather confusing.
Where is it writing to if I put C:\ on it? it says it is suceeding.
Last edit: thecolonel26 2023-04-10
you are most likely affected by this security fix: Codesys Advisory 2023-01
get the files from Program data or change that setting (Forceiecfilepath) to zero.
hope this gives you enough hints
Last edit: hermsen 2023-04-10