Re: [Sikuli-driver] [Question #204641]: Meet OutOfMemoryError with JAVA again

2012-12-10 Thread Bob
Question #204641 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/204641

Bob posted a new comment:
I tracked the cost memory with JProfile, I found that the most memory
which could not be released was held by a static hashset named _opened.
This one is managed by the class called ScreenHighlighter. Fortunately
the class provide the static method to close the hashset. Every time I
complete the process of the test case, I will call
ScreenHighlighter.closeAll() to free memory. This time we never meet the
OutOfMemoryError with JAVA again. I have solved the problem early August
and just add a comment 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


[Sikuli-driver] [Question #216389]: Better framework !!

2012-12-10 Thread Neo
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


[Sikuli-driver] [Question #216440]: Sikuli does not recognise previsouly recorded screens

2012-12-10 Thread Chris Crawford
New question #216440 on Sikuli:
https://answers.launchpad.net/sikuli/+question/216440

Hi All,

The issue I have been encountering is becoming a problem for me.  I have a 
calling script in sikuli that calls my other tests.
When the calling script executes each scripts, sikuli then stops because it 
cant find certain images such as an OK button or Exit button.

If I open the Sikuli script that stopped then execute it with using the calling 
script then it runs just fine with no issues.  But I use a calling script 
Sikuli will stop.

The strange part is sometimes it executes then the next run Sikuli stops 
because OK does not exist.  But it does.  

While debugging I watch it stop, the item I need to click exists, I even 
checked the pattern matching and it finds a single image.  So I am a little 
lost as to why this happens.

Also in my calling script I use the following:
myScriptPath = C:\\Users\\AutomationUser\\Documents\\Automation\\Sikuli
if not myScriptPath in sys.path:  sys.path.append(myScriptPath)

Version: r930 on Windows 7 64-bit.
Java 6

Thank you.

Chris Crawford

-- 
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 #216444]: Sikuli script no longer executing from command line

2012-12-10 Thread Joe
Question #216444 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216444

Description changed to:
Hi,

Thank you in advance for helping me.

I am running Sikuli scripts with watir-webdriver.  I send a terminal
command to execute the sikuli scripts to handle items that can not be
done with the watir-webdriver.  It was working great till now.  I
receive the following error listed below when my watir script tries
execute the execute command.  The IDE launches but begins to fail after
that.  The path to Sikuli scripts are correct so i have no idea what
might wrong.

I am have a MacBook Pro.
Python version is 2.7.2

here is the line in my method that executes Sikuli...

# call sikuli script to handle save window.
ENV['SIKULI_HOME'] = 
'/Applications/Sikuli-IDE.app/Contents/Resources/Java'
system (java -jar $SIKULI_HOME/sikuli-script.jar 
'/Users/joe.fleck/qa_automation/scripts/sikuli_scripts/save_file_2.sikuli')

java.io.IOException: Unable to find library META-INF/lib/libVisionProxy.dylib 
on classpath
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractResource(DefaultJniExtractor.java:127)
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractJni(DefaultJniExtractor.java:110)
at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:43)
at org.sikuli.script.Finder.clinit(Finder.java:33)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.python.core.Py.loadAndInitClass(Py.java:895)
at org.python.core.Py.findClassInternal(Py.java:830)
at org.python.core.Py.findClassEx(Py.java:881)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)
at 
org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)
at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)
at org.python.core.PyObject.__findattr__(PyObject.java:863)
at org.python.core.imp.import_name(imp.java:849)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at 
sikuli.Sikuli$py.f$0(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/Sikuli.py:212)
at 
sikuli.Sikuli$py.call_function(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/Sikuli.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:386)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at 
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
at 
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown
 Source)
at 
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.PyModule.impAttr(PyModule.java:100)
at org.python.core.imp.import_next(imp.java:715)
at org.python.core.imp.import_name(imp.java:824)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importAll(imp.java:998)
at 
sikuli$py.f$0(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/__init__.py:3)
at 
sikuli$py.call_function(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:386)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at 
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
at 
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown
 Source)
at 
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at 

[Sikuli-driver] [Question #216444]: Sikuli script no longer executing from command line

2012-12-10 Thread Joe
New question #216444 on Sikuli:
https://answers.launchpad.net/sikuli/+question/216444

Hi,

Thank you in advance for helping me.  

I am running Sikuli scripts with watir-webdriver.  I send a terminal command to 
execute the sikuli scripts to handle items that can not be done with the 
watir-webdriver.  It was working great till now.  I receive the following error 
listed below when my watir script tries execute the execute command.  The IDE 
launches but begins to fail after that.  The path to Sikuli scripts are correct 
so i have no idea what might wrong.

I am have a MacBook Pro.

here is the line in my method that executes Sikuli...

# call sikuli script to handle save window.
ENV['SIKULI_HOME'] = 
'/Applications/Sikuli-IDE.app/Contents/Resources/Java'
system (java -jar $SIKULI_HOME/sikuli-script.jar 
'/Users/joe.fleck/qa_automation/scripts/sikuli_scripts/save_file_2.sikuli')

java.io.IOException: Unable to find library META-INF/lib/libVisionProxy.dylib 
on classpath
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractResource(DefaultJniExtractor.java:127)
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractJni(DefaultJniExtractor.java:110)
at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:43)
at org.sikuli.script.Finder.clinit(Finder.java:33)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.python.core.Py.loadAndInitClass(Py.java:895)
at org.python.core.Py.findClassInternal(Py.java:830)
at org.python.core.Py.findClassEx(Py.java:881)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)
at 
org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)
at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)
at org.python.core.PyObject.__findattr__(PyObject.java:863)
at org.python.core.imp.import_name(imp.java:849)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at 
sikuli.Sikuli$py.f$0(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/Sikuli.py:212)
at 
sikuli.Sikuli$py.call_function(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/Sikuli.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:386)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at 
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
at 
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown
 Source)
at 
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.PyModule.impAttr(PyModule.java:100)
at org.python.core.imp.import_next(imp.java:715)
at org.python.core.imp.import_name(imp.java:824)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importAll(imp.java:998)
at 
sikuli$py.f$0(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/__init__.py:3)
at 
sikuli$py.call_function(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:386)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at 
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
at 
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown
 Source)
at 
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.imp.import_next(imp.java:713)
at 

Re: [Sikuli-driver] [Question #216444]: Sikuli script no longer executing from command line

2012-12-10 Thread Joe
Question #216444 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216444

Description changed to:
Hi,

Thank you in advance for helping me.

I am running Sikuli scripts with watir-webdriver.  I send a terminal
command to execute the sikuli scripts to handle items that can not be
done with the watir-webdriver.  It was working great till now.  I
receive the following error listed below when my watir script tries
execute the execute command.  The IDE launches but begins to fail after
that.  The path to Sikuli scripts are correct so i have no idea what
might wrong.

I am have a MacBook Pro.
Python version is 2.7.2
sikuli version r930

here is the line in my method that executes Sikuli...

# call sikuli script to handle save window.
ENV['SIKULI_HOME'] = 
'/Applications/Sikuli-IDE.app/Contents/Resources/Java'
system (java -jar $SIKULI_HOME/sikuli-script.jar 
'/Users/joe.fleck/qa_automation/scripts/sikuli_scripts/save_file_2.sikuli')

java.io.IOException: Unable to find library META-INF/lib/libVisionProxy.dylib 
on classpath
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractResource(DefaultJniExtractor.java:127)
at 
com.wapmx.nativeutils.jniloader.DefaultJniExtractor.extractJni(DefaultJniExtractor.java:110)
at 
com.wapmx.nativeutils.jniloader.NativeLoader.loadLibrary(NativeLoader.java:43)
at org.sikuli.script.Finder.clinit(Finder.java:33)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:264)
at org.python.core.Py.loadAndInitClass(Py.java:895)
at org.python.core.Py.findClassInternal(Py.java:830)
at org.python.core.Py.findClassEx(Py.java:881)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:133)
at 
org.python.core.packagecache.PackageManager.findClass(PackageManager.java:28)
at 
org.python.core.packagecache.SysPackageManager.findClass(SysPackageManager.java:122)
at org.python.core.PyJavaPackage.__findattr_ex__(PyJavaPackage.java:137)
at org.python.core.PyObject.__findattr__(PyObject.java:863)
at org.python.core.imp.import_name(imp.java:849)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importFromAs(imp.java:978)
at org.python.core.imp.importFrom(imp.java:954)
at 
sikuli.Sikuli$py.f$0(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/Sikuli.py:212)
at 
sikuli.Sikuli$py.call_function(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/Sikuli.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:386)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at 
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
at 
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown
 Source)
at 
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)
at org.python.core.PyModule.impAttr(PyModule.java:100)
at org.python.core.imp.import_next(imp.java:715)
at org.python.core.imp.import_name(imp.java:824)
at org.python.core.imp.importName(imp.java:884)
at org.python.core.ImportFunction.__call__(__builtin__.java:1220)
at org.python.core.PyObject.__call__(PyObject.java:357)
at org.python.core.__builtin__.__import__(__builtin__.java:1173)
at org.python.core.imp.importAll(imp.java:998)
at 
sikuli$py.f$0(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/__init__.py:3)
at 
sikuli$py.call_function(/Applications/Sikuli-IDE.app/Contents/Resources/Java/sikuli-script.jar/Lib/sikuli/__init__.py)
at org.python.core.PyTableCode.call(PyTableCode.java:165)
at org.python.core.PyCode.call(PyCode.java:18)
at org.python.core.imp.createFromCode(imp.java:386)
at org.python.core.util.importer.importer_load_module(importer.java:109)
at 
org.python.modules.zipimport.zipimporter.zipimporter_load_module(zipimporter.java:161)
at 
org.python.modules.zipimport.zipimporter$zipimporter_load_module_exposer.__call__(Unknown
 Source)
at 
org.python.core.PyBuiltinMethodNarrow.__call__(PyBuiltinMethodNarrow.java:47)
at org.python.core.imp.loadFromLoader(imp.java:513)
at org.python.core.imp.find_module(imp.java:467)

Re: [Sikuli-driver] [Question #216444]: Sikuli script no longer executing from command line

2012-12-10 Thread Joe
Question #216444 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216444

Status: Open = Solved

Joe confirmed that the question is solved:
Okay, I read another post and my java version 1.7 and I changed it back
to 1.6 and it works.

-- 
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] [Bug 1088719] [NEW] cannot type @ in Us keyboard

2012-12-10 Thread vignesh
Public bug reported:

i want to type  jaso...@ptprinters.com and i am using a us keyboard.

1.i tried type(jaso...@ptprinters.com) 
2.I tried paste(jaso...@ptprinters.com)
3.Then i treid the following
wait(2)
type(jason_r)
wait(3)
paste(@)
wait(2)
type(ptprinters.com)

Question:
Either of this cases there is no consistency and sintead of  character @ 
letter 2 gets typed.rarely @ gets types but when i close my browser and then 
reopen the same it is again typing 2.

I am performing this on a flex/flash content player application which is 
browser based.
Please help me this is a blocker for me.These are my configurations.This is a 
critical issue for the delivery 


OS Type: Windows 7,64 bit Pro x64 SP1 Universal
OS Processor: Intel Core –i7-2620M CPU @2.70GHZ
Screen Resolution :1680 * 1050 (native)
Browser Version:Firefox 13.0.1 
Java version: jdk1.6.0_37 , jre6
Sikuli Version: Sikuli-r930-win32
Path : C:\Program Files (x86)\Sikuli X\libs;C:\Program Files 
(x86)\Java\jre6\bin;

** Affects: sikuli
 Importance: Undecided
 Status: New

-- 
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to Sikuli.
https://bugs.launchpad.net/bugs/1088719

Title:
  cannot type @ in Us keyboard

Status in Sikuli:
  New

Bug description:
  i want to type  jaso...@ptprinters.com and i am using a us keyboard.

  1.i tried type(jaso...@ptprinters.com) 
  2.I tried paste(jaso...@ptprinters.com)
  3.Then i treid the following
  wait(2)
  type(jason_r)
  wait(3)
  paste(@)
  wait(2)
  type(ptprinters.com)

  Question:
  Either of this cases there is no consistency and sintead of  character @ 
letter 2 gets typed.rarely @ gets types but when i close my browser and then 
reopen the same it is again typing 2.

  I am performing this on a flex/flash content player application which is 
browser based.
  Please help me this is a blocker for me.These are my configurations.This is a 
critical issue for the delivery 

  
  OS Type: Windows 7,64 bit Pro x64 SP1 Universal
  OS Processor: Intel Core –i7-2620M CPU @2.70GHZ
  Screen Resolution :1680 * 1050 (native)
  Browser Version:Firefox 13.0.1 
  Java version: jdk1.6.0_37 , jre6
  Sikuli Version: Sikuli-r930-win32
  Path : C:\Program Files (x86)\Sikuli X\libs;C:\Program Files 
(x86)\Java\jre6\bin;

To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1088719/+subscriptions

___
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 #216298]: Do you realize what this is capable of?

2012-12-10 Thread Jason
Question #216298 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216298

Jason gave more information on the question:
If you don't figure it out I will tell you by the end of next week but
has something to do with the matrixmight have said to much.

-- 
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 #216473]: Loop through list

2012-12-10 Thread Wolf Touplous
New question #216473 on Sikuli:
https://answers.launchpad.net/sikuli/+question/216473

Hello,

Before I began, I just want to let it known that I have read FAQ 1437, and even 
look up Python tutorials elsewhere; however, I'm stuck. I'm completely new to 
programming/scripting.

# --- loop through a list
myListFixed = (11, 22, 33, 44)
for entry in myListFixed:
   print entry
   lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)
   wait(3)
   # now the next entry
print the last entry was:, lastEntry

Using the above example, when I try to run the script, I received an error that 
states e is not defined.

My problem: I have a list that I would like to be typed in sikuli.  First, the 
script will click a few buttons, then a text field, and then enter the 1st item 
on the list, press enter.  Then, repeat from step 1, with the exception that 
2nd item will be entered this time instead of the first item.

For example:

click(.png) # Step 1, Button
click(.png) # Text field
myListFixed = (11, 22, 33, 44) 
for entry in myListFixed:
  lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)  # I would like to loop through myListFixed
   wait(3)
Restart from step 1 # now the next entry

While we are at loop and list, it is possible to loop array such as this:

List1= [1,2,3]
List2= [a,b,c]

And to have sikuli type 1 in the first text field, and a in the second text 
field, then repeat the process entering 2,b, etc...

Thank you very much for your help.  In the meantime I will continue to search 
for the answers on the board.

-- 
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 #216478]: Jenkins - Sikuli on Mac fails to find image

2012-12-10 Thread Vijay
New question #216478 on Sikuli:
https://answers.launchpad.net/sikuli/+question/216478

Hi, I had created a Sikuli test suit in Eclipse using Java and I've written Ant 
script to trigger the Test script on command line. When I run the ant script 
locally , it runs without any issue. But when I try to run the same script in 
via the Jenkins server that I've setup in the same machine, in the same user 
login, then it returns exception message saying Find Failed. 


The following is the error exception stack trace,

FindFailed: can not find 
/Users/Shared/Jenkins/Home/Test/Old/SeleniumMexico/SikuliObjects/img/login/Login.png
 on the screen. Line ?, in File ? at 
org.sikuli.script.Region.handleFindFailed(Region.java:421) at 
org.sikuli.script.Region.wait(Region.java:512) at 
Mexico.DemoModule.ZoneLogin(DemoModule.java:45) at 
Mexico.TestRunManager.main(TestRunManager.java:367)

Any suggestions to fix 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 #216473]: Loop through list

2012-12-10 Thread Wolf Touplous
Question #216473 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216473

Description changed to:
Hello,

Before I began, I just want to let it known that I have read FAQ 1437,
and even look up Python tutorials elsewhere; however, I'm stuck. I'm
completely new to programming/scripting.

# --- loop through a list
myListFixed = (11, 22, 33, 44)
for entry in myListFixed:
   print entry
   lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)
   wait(3)
   # now the next entry
print the last entry was:, lastEntry

Using the above example, when I try to run the script, I received an
error that states e is not defined. I even tried entry+Key.ENTER
without luck.

My problem: I have a list that I would like to be typed in sikuli.
First, the script will click a few buttons, then a text field, and then
enter the 1st item on the list, press enter.  Then, repeat from step 1,
with the exception that 2nd item will be entered this time instead of
the first item.

For example:

click(.png) # Step 1, Button
click(.png) # Text field
myListFixed = (11, 22, 33, 44) 
for entry in myListFixed:
  lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)  # I would like to loop through myListFixed
   wait(3)
Restart from step 1 # now the next entry

While we are at loop and list, it is possible to loop array such as
this:

List1= [1,2,3]
List2= [a,b,c]

And to have sikuli type 1 in the first text field, and a in the
second text field, then repeat the process entering 2,b, etc...

Thank you very much for your help.  In the meantime I will continue to
search for the answers on the board.

-- 
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 #216478]: Jenkins - Sikuli on Mac fails to find image

2012-12-10 Thread Vijay
Question #216478 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216478

Vijay gave more information on the question:
Btw I am using Sikuli r930 on Mac 10.7.4 , I am currently in Jenkins
Login and I've tried running the Test script manually log gin into
Jenkins, but the issue is when I am trying to run the scripts via
Jenkins server (Which is installed in the same login - local/same
machine)

-- 
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 #216473]: Loop through list

2012-12-10 Thread Wolf Touplous
Question #216473 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216473

Description changed to:
Hello,

Before I begin, I just want to let it known that I have read FAQ 1437,
and even look up Python tutorials elsewhere; however, I'm stuck. I'm
completely new to programming/scripting.

# --- loop through a list
myListFixed = (11, 22, 33, 44)
for entry in myListFixed:
   print entry
   lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)
   wait(3)
   # now the next entry
print the last entry was:, lastEntry

Using the above example, when I try to run the script, I received an
error that states e is not defined. I even tried entry+Key.ENTER
without luck.

My problem: I have a list that I would like to be typed in sikuli.
First, the script will click a few buttons, then a text field, and then
enter the 1st item on the list, press enter.  Then, repeat from step 1,
with the exception that 2nd item will be entered this time instead of
the first item.

For example:

click(.png) # Step 1, Button
click(.png) # Text field
myListFixed = (11, 22, 33, 44) 
for entry in myListFixed:
  lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)  # I would like to loop through myListFixed
   wait(3)
Restart from step 1 # now the next entry

While we are at loop and list, it is possible to loop array such as
this:

List1= [1,2,3]
List2= [a,b,c]

And to have sikuli type 1 in the first text field, and a in the
second text field, then repeat the process entering 2,b, etc...

Thank you very much for your help.  In the meantime I will continue to
search for the answers on the board.

-- 
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 #216473]: Loop through list

2012-12-10 Thread Wolf Touplous
Question #216473 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216473

Description changed to:
Hello,

Before I begin, I just want to let it be known that I have read FAQ
1437, and even look up Python tutorials elsewhere; however, I'm stuck.
I'm completely new to programming/scripting.

# --- loop through a list
myListFixed = (11, 22, 33, 44)
for entry in myListFixed:
   print entry
   lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)
   wait(3)
   # now the next entry
print the last entry was:, lastEntry

Using the above example, when I try to run the script, I received an
error that states e is not defined. I even tried entry+Key.ENTER
without luck.

My problem: I have a list that I would like to be typed in sikuli.
First, the script will click a few buttons, then a text field, and then
enter the 1st item on the list, press enter.  Then, repeat from step 1,
with the exception that 2nd item will be entered this time instead of
the first item.

For example:

click(.png) # Step 1, Button
click(.png) # Text field
myListFixed = (11, 22, 33, 44) 
for entry in myListFixed:
  lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)  # I would like to loop through myListFixed
   wait(3)
Restart from step 1 # now the next entry

While we are at loop and list, it is possible to loop array such as
this:

List1= [1,2,3]
List2= [a,b,c]

And to have sikuli type 1 in the first text field, and a in the
second text field, then repeat the process entering 2,b, etc...

Thank you very much for your help.  In the meantime I will continue to
search for the answers on the board.

-- 
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 #216473]: Loop through list

2012-12-10 Thread Wolf Touplous
Question #216473 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/216473

Description changed to:
Hello,

Before I begin, I just want to let it be known that I have read FAQ
1437, and even look up Python tutorials elsewhere; however, I'm stuck.
I'm completely new to programming/scripting.

# --- loop through a list
myListFixed = (11, 22, 33, 44)
for entry in myListFixed:
   print entry
   lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)
   wait(3)
   # now the next entry
print the last entry was:, lastEntry

Using the above example, when I try to run the script, I received an
error that states e is not defined. I even tried entry+Key.ENTER
without luck.

My problem: I have a list that I would like to be typed in sikuli.
First, the script will click a few buttons, then a text field, and then
enter the 1st item on the list, press enter.  Then, repeat from step 1,
with the exception that 2nd item will be entered this time instead of
the first item.

For example:

click(.png) # Step 1, Button
click(.png) # Text field
myListFixed = (11, 22, 33, 44) 
for entry in myListFixed:
  lastEntry = entry
   while not exists(img, 0):
  wait(1) # we wait for the entry field
   type(getLastMatch(), e+Key.ENTER)  # I would like to loop through myListFixed
   wait(3)
Restart from step 1 # now the next entry

While we are at loop and list, it is possible to loop array such as
this:

List1= [1,2,3]
List2= [a,b,c]

And to have sikuli type 1 in the first text field, and a in the
second text field, then repeat the process entering 2,b, etc...

Thank you very much for your help.  In the meantime I will continue to
search for the answers on the board.

UPDATE:  With the script below, I managed to get the loop going but it
only loop/repeat 1

myList = [1,2,3,4,5]
for entry in myList:
while not exists(SikuliCreate.png,0):
wait(3)
type(getLastMatch(),entry+Key.ENTER)
wait(3)

-- 
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