GNOME Bugzilla – Bug 598947
waittillguiexist() documentation should say if wildcards/regexes are allowed.
Last modified: 2009-11-11 05:37:01 UTC
I have some ldtp code for Glom whose code comments suggests that waittillguiexist() can use wildcards in the window_name parameter. If that is true then it should be documented: http://ldtp.freedesktop.org/user-doc/waittillguiexist.html
This is the code: http://git.gnome.org/cgit/glom/tree/ldtp/common.py#n12 I am also surprised that it checks for a window with the title "WelcomeToGlom", though the actual window title is "Welcome to Glom" with spaces.
By the way, I am looking at this code because it doesn't work - the waittillguiexist() calls timeout. However, I am using ldtp from git in jhbuild.
> I am also surprised that it checks for a window with the title "WelcomeToGlom", > though the actual window title is "Welcome to Glom" with spaces. This is (was?) intended - see "Window name formats" in the LDTP tutorial from http://ldtp.freedesktop.org/wiki/Docs. In the "Glob pattern support" section it states that Wildcards are allowed. I don't know if things changed in LDTP git in the meanwhile though. I can try if the Glom scripts still work for me.
(In reply to comment #3) > > I am also surprised that it checks for a window with the title "WelcomeToGlom", > > though the actual window title is "Welcome to Glom" with spaces. > > This is (was?) intended - see "Window name formats" in the LDTP tutorial from > http://ldtp.freedesktop.org/wiki/Docs. In the "Glob pattern support" section it > states that Wildcards are allowed. Sorry, I can't find that section. Do you have a more precise URL? Still, even if it's documented somewhere, that should be mentioned everywhere that the format applies, probably by linking to some common page about the format. > I don't know if things changed in LDTP git > in the meanwhile though. I can try if the Glom scripts still work for me. Thanks, if you have the time.
(In reply to comment #4) > Sorry, I can't find that section. Do you have a more precise URL? It is on page 14 in http://download.freedesktop.org/ldtp/doc/ldtp-tutorial.pdf > Still, even if it's documented somewhere, that should be mentioned everywhere > that the format applies, probably by linking to some common page about the > format. I agree; just wanted to point out where I have the information from. > > I don't know if things changed in LDTP git > > in the meanwhile though. I can try if the Glom scripts still work for me. > > Thanks, if you have the time. Maybe not today, but I'll check this.
So the ldtp tests for the latest glom work for me with the latest LDTP (when running ldtprunner test.xml... is this enough to reproduce the problem for you?) Have you checked with accerciser that it recognizes the title of the dialog correctly? You should see something like http://arbur.net/stuff/accerciser-glom.png
Yes, ldtprunner test.xml is enough to reproduce the problem (waittillguiexist() times out). Yes, I see the same things (as your screenshot) in accerciser. Anyway, the main point of this bug is still comment #4 about the lack of documentation.
I have moved the Glom problem to https://bugzilla.gnome.org/show_bug.cgi?id=600523 , though it feels like a general problem in setting up ldtp.
I will fix the doc :) Apologize for late response. Thanks
Thanks for the bug report. Guess its fixed, could you please confirm, whether this is okay ? I'm really sorry for the delay. Thanks