Re: [Libreoffice-qa] LDTP now works for Linux, Win & Mac

2012-10-16 Thread Terrence Enger
On Tue, 2012-10-16 at 09:04 +0200, Thorsten Behrens wrote:
> Terrence Enger wrote:
> > I have played with it a little bit, and it looks really neat.
> > Thoughts arising ...
> > 
> Hi Terrence,
> 
> thanks a lot for looking into this -
> 
> > (3) That start-and-end, with nothing in between, takes about 28
> > seconds.  My admittedly wimpy machine could do that about 3000
> > times a day.  This does not bode well for heavy use of the tool.
> > 
> That would be probably acceptable - since tasks could be distributed
> over many people?

Well, there was a message a couple days ago asking about wish lists
for funding.  One candidate idea would be enough capacity to run
through the presumably growing set of tests every few days, where "few
days" means a fraction of the interval between release candidates.

( Although I confess I would put a higher priority on a virtual
machine set up for testing Base.  Drew Jensen made some efforts toward
this end early this year, IIRC. )

> 
> > (4) The "usually" in point (1) troubles me.  One execution can produce
> > 14 levels of stack trace leading from my program statement `ldtp
> > import *` to message "socket.error: [Errno 111] Connection
> > refused".  Subsequent executions do the expected start-and-end.
> > My newbie instinct shouts "timing issue".  So, the next part of
> > the learning curve will be steeper.

I read that there is a python mailing list, but it is very active.
Can I cope with another hundred messages a day?  Only if I am
desperate, I fear.

> > 
> That is a downer indeed - the last thing you want is unreliable
> tests. Curious how much of that is due to the usage of the
> accessibility API. Which platform / versions were you using again?

I am using ubuntu natty (11.04) 32-bit, which gives me ldtp-2.0.6.
So, quite old, and it lacks ldtprecord and ldtpeditor.

Ubuntu quantal (12.10) should be out in a couple of days.  Maybe I
will try the 64-bit version.  My previous attempt at using a 64-bit
version, several years ago, showed it to be notably slow; but since
then I have doubled my RAM to 1GB.  Hope springs eternal, and all
that.


Terry.


___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


Re: [Libreoffice-qa] LDTP now works for Linux, Win & Mac

2012-10-16 Thread Thorsten Behrens
Terrence Enger wrote:
> I have played with it a little bit, and it looks really neat.
> Thoughts arising ...
> 
Hi Terrence,

thanks a lot for looking into this -

> (3) That start-and-end, with nothing in between, takes about 28
> seconds.  My admittedly wimpy machine could do that about 3000
> times a day.  This does not bode well for heavy use of the tool.
> 
That would be probably acceptable - since tasks could be distributed
over many people?

> (4) The "usually" in point (1) troubles me.  One execution can produce
> 14 levels of stack trace leading from my program statement `ldtp
> import *` to message "socket.error: [Errno 111] Connection
> refused".  Subsequent executions do the expected start-and-end.
> My newbie instinct shouts "timing issue".  So, the next part of
> the learning curve will be steeper.
> 
That is a downer indeed - the last thing you want is unreliable
tests. Curious how much of that is due to the usage of the
accessibility API. Which platform / versions were you using again?

Cheers,

-- Thorsten


pgpLigeU3SpO4.pgp
Description: PGP signature
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/

Re: [Libreoffice-qa] LDTP now works for Linux, Win & Mac

2012-10-15 Thread Terrence Enger
The promised attachment.  "This time fer shur, Rocky!"

#!/usr/bin/python

import os
import sys
from   ldtp  import *
import threading


# Give names to some strings

#   window title of a localbuilt LibreOffice
ttlLo = '*LibreOffice*[OOO*'
#   window title of our LibreOffice
ttlLoOurs = "Untitled 1 - LibreOffice Writer [OOO*"
# TODO:  (*) Are these strings robust "enough"?
#(*) Why exclude an installed LibreOffice?  Hmm?

#   command to run our LibreOffice
loCmd = "/home/terry/lo_hacking/git/libo/install/program/soffice.bin " \
"--norestore " \
"--writer " \
"2>/dev/null 1>/dev/null" # Hide messages.  Questionable.
# TODO:  (*) This is completely peculiar to my (tje, 2012-10-15)
#setup.  How do this better?  If this script were part
#of LO, then it could calculate a location relative to
#its own directory, but even that is bad in that it
#makes it hard to move the script from one place to
#another; it would be particularly hard to move it to
#a different level below SRCDIR.
#(*) For testing, it is confusing to see all the console
#output.things.


# We want our own invocation of master build, not somebody else's.

#   ... not somebody else's invocation
if guiexist ( ttlLo ) :
print "FAIL:  It seems localbuilt LibreOffice is already running.  " \
  "That's no good."
sys.exit()

#   ... but our own, if you please.

# TODO:  This is transcribed with little understanding from
#the python tutorial.  Better read some more, Terry.
class AsyncLo( threading.Thread ) :
def __init__( self ) :
threading.Thread.__init__( self )
def run( self ) :
os.system( loCmd )
print "Finished our asynchronous LibreOffice"# debug

background = AsyncLo()
background.start()
waittillguiexist( ttlLoOurs )
print "The main program continues to run in the foreground." # debug


# TODO:  Actual work, if there were any, would go here.


# Clean up

#   In the python interactive interpreter, I can select both levels
#   of menu in one call.  In this script, not.  Is this a question
#   of timing, or sump'n?  Should the tutorial mention this?
selectmenuitem  ( ttlLoOurs, 'mnuFile' )
selectmenuitem  ( ttlLoOurs, 'mnuExit LibreOffice' )

background.join ()
sys.exit()
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/

Re: [Libreoffice-qa] LDTP now works for Linux, Win & Mac

2012-10-15 Thread Terrence Enger
On Sat, 2012-10-13 at 07:20 +0200, Thorsten Behrens wrote:
> Hi there,
> 
> seen this today -
> 
>  
> http://nagappanal.blogspot.de/2012/10/ann-automated-testing-on-mac-atomac-101.html
> 
> Did anyone have experience (positive & negative) with that tool?

I have played with it a little bit, and it looks really neat.
Thoughts arising ...

(1) Since seeing your message yesterday, and starting from zero
knowledge of python, I have a program which usually starts and
ends Writer.  I conclude that the initial part of the learning
curve is acceptably shallow.

(2) While the tool is loaded, switching applications (e.g., moving
from the tutotial to the terminal window with the python
interpreter sitting at the input prompt) is noticeably slow.  So
much for running tests in the background while going on with other
work.

(3) That start-and-end, with nothing in between, takes about 28
seconds.  My admittedly wimpy machine could do that about 3000
times a day.  This does not bode well for heavy use of the tool.

(4) The "usually" in point (1) troubles me.  One execution can produce
14 levels of stack trace leading from my program statement `ldtp
import *` to message "socket.error: [Errno 111] Connection
refused".  Subsequent executions do the expected start-and-end.
My newbie instinct shouts "timing issue".  So, the next part of
the learning curve will be steeper.

The function to select a menu option lets you drill through
multiple levels of menu in one call.  This works when I enter the
statement at the command prompt of the python interpreter, but
within the script I must use two separate calls.  Again, I might
be doing something wrong, but there really is not much room here
to screw up.

Our cppunit test have also been known to have timing issues.
Sigh!


Just for specificity, I shall attach my program if it can pass the
spam filters.


Terry.


___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


Re: [Libreoffice-qa] LDTP now works for Linux, Win & Mac

2012-10-13 Thread bfo
Thorsten Behrens wrote
> Hi there,
> seen this today -
> 
> http://nagappanal.blogspot.de/2012/10/ann-automated-testing-on-mac-atomac-101.html
> Did anyone have experience (positive & negative) with that tool?
> Cheers,
> -- Thorsten

Hi.
See
http://nabble.documentfoundation.org/Cobra-WinLDTP-Automation-tp3992246.html
for some thoughts...
Best regards.



--
View this message in context: 
http://nabble.documentfoundation.org/Libreoffice-qa-LDTP-now-works-for-Linux-Win-Mac-tp4013125p4013160.html
Sent from the QA mailing list archive at Nabble.com.
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/


[Libreoffice-qa] LDTP now works for Linux, Win & Mac

2012-10-13 Thread Thorsten Behrens
Hi there,

seen this today -

 
http://nagappanal.blogspot.de/2012/10/ann-automated-testing-on-mac-atomac-101.html

Did anyone have experience (positive & negative) with that tool?

Cheers,

-- Thorsten


pgpLLWCwTNtdh.pgp
Description: PGP signature
___
List Name: Libreoffice-qa mailing list
Mail address: Libreoffice-qa@lists.freedesktop.org
Change settings: http://lists.freedesktop.org/mailman/listinfo/libreoffice-qa
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://lists.freedesktop.org/archives/libreoffice-qa/