sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #23329
[Question #242133]: why not synchronized for some basic functions?
New question #242133 on Sikuli:
https://answers.launchpad.net/sikuli/+question/242133
We use jython and sikuli on Mac 10.6-10.8.
But I found some basic functions are not synchronized/blocking, that's very annoying.
For example, os.remove() and os.system("default write <a plist file> <key> <value>".
I know they are synchronous/blocking from Sikuli doc, but in fact, it's *NOT* at least by my testing.
For example, if I call os.remove() to remove a configuration file, then launch an application.
then, in the application, it still can read the configuration file. and when I check the configuration file, it's been deleted.
For "os.system("default write <a plist file> <key> <value>", maybe relative to the special command.. seems this command will write a temporary file, then overwrite the original one. and not synchronous again.
These seems are some trivial issues, but make your test cases unstable, and the test code are very ugly.
Do you have any best practices?
thanks.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.