← Back to team overview

sikuli-driver team mailing list archive

Re: [Question #176537]: Organizing Sikuli scripts, that represent tests

 

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

    Status: Solved => Open

dinev is still having a problem:
Thanks I will try this.

Question: If I use the method above and create another tests like
test1.sikuli that imports myImages should I Be able to run them from
play button on top - single test

Q2: in order to organize a suite how should I proceed? I imagine something like this
#=======================
import unittest

class MyTests(unittest.TestCase):
      def test1(self):
      # should I do
      import test1.sikuli


      def test21(self):

suite = unittest.TestLoader().loadTestsFromTestCase(MyTests)
unittest.TextTestRunner(verbosity=2).run(suite)
#=============================


Advice is appreciated.
Thanks

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