sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #09682
Re: [Question #192601]: Unittest - unable to start the application from setup
Question #192601 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/192601
Status: Needs information => Open
Prem Nambiar gave more information on the question:
Hi RaiMan,
i want to start the application from the setup and execute bunch of
testcases in other functions. but I cannot start the application from setup
even after change to \. Here is the code snippet I used
class MyTest1(unittest.TestCase):
def setup(self):
aview = App(r'C:\Program Files\A-VIEW Classroom\A-VIEW
Classroom.exe')
aview.open()
def test1(self):
pass
Just to make sure it is not due to the syntax error I tried the exact code
by copy/paste from setup to test1 function and the application was
started.
Thanks
On Wed, Apr 4, 2012 at 2:30 PM, RaiMan <question192601@xxxxxxxxxxxxxxxxxxxxx
> wrote:
> Your question #192601 on Sikuli changed:
> https://answers.launchpad.net/sikuli/+question/192601
>
> Status: Open => Needs information
>
> RaiMan requested more information:
> not really clear, what your problem is.
> please talk about, what you want to achieve and paste error messages if
> any.
>
> setUp() is specific for each class TestCase().
>
> each class TestCase can have as many testXXX() as you like.
> per class TestCase, each testXXX is preceded by the class's setUp() and
> followed by the class's teardown.
>
> So usually tests are grouped in one class, according to the fact, that
> they need the same setUp() and tearDown().
>
> --- aview = App(r'C:/Files/Classroom/Classroom.exe') # not able to start
> the app
> when using raw strings, you have to use \
>
> --
> To answer this request for more information, you can either reply to
> this email or enter your reply at the following page:
> https://answers.launchpad.net/sikuli/+question/192601
>
> You received this question notification because you asked the question.
>
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.