Sikuli not pausing the script

Asked by Zoran Lisovac

I want to pause the execution of the script for 2 minutes:

suite=unittest.TestLoader().loadTestsFromTestCase(Test1)
suite.addTests(unittest.TestLoader().loadTestsFromTestCase(Test2))

result = XMLTestRunner(file("unittest xml result.xml", "w")).run(suite)

in the beginning of the test runner file I try both:

import time
time.sleep(120)
and
wait(120).

Neither works, tests still start running

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Eugene Maslov (emaslov1) said :
#1

I haven't this problem.
My start script is similar, though not importing time module, as Sikuli imports it itself.

I tried to put at the beginning:
popup("start")
wait(120)
popup("after 120 sec")

Starting from both IDE and the command line, the script waits exactly 2 minutes between the dialog boxes and then goes ahead.
The same without the dialogs.

Windows 7, SikulixIDE 1.1.0 (2015-07-07), Java SE Runtime Environment (build 1.7.0_45-b18)

Can you help with this problem?

Provide an answer of your own, or ask Zoran Lisovac for more information if necessary.

To post a message you must log in.