[Sikuli-driver] [Question #218110]: Need to re-open my AUT during the test - how to?
New question #218110 on Sikuli: https://answers.launchpad.net/sikuli/+question/218110 Hey guys. Requirement is I would need to close my AUT and re-open it to make sure it is in different session. How do I achieve this programmatically? What I did is, App.close(MyAUT) wait(3) App.open(MyAUT) But, after it is closing the AUT, the test terminates. I ran it from terminal, I didn't get the report as well during this termination. There should be a way to achieve this!! -- You received this question notification because you are a member of Sikuli Drivers, which 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 #218110]: Need to re-open my AUT during the test - how to?
Question #218110 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/218110 Status: Solved = Open Neo is still having a problem: small change, I removed wait(3) in my code - actually with that I got an exception - java.lang.IllegalMonitorStateException galMonitorStateException. I now removed it, no more exception - App launches back but sikuli terminated when App.close has executed. How can we tell to script to be active for more time? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #218110]: Need to re-open my AUT during the test - how to?
Question #218110 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/218110 Status: Needs information = Open Neo gave more information on the question: AUT is Kindle for MAC Running on Mac OS X - code written in Sikuli IDE Test ran from terminal -- You received this question notification because you are a member of Sikuli Drivers, which 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 #218110]: Need to re-open my AUT during the test - how to?
Question #218110 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/218110 Status: Needs information = Open Neo gave more information on the question: I just mailed the code I have used, please look into it. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #217824]: Right practice in renaming the .sikuli file Mac OS
New question #217824 on Sikuli: https://answers.launchpad.net/sikuli/+question/217824 Let us say I want to change filename of my sikuli script. What is the best way of doing it? I am asking because, in x.sikuli - rclick and show contents - there are x.py and x.html. Even if I rename x.sikuli to y.sikuli those files are not getting changed. Can I manually rename those to y.py and y.html? I did that, but whenever I am modifying y.sikuli through editor, the following error showing up. Am I missing anything? What is the best way to rename the .sikuli file? [error] Can't transfer: sun.awt.datatransfer.TransferableProxy@11dfaf2 -- You received this question notification because you are a member of Sikuli Drivers, which 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 #217824]: Right practice in renaming the .sikuli file Mac OS
Question #217824 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/217824 Neo confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #217824]: Right practice in renaming the .sikuli file Mac OS
Question #217824 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/217824 Status: Answered = Solved Neo confirmed that the question is solved: Super. Thanks. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #216389]: Better framework !!
Question #216389 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/216389 Status: Answered = Open Neo is still having a problem: I will check the modified version of HTMLTestRunner. BTW, it was not TestRobot, it is RobotFramework. This URL explanins it. But, how do I implement it now? Please suggest the better framework. http://blog.mykhailo.com/2011/02/how-to-sikuli-and-robot-framework.html -- You received this question notification because you are a member of Sikuli Drivers, which 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 #216389]: Better framework !!
New question #216389 on Sikuli: https://answers.launchpad.net/sikuli/+question/216389 Hello, I have my test suite creating and running using Sikuli IDE. I have logging support (using logger), HTML report (HTMLTestRunner) and localization testing (through images import). Everything works well. But feels like something is missing. I want suggestions on how I can implement these better. 1. The IDE lacks intellisense which is ok as we are using Sikuli's IDE. Have heard Sikuli implementation in Java/Eclipse which could solve this problem. 2. I am using Unittest framework to have my test suite to execute. Whenever a case fails, currently there is no screenshot of the app at that state. Only way to look into my log/html report to understand the problem, which sometimes hectic job. If it gives screenshot in HTML report will be very useful. 3. The test suite results are not consistent. If I run the suite first time - gives all Pass, same without any change in app/code, run again, gives 1,2 cases failed, which are mainly FindFailed. But, if I run those specific cases separately that will pass. This is like lowering my confidence. 4. Also I have handled FailedFailed exception, what is the root exception type where all these exceptions come undre. This way I can generalize and write single line, whatever the exception it is, just log. I heard TestRobot is there to achieve most of the above mentioned. But, I have done significant work so far, and do not want to change. There is lot of work it seems in TestRobot as it overrides the sikuli methods ,why is that? Thanks for reading. Neo. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #211412]: Couple of questions regarding how-to
Question #211412 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211412 Status: Answered = Open Neo is still having a problem: For the 2nd Question# It is still same right, using a method call after import statement. exec's would have processed at import. I tried, it is still looking for EN images, instead of IT (passed as arg) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #211412]: Couple of questions regarding how-to
Question #211412 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211412 Status: Answered = Solved Neo confirmed that the question is solved: Super. It worked. Thanks. Q1: I will try to write sikuli script to change the locale in system preference and will call it before running the suite. Will let u know the progress on it. Q2: Solved. Q3: Yes, it is happening running with IDE alone. Even in IDE, if you re- start it this error wont be there. Thats fine, most of the times, I run from command line. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #211459]: How to send email after the execution
New question #211459 on Sikuli: https://answers.launchpad.net/sikuli/+question/211459 This could be general question, not related to sikuli. But would be very helpful. I get html report after the test suite execution (using HTMLTestRunner). Now how to identify the suite has completed (when run from command line) and once done, attach the html send e-mail to a group. How to do this ? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #211459]: How to send email after the execution
Question #211459 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211459 Status: Answered = Open Neo is still having a problem: can we use smtplib api in sikuli IDE? Is that anything to change before using that API? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #211459]: How to send email after the execution
Question #211459 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/211459 Status: Answered = Solved Neo confirmed that the question is solved: No problem. I will try to figure it out. :) Thanks Rai, you were so helpful through out my project. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #211412]: Couple of questions regarding how-to
New question #211412 on Sikuli: https://answers.launchpad.net/sikuli/+question/211412 I made a suite which now can test an app in English and for any other locale. But, as of now I change the locale manually and run the suite. I want to write a .sh file to change the Mac OS language each time my suite runs based on the language I pass as command line arguments. Please see my below questions.. 1. How to change the Mac OS language (either using AppleScript/Shell Script) - For MAC. Once it is done for a FR for instance, I can then call my suite passing fr-fr as a argument to run the whole suite for FR. Again the same script to change to other locale and again calling the suite for that locale. I want to put all these in a script file (like batch file in windows) so that clicking on that sh file, all locales will be tested with out manual intervention. Please advice how to achieve this ? 2. The other challenge I am facing is, my Main Script uses middle layer framework file (main script importing the framework file). My framework file importing the locale images. Now, if I pass locale as a command line to main script, how can I say to my framework file to use that locale. Example: #Framework file is like this (myFramework.sikuli) locale = En-En exec(import +locale) exec(reload(%s)%(locale)) exec(from %s import *%(locale)) #main file is (main.sikuli) import myFramework reload(myFramework) from myFramework import * myFramework.locale = sys.argv[1] If I pass argv[1] as FR, the framework file is initializing to FR but, while execution it is looking for EN images only. I guessing this is because of importing 'myFramework' before assigning locale. Suggest me how to achieve this. 3. I am receiving this error in my report file if I run the script without re-starting the IDE. In the fresh instance of sikuli IDE this error is not seen. Why do we get this error? ft1.1: Traceback (most recent call last): File /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/logging/__init__.py, line 750, in emit File /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/logging/__init__.py, line 750, in emit ValueError: I/O operation on closed file Traceback (most recent call last): File /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/logging/__init__.py, line 750, in emit File /Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/logging/__init__.py, line 750, in emit ValueError: I/O operation on closed file Thanks in advance. Neo. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #207167]: Empty report - HTMLTestRunner through command line
Question #207167 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/207167 Status: Answered = Open Neo is still having a problem: No I have initialized that to a variable. Sorry for lazy to type in my code... suite = suite() outfile = open(report_file, wb) runner = HTMLTestRunner.HTMLTestRunner( stream=outfile, title=rname, description='bla bla' ) runner.run(suite) outfile.close() No resolution yet :( -- You received this question notification because you are a member of Sikuli Drivers, which 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 #207167]: Empty report - HTMLTestRunner through command line
Question #207167 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/207167 Neo gave more information on the question: Resolved. Seems to be a bug. I have removed tearDown() method in my suite and report is started coming after the test execution. But, I wanted to close my app and restart it for each of my test case. It seems with this approach (running from command line) run only one case if we use tearDown() method. Surprised to see noone in this forum faced this issue. Raiman, can you confirm this a bug? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #207060]: How to pass command line argument to imported file
Question #207060 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/207060 Status: Answered = Open Neo is still having a problem: Yes. you are correct. I like the second approach. I didn't understand why did you declare global variable as Settings.myLang ? Also, when I run the script it throws the following error. Looks like some import is missing.. ? exec(import + Settings.myLang) AttributeError: type object 'org.sikuli.script.Settings' has no attribute 'myLang' -- You received this question notification because you are a member of Sikuli Drivers, which 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 #207060]: How to pass command line argument to imported file
Question #207060 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/207060 Status: Answered = Solved Neo confirmed that the question is solved: oh.. yaa. Thanks much. Its solved my issue. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #207167]: Empty report - HTMLTestRunner through command line
New question #207167 on Sikuli: https://answers.launchpad.net/sikuli/+question/207167 I searched in the Answers, couldn't see anyone facing this. Problem: Able to generate html report when run from IDE, but if I the same run through cmd line, empty report has created. What is the issue. My main file looks like this: import unittest import HTMLTestRunner class SuiteA(unittest.TestCase): def A() def B() timestamp = time.strftime('%Y_%m_%d_%H_%M') rname = 'MyReport_'+timestamp+'.html' base_dir = os.path.abspath(getBundlePath()+'//..') report_file = os.path.join(base_dir, rname) outfile = open(report_file, wb) runner = HTMLTestRunner.HTMLTestRunner( stream=outfile, title=rname, description='bla bla' ) runner.run(suite) outfile.close() This is the command I use to run from cmd line $sudo path to sikuli-ide.sh -r main.sikuli Let me know if I am missing any thing here. The same script generating report if I run from IDE. I have spent time to trouble shoot but couldn't resolve so far :( -- You received this question notification because you are a member of Sikuli Drivers, which 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 #207167]: Empty report - HTMLTestRunner through command line
Question #207167 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/207167 Neo gave more information on the question: and BTW, I have kept my HTMLTestRunner.py inside main.sikuli file - (right click on main.sikuli - show package contents - paste HTMLTestRunner.py). Is this right way of doing ? It worked when run from IDE. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #207167]: Empty report - HTMLTestRunner through command line
Question #207167 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/207167 Status: Needs information = Open Neo gave more information on the question: sorry about that. I thought it is not required to look into this issue. I have a separate method for that. def suite(): suite = unittest.TestSuite() suite.addTest(SuiteA('A')) suite.addTest(SuiteA('B')) return suite suite = suite() timestamp= ... ... Thanks -- You received this question notification because you are a member of Sikuli Drivers, which 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 #205272]: Maximize the window - Mac
Question #205272 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/205272 Neo posted a new comment: got it. However, I see one issue here. How do I validate if the window is already maximized :( ?? The code is not intelligent enough to check if window is already maximized. ;) Any suggestions? Thanks so much for looking into this. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #205117]: multiple scripts --- from sikuli import * needed
Question #205117 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/205117 Neo proposed the following answer: I think you didn't read my second comment ;) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #205272]: Maximize the window - Mac
New question #205272 on Sikuli: https://answers.launchpad.net/sikuli/+question/205272 Not a browser. I have desktop application. Want to maximize the window. I can find maximize image on top left corner and click on it. But, looking for a better solution with importing os or any other module. Thanks for looking into this. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #205272]: Maximize the window - Mac
Question #205272 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/205272 Neo posted a new comment: Super. The applescript worked for me. here is method I wrote. Is this fine, works always ..? def maximize_myWindow(): cmd = osascriptEND tell application System Events tell process myApp click button 2 of window 1 end tell end tell os.system(cmd) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #205117]: multiple scripts
Question #205117 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/205117 Neo posted a new comment: what is your question? In case, the script is not running, try with 'from new1 import *' (with space) and no need to import HTMLTestRunner in new1 script. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #205117]: multiple scripts
Question #205117 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/205117 Neo posted a new comment: Forgot to mention, you would also need 'from sikuli import *' in the imported script (new1 - in your case). Include that line as well and give a try. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #205071]: Switch to JUnit testing app
Question #205071 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/205071 Neo posted a new comment: As app is your object, you can use app.focus(), after you visit the external link to get back the focus. helps ? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204875]: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sikuli X\libs\VisionProxy.dll: Can't find dependent libraries
Question #204875 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204875 Neo posted a new comment: what eclipse version does sikuli compatible with. I have Eclipse Juno 32-bit version installed. I hope it doesn't matter with the version of Eclipse. Confirm? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204875]: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sikuli X\libs\VisionProxy.dll: Can't find dependent libraries
Question #204875 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204875 Neo posted a new comment: I figured it out. Even I have jre (32-bit) in system path, it is picking 64 bit version of jre. I had two version. I figured it out by just running java -version (java was running on 64-bit). Just not sure where it is picked it. What I have done is, made 32-bit jre path as first entry in my path so that it always use 32-bit. Now when I run from sikuli.Sikuli import * (only line in my .py file) without any error. Thanks to all for the help. However, I wanted to know how do I convert my .sikuli scripts to .py scripts. I have 2 folders (mainScript.sikuli and images.sikuli). The mainscript importing the images and performing the test. How do I convert this into eclipse .py format. The main reason why I want to use eclipse is to debug my program. Thanks in adv. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204875]: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sikuli X\libs\VisionProxy.dll: Can't find dependent libraries
Question #204875 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204875 Neo posted a new comment: Can you point me any document reference?, I am not sure I followed you completely. Thanks. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204776]: Localization testing
Question #204776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204776 Status: Answered = Solved Neo confirmed that the question is solved: Thanks RaiMan, that solved my question. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204875]: java.lang.UnsatisfiedLinkError: C:\Program Files (x86)\Sikuli X\libs\VisionProxy.dll: Can't find dependent libraries
New question #204875 on Sikuli: https://answers.launchpad.net/sikuli/+question/204875 I read and followed https://answers.launchpad.net/sikuli/+question/166928, but still see the error in eclipse. Entries in my system path are, C:\Program Files (x86)\Java\jre7\bin;C:\Program Files (x86)\Sikuli X\libs Am I missing anything..? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204827]: Logging message data from sikuli to a file
Question #204827 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204827 Neo proposed the following answer: if running from command line is not an option with you, you can use logging package. (import logging) BTW, redirecting all logs running through command line is simplest task :) -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204776]: Localization testing
New question #204776 on Sikuli: https://answers.launchpad.net/sikuli/+question/204776 Hello All, I wanted to know how to use Sikuli for localization testing. Requirement is, we are evaluating Sikuli for our desktop application (developed using Qt) on both env Windows and Mac. Sikuli is so simple so far. It lets the users not to worry about underlying language using which the app is developed. I know we need to create all images again (which we will be creating for EN_US), but wanted to know how easily can we maintain the scripts? Any info on this, highly appreciated. Thanks for looking. Neo -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204776]: Localization testing
Question #204776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204776 Status: Answered = Open Neo is still having a problem: yes, the approach suits. If I need to test 5 locale, I would include 5 import statements (images) btw, how do I know which locale i would be testing while running the script? we have change language option in the app for windows application, do I need to check/change language for each run of test. How do I expand this to run the suite for all locales (over the night). Hope I am clear. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204776]: Localization testing
Question #204776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204776 Neo posted a new comment: Further, I have created a simple script (created images-de-de.sikuli which has now 3 images - just captured) from sikuli import * from images-de-de import * def test(): openApp(app_path) wait(5) if exists(dwnItems): #dwnItems is the variable referring to an image click(dwnItems) #same here wait(3) type(libSearch, adv) #same here test() but, when I click run, received below error. [error] Stopped [error] An error occurs at line 2 [error] Error message: SyntaxError: (mismatched input '-' expecting IMPORT, ('C:\\Users\\imamsh\\AppData\\Local\\Temp\\sikuli-tmp447487739188176553.py', 2, 11, 'from images-de-de import *\n')) I have used import many a times importing the sikuli script files on Mac, didn't face any error. This is first time I have attempted on my pc, and got this error. Where am I wrong here? -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204776]: Localization testing
Question #204776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204776 Neo gave more information on the question: i have renamed images-de-de.sikuli to images_de_de.sikuli - error is resolved. But, received different error - ImportError: No module named images_de_de :( looking into it. -- You received this question notification because you are a member of Sikuli Drivers, which 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 #204776]: Localization testing
Question #204776 on Sikuli changed: https://answers.launchpad.net/sikuli/+question/204776 Neo gave more information on the question: Very interesting. After renaming (my folder name), sikuli is not able to import it. Now, I have created a new images folder and is able to import and works fine. The issue is solved. It would be gr8 if you can help for the other question asked: How do I test multiple languages, dynamically - how to import images folder based on my app lang. Want to run all the languages over the night -- You received this question notification because you are a member of Sikuli Drivers, which 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