After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 542447 - Wildcards for Applications in LDTP editor
Wildcards for Applications in LDTP editor
Status: RESOLVED FIXED
Product: LDTP
Classification: Other
Component: editor
1.2.0
Other All
: Normal normal
: ---
Assigned To: shreyankg
LDTP Development Mailing List
Depends on:
Blocks:
 
 
Reported: 2008-07-10 21:38 UTC by shreyankg
Modified: 2008-07-17 21:53 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Patch of the enhancement (59.86 KB, patch)
2008-07-10 21:40 UTC, shreyankg
accepted-commit_now Details | Review
database of supported window names (32 bytes, patch)
2008-07-10 21:41 UTC, shreyankg
accepted-commit_now Details | Review

Description shreyankg 2008-07-10 21:38:35 UTC
LDTP editor records the full name of the window when it records. It could be converted using reg-ex to a window name that contains the name of the application and wild-cards, so that it will run fine in case the window name changes to another name that still contains the name of the application.

Steps to Reproduce: 

    1) Run LDTP Editor with any popular application, say Evolution.

    2) Record some action.

    3) Convert the recorded code to a python script using the Convert Button.

    4) Play the code. In case the window name does not match the window name
specified in the code, it produces an error. Although both the conflicting
window names have 'Evolution' in them.

Actual Results: Failure

Enhanced Results: Window name recorded as "*Evolution*" . So it would
produce a Success even if the window name changes during execution of converted script.
Comment 1 shreyankg 2008-07-10 21:40:12 UTC
Created attachment 114351 [details] [review]
Patch of the enhancement

Patch to implement the user-defined Window name Support using wildcards. Could
not include the file appdata in the patch so have attached it separately.
Comment 2 shreyankg 2008-07-10 21:41:05 UTC
Created attachment 114352 [details] [review]
database of supported window names

this file is to resides in the /python directory which i could not include in the
patch. The file contains some default window names as LDTP team's choice of
supported applications. Feel free to add into it more window names as you feel
fit and required.
Comment 3 Nagappan Alagappan 2008-07-10 21:50:35 UTC
Thanks for your patch and great work ! Will integrate them in the head.
Comment 4 shreyankg 2008-07-10 21:53:01 UTC
to see snapshots of the GUI for the enhancement refer too 

http://allsortsofshrink.blogspot.com/2008/07/gui.html
Comment 5 Nagappan Alagappan 2008-07-17 21:53:36 UTC
Shreyank, Thanks for your contribution :) Your work is now available in main branch of GIT.