New question #219853 on Sikuli:
https://answers.launchpad.net/sikuli/+question/219853

Hi all, 
following the https://answers.launchpad.net/sikuli/+faq/1804 I'm trying to 
build my own unittest framework using directly Python's unittest in Sikuli.

As explained in the faq1804 I defined a myTestCases.sikuli script containing 
setUp(), tearDown() and TestCases() methods and another mainTest.sikuli script 
containing :

import unittest
from myTestCases import *
suite = unittest.TestLoader().loadTestsFromTestCase(TestCaseA)
unittest.TextTestRunner(verbosity=2).run(suite)

When I try to launch this main script by using sikuli command line 
(Sikuli-IDE.bat -r "mainTest.sikuli") it fails because : 
"No module named unittest".

Same result using the sikuli IDE

I tried to add to sys.path the right Python27 Lib path but it doesn't work.

Could someone help me please (sorry I'm a python/Sikuli newbie ... ;) ?

Thanks,
Rayan

PS : My test environment : Windows 7 - 64 bit - SikuliX-1.0.rc3 (r905) with 
patch r930

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

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to