sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #24479
Re: [Question #244702]: Is there a keyword driven approach to managing tests in Sikuli?
Question #244702 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/244702
Status: Answered => Open
shaihulud is still having a problem:
Great, thanks; thats a very big step in the right direction.
Unfortunately i don´t know Python....or much scripting for that matter so i´m not getting it to work :(
What I have done so far:
created two tests in the same directory. tests are called "open" and "close"
"open" opens a program and "close" closes it
Then i created a third test called "TestSuite" in which i hope to import and use the test cases "open" and "close".
I created a function in the test "open" and called it "ActionOpen" - it
seems i should create a function in order to call it in the "TestSuite"?
In the test "TestSuite" i typed:
myScriptPath = "C\\Users\\caan\\Documents\\SikuliModules"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
#im not sure why i typed the 2 lines above but seemed like I had to from the tutorial linked in your answer
import open
open.ActionOpen()
I feel like im fumbling in the dark so some pointers would be very helpful!
As I understand it its easier if the tests are in the same directory. But does that mean the folders for the test files need to be in the same directory or the testfiles themselves (script + pictures etc)?
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.