← Back to team overview

sikuli-driver team mailing list archive

[Bug 1362461] [NEW] [1.0.1] Jython scripting: exists() in with block generates screenshotfiles --- workaround: do not use it ; -)

 

Public bug reported:

Hi all!

I faced the following problem. During running Sikuli script it generates
useless PNG files in the test directory. Looks like it makes screenshot
every time method exists() fails. I am using stable 1.0.1. There is
simple script to reproduce this behavior below. IDE feature to remove
useless PNG helps, but not when I run tests in batch mode using our
cmake/ctest routine... Is there any setting to disable this?

app = App("gnome-calculator")
app.open()
for i in xrange(int(100500)):
  wnd = app.window()
  if wnd is not None:
    with Region(wnd) as region:
      if region.exists("1409168557236.png", 0):
        break

Best regards and thanks in advance,
Alexander.

** Affects: sikuli
     Importance: High
     Assignee: RaiMan (raimund-hocke)
         Status: Fix Committed

** Changed in: sikuli
       Status: New => Fix Committed

** Changed in: sikuli
   Importance: Undecided => High

** Changed in: sikuli
     Assignee: (unassigned) => RaiMan (raimund-hocke)

** Changed in: sikuli
    Milestone: None => 1.1.0

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

Title:
  [1.0.1] Jython scripting: exists() in with block generates
  screenshotfiles --- workaround: do not use it ;-)

Status in Sikuli:
  Fix Committed

Bug description:
  Hi all!

  I faced the following problem. During running Sikuli script it
  generates useless PNG files in the test directory. Looks like it makes
  screenshot every time method exists() fails. I am using stable 1.0.1.
  There is simple script to reproduce this behavior below. IDE feature
  to remove useless PNG helps, but not when I run tests in batch mode
  using our cmake/ctest routine... Is there any setting to disable this?

  app = App("gnome-calculator")
  app.open()
  for i in xrange(int(100500)):
    wnd = app.window()
    if wnd is not None:
      with Region(wnd) as region:
        if region.exists("1409168557236.png", 0):
          break

  Best regards and thanks in advance,
  Alexander.

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


Follow ups

References