Re: [Sikuli-driver] [Question #402722]: Create Debug.user log message with milliseconds
Question #402722 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/402722 Status: Open => Answered RaiMan proposed the following answer: Supposing, you are using Python scripting: - switch of the time stamp: Settings.UserLogTime = False - make your own function, that adds your timestamp to the message and then hand over to Debug.user() - use this function instead of Debug.user() but with SikuliX, where usually the search time lasts some 100 milliseconds I do not see the need for this granularity. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
[Sikuli-driver] [Question #402722]: Create Debug.user log message with milliseconds
New question #402722 on Sikuli: https://answers.launchpad.net/sikuli/+question/402722 I am using Debug.user("xyz") to produce a log message , however these messages by default are only Hrs Mins Secs . I should like the log message to be Hrs Mins Secs Milliseconds. I tried by defining my own format for time.strftime, however I'm not sure how to get my script to use this for each debug message. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #402692]: Problem running script from Win command line
Question #402692 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/402692 RaiMan posted a new comment: Thanks for feedback. All the best. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #402692]: Problem running script from Win command line
Question #402692 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/402692 M Baker posted a new comment: Thank you RaiMan ! For some reason, I kept ending up in the older documentation ( http://doc.sikuli.org/index.html ) over and over as I was digging into this. The link to which you referred ( http://sikulix-2014.readthedocs.io/en/latest/index.html ) is what I needed and I will make sure I am referring to it from now on. Much appreciated --- the more I play with this software, the more impressed I am with it. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #292717]: python unittest discover in SikuliX
Question #292717 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/292717 RaiMan posted a new comment: @tranquillo ... yes, to do it this way, is not possible currently with Sikuli(X) IDE, since it is not possible, to edit plain Python files. The reason behind: A Sikuli(X) script normally is a package with a .py file and associated images, that are used in the script. Solution in your case: - using the SikuliX IDE capture ALL needed images in ALL tests in one images.sikuli script - have a naming convention for your images and preferably in the images.sikuli use something like imageFooBar = "imageFooBar.png" (special capture support for that in latest SikuliX) - in boilerplate take care, that the folder containing the images.sikuli is in sys.path - in every test have: from sikuli import * from images import * - then use in your test: click(imageFooBar) Of course you have to use some Python aware editor, to manage all your testpy (e.g. IntelliJ's PyCharm). -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp
Re: [Sikuli-driver] [Question #402692]: Problem running script from Win command line
Question #402692 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/402692 Description changed to: ** see the docs at http://sikulix-2014.readthedocs.io/en/latest/faq/010-command-line.html #how-to-run-sikulix-from-command-line -- Hi -- Installed Sikuli on my Windows 10 system in d:\sikulix using sikulixsetup-1.1.0 and selecting Option #1. The install seemed to go OK and the popup test was successful. I can run the GUI fine using the runsikulix.cmd batch file as well as executing the sikulix.jar file directly from Javaand I am able to create simple scripts, run them, save them, open them, etc. However, I am having no luck whatsoever loading and running a Sikuli script folder which I saved in the GUI (in this case, c:\temp\sikx.sikuli) by supplying its path/filename in the following manner --- java -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar sikulix,jar c:\temp\sikx.sikuli Whenever I run this, the GUI loads OK but it appears to never open my script folder. I can load it manually with the "Open" dialog and run it once it's in the GUI, that works fine...however, I don't want to have to explicitly do that everytime. Sorry if I am doing something silly or obviously wrong. I tried reviewing all the documentation but nothing I found was helpful. Also by way of information re: my Java installation, when I simply run the runsikulix.cmd batch file, this is displayed +++ running this Java java version "1.7.0_51" Java(TM) SE Runtime Environment (build 1.7.0_51-b13) Java HotSpot(TM) 64-Bit Server VM (build 24.51-b03, mixed mode) +++ trying to run SikuliX +++ using: -Xms64M -Xmx512M -Dfile.encoding=UTF-8 -Dsikuli.FromCommandLine -jar D:\SikuliX\sikulix.jar [info] HotkeyManager: add Capture Hotkey: CTRL+SHIFT 2 (50, 3) [info] HotkeyManager: add Abort Hotkey: ALT+SHIFT C (67, 9) before the GUI opens up. Will eagerly watch for reply(ies). Many thanks. -- You received this question notification because your team Sikuli Drivers is an answer contact for Sikuli. ___ Mailing list: https://launchpad.net/~sikuli-driver Post to : sikuli-driver@lists.launchpad.net Unsubscribe : https://launchpad.net/~sikuli-driver More help : https://help.launchpad.net/ListHelp