sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #10724
Re: [Question #194681]: Use String to call Function?
Question #194681 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/194681
CryoGenID posted a new comment:
Hello Raimund,
sorry for the huge delay here, I was completely packed here at work...
But now I want to get this testing working ;-)
Will I have a change to get s.th. like this working to start the other tests:
MAIN-File:
---
import InitSystem
import Test1
import Test2
etc. etc.
modulesToRun = ("Test1","Test2")
if (InitSystem.startUp()==0): # Init the tests
popup("ERROR during Login, cancelling all tests...")
exit
else: # Login was OK
# Testing Target: Full Text Search
for t in modulesToRun:
t.runModule()
InitSystem.shutDown() # Shut down the test
---
So each "Test-Module" has a "runModule()"-Function in which I run the individual tests for the Module.
What I only need to do is to the string from the "modulesToRun"-Array to call those "runModule()"-Functions...
How can I realize this? :-)
This would make the testing much more easy as:
- I have a defined point where I have to include/exclude new Test-Modules
- Have an image-directory automatically per Test-Module (and therefore no image chaos)
I hope that you can help me :-)
Thanks a lot and best regards,
Christian
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.