← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #177897]: Run some test cases usin unit test

 

Question #177897 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/177897

Ezequiel posted a new comment:
Hi RaiMan,

I tried this and works:

*****tests.sikuli****

def test1(self):
     print "test1"

def test2(self):
     print "test2"

def test3(self):
     print "test3"

Now, related to your answer how can I call them with other script?:
Must I use this??

myScriptPath ="C:\\xxx\\xxx\\Desktop\\SIKULI TCs\\FOLDER"
if not myScriptPath in sys.path: sys.path.append(myScriptPath)
import tests

test.test1()
test.test2()
.......

Thanks

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.