← Back to team overview

sikuli-driver team mailing list archive

[Bug 826769] Re: X-1.0rc2 Unittests not working with some scriptnames when called via command line with -t --- possible workaround

 

More detailed test:
I saved this script

def setUp(self):
	pass

def tearDown(self):
	pass

def testThis(self):
	assert(exists(image_on_desktop.png))

under the below mentioned different names and executed them with the windowsXP commandline: skikuli-ide.bat -t script.sikuli.
This were the results (scriptnames seperated by comma):

Working
c,d,e,g,h,i,j,k,l,m,o,p,q,s,u,w,y,z,ca,ma,cx,

Find Fail exception/assertion error
a,b,n,r,t,v,ac,fm

[error] null
f,x

So it seems most letters are safe, but I don't know how the behaviour
will be with longer filenames (e.g. f.sikuli = [error]null, fm.sikuli =
Find Failed )

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

Title:
  X-1.0rc2 Unittests not working with some scriptnames when called via
  command line with -t --- possible workaround

Status in Sikuli:
  New

Bug description:
  --- possible workaround

  script names starting with the letters c or m seem to work.

  -----------------------------------------------------------

  This Bug was reproducable with the combinations WinXP & rc2 as well as
  with Win7 & rc3.

  When executing a Sikuli-test via commandline like

  sikuli-ide.bat -t <test.sikuli>

  sikuli has some odd behavior: The script does in some cases not load
  at all but only prints [error] null, and in other cases refuses to
  find any kind of image on the screen, resolving in FindFailed-
  Exceptions.

  A quick test revealed the following correlation between name of the sikuli-script and the mentioned behavior:
  All scripts where executed as

  Filenames a.sikuli as well as b.sikuli resolved in a Find Failed Exception for every find() in the script.
  Filenames c.sikuli, d.sikuli, e.sikuli and m.sikuli worked normal.
  Filenames f.sikuli and x.sikuli did nothing but printing [error] null

  I did not test more filenames yet.

  Look here for all the detail
  https://answers.launchpad.net/sikuli/+question/167514 (last posts)

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


References