[request] Add a Directory search option to the Pattern search (findAny() ???)

Bug #791705 reported by janet
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

Working on a set of tests that function x-platform using Sikuli-1.0 RC2.
Currently I divide my search images by os (Images, Images_win, Images_osx, Images_lin), and depending on the platform specify Images, and Images_plat as my search directories.

What would be super useful would be that instead of Pattern(file.png) searching for only a specific file, if you could specify a directory name Pattern(some_image_dir) which Sikuli would search for any match in that directory.

That would simplify searching images that may vary slightly across OS versions or states such as selected.

Ex:

So if I have the directory Images_win in my search path:

Images_win/button_feedback/button_feedback_xp.png
Images_win/button_feedback/button_feedback_vista.png
Images_win/button_feedback/button_feedback_win7.png
Images_win/button_feedback/feedback.png

In my test case I specify:
 find(Pattern("button_feedback"))

Sikuli searches for each image in the directory until it finds a match.

Tags: fkt-pattern
Revision history for this message
Tsung-Hsiang Chang (vgod) wrote :
Changed in sikuli:
status: New → Invalid
janet (jed-pculture)
Changed in sikuli:
status: Invalid → New
Revision history for this message
janet (jed-pculture) wrote :

I disagree. I use addImagePath for the main directories I use for searching, but I really want something more transient so that I can specify something on-the-fly, and Sikuli will know to try to match anything that's in that directory, regardless of it's name.

ex: I specify directory("A"), and the first match of the directory contents, A/a.png, A/ab.png, or A/ac.png, or A/monkey.png is considered a match.

With addImagePath: The first image file with a matching image name is used, so I'm still required to specify a specific file name.

RaiMan (raimund-hocke)
Changed in sikuli:
status: New → In Progress
importance: Undecided → Wishlist
assignee: nobody → RaiMan (raimund-hocke)
tags: added: fkt-pattern
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Wishlist → Medium
milestone: none → x1.1
RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 1.1.0 → 1.2.0
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Medium → Wishlist
milestone: 2.0.0 → 2.1.0
RaiMan (raimund-hocke)
Changed in sikuli:
importance: Wishlist → Medium
summary: - Add a Directory search option to the Pattern search
+ [request] Add a Directory search option to the Pattern search (findAny()
+ ???)
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.