sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #03043
Re: [Question #160003]: Global variables and functions argument in unittest
Question #160003 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/160003
Status: Open => Answered
Tsung-Hsiang Chang proposed the following answer:
1. use self. globalvar to access that "global variable" (which is not actually global, but a class attribute).
2. Unit testing framework doesn't know what parameters needed to pass into the test* methods. You can create your own functions with arbitrary parameters and call them from the test* methods.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.