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

Premkumar Jothimani prem.jothimani at gmail.com
Wed Nov 9 23:54:19 PST 2005


Hi Mauricio Lin

I tried with the files you sent. I could not reproduce the problem. I could
open 9 windows with your script. I am on SUSE 10 machine. And I dont think
the number of tries will matter and there must be timing issues which might
actually cause the window to appear slowly. Also please check the file on
which it is failing, may be try and open it manually. BTW, is the window
open (corresponding to the file on which the script files) when u see the
error ?

Please add if you have any thing else that would help in resolving this
issue.

Regards
Premkumar

On 11/9/05, Mauricio Lin <mauriciolin at gmail.com > wrote:
>
> Hi Premkumar,
>
> The files are attached.
>
> Before you run the script, you have to create a directory named as
> 'pdf_files' and add some pdf files in such directory. The script is quite
> simple, so you can check it easily.
> The error only happens when it tries to open more than 6 pdf files, so
> keep in mind you have to add at least 7 files in the directory.
>
> Thanks in advance,
>
> Mauricio Lin.
>
> On 11/8/05, J Premkumar <jpremkumar at novell.com > wrote:
> >
> > 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>
> >
> >
>
> _______________________________________________
> Ldtp-dev mailing list
> Ldtp-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/ldtp-dev
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/ldtp-dev/attachments/20051110/58d726b1/attachment.htm


More information about the Ldtp-dev mailing list