Ugh
From Process Explorer I can see that the Java process that is running
the Maven plugin and that Java process is also running the SUT, is
responsible for keeping the csv file open.
It seems that this has something to do with the SUT, which should have
been closed between the test cases, because if I create files using
normal Robot keywords, deleting those files can be done without errors.
I will consult the developer and lets see how it goes on that front.
But I can reproduce the problem, with small trick. The test suite in the
attachment deletes all *.txt files from and c:\ and then creates a
c:\foobar.txt file. Now If I open c:\foobar.txt file to a MS excel and
run the "write file" test suite, I get the same error message:
"OSError: unlink(): an unknown error occured: c:\foobar.txt." It can be
also reproduced when running with jybot and one does not need to use the
Maven plugin. When the test suite is run by the pybot, the error text is
better: WindowsError: [Error 32] The process cannot access the file
because it is being used by another process: u'c:\\foobar.txt'.
The "unlink(): an unknown error" is somewhat confusing and one could
hope that the error text could be better. But if that relies enhancing
the Jython, then it is a long shot. But thank you all from help.
Tested in Windows 7 (64bit) and Robot Framework 2.7.1 (Python 2.7.2 on
win32) and Robot Framework 2.7.1 (Jython 2.5.2 on java1.7.0_03)
-Tatu
> --
> You received this message because you are subscribed to the Google
> Groups "robotframework-users" group.
> To view this discussion on the web visit
>
https://groups.google.com/d/msg/robotframework-users/-/V3epw3cBMw0J.
> To post to this group, send email to
>
robotframe...@googlegroups.com.
> To unsubscribe from this group, send email to
>
robotframework-u...@googlegroups.com.
> For more options, visit this group at
>
http://groups.google.com/group/robotframework-users?hl=en.