[LDTP-Dev] my gpdf script is not working at ldtp 0.2.1

J Premkumar jpremkumar at novell.com
Tue Nov 8 10:16:30 PST 2005


Hi

First of all I should thank you for excersing ldtp across its length and
breadth, and helping us to build a more reliable LDTP. Keep up the good
work :)

Regarding the bug you have reported, it seems to me that it is not a bug
in ldtp. But I am not very clear about the scenario either. If you can
send the map file along with the script, I will try and reproduce the
problem. May be I can give a clear explanation regarding this problem
then.

Regards
Premkumar

>>> Prashanth Mohan <prashmohan at gmail.com> 10/29/05 1:10 PM >>>
On Fri, 2005-10-28 at 16:57 -0400, Mauricio Lin wrote:
> Hi all,
> 
> I have recently installed the ldtp 0.2.1 on my debian system.
> 
> The script I have it works on ldtp 0.2.0 but a strange error is
> happening when I use on ldtp 0.2.1.
> 
> Take a look the piece of code:
> 
> # load several pdf files
> 
> for i in range(0, len(files)):
>     selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')
>     if waittillguiexist('dlgLoadfile'):
>         click('dlgLoadfile', 'btnOpen')
>         wait(1)
>         selectrowindex('dlgLoadfile', 'tblFiles', i)
>         click('dlgLoadfile', 'btnOpen')
>         setcontext(title_name, files[i])
>         print i
>         wait(10)
> 
> It works well on ldtp 0.2.0, but the following message is printed on
> ldtp 0.2.1.
> 
> ./gpdf_1.py
> 0
> 1
> 2
> 3
> 4
> 5
> Traceback (most recent call last):
>   File "./gpdf_1.py", line 16, in ?
>     selectmenuitem('frmPDFViewer', 'mnuFile;mnuOpen')
> ldtp.error: Window: frmPDFViewer not opened

It seems that gui.c is not able to find the gui handle. This is the
default error message which pops up. Prem and Nagappan are out of town
for diwali celebrations. Hope you will hear from them soon :-)
> 
> Notice that after the variable i is printed until 5 and when this
> variable is 6  the error is printed. 
> 
> Is it a bug from ldtp 0.2.1?
> 
> BR,
> 
> Mauricio Lin.
> _______________________________________________
> Ldtp-dev mailing list
> Ldtp-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
-- 
Prashanth Mohan <prashmohan at gmail.com>



More information about the Ldtp-dev mailing list