I am running my tests in Win Control 64 SL with the demo, so all should be good.
The file was not writing to C:. No error was shown in the log. the log even said that it had written it.
I thought maybe it was a file system permissions issues so I created a folder called temp, sets its permission to allow everyone read/write/modify access and updated the path in the library Parameter list.
It again says it wrote the file to the location I specified but nothing is there.
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:
- check your PATH notation in CODESYS(!),
- check the file write FB error messages,
- check if the unittest doesn't hang (i.e all test finish regardless outcome).
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
1. 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.
2. 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
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