sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10194
Re: [Question #194681]: Use String to call Function?
Question #194681 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194681
Status: Open => Answered
RaiMan proposed the following answer:
imports cannot be use with string variables.
But why inventing the wheel again?
Have a look at Pythons unittest feature, it has all, that you need.
good start: faq 1804
If you want to stick with your design:
Have a look at Pythons execfile() and Sikuli's addImagePath(). There you could use your strings.
BTW: You say: I would like to use it for a huge testing.
Then you should think about an image repository with a naming convention for your images right from the beginning. So you would not have the images scattered over the different subtests and could further automate the image handling.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.