sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #34569
Re: [Question #271312]: Compile Individual lines
Question #271312 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/271312
Eugene Maslov posted a new comment:
Hi Jesus,
Just a suggestion of a trick.
To debug single lines, or the bottom of broken test, I write at the beginning of the script:
if False:
pass
# then all the script code goes
click("a.png")
click("b.png")
When the code fails with an error, I select the code above the failed line and indent it all to the right with "tab" key, so that the script would start from the failed line and from the state of the tested application that it was just stopped. After debugging, I unindent it all back with shift+tab.
It's easier than debugging as a different file, because captured images are saved directly into the folder of the script, without the need of copying.
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.