Hi Fredrik, Oh, I see clearly now. Thanks very much! 谢谢!^_^
Regards weixq ----- Original Message ----- From: "Fredrik Haegg" <[EMAIL PROTECTED]> Newsgroups: openoffice.qa.dev To: <[email protected]> Sent: Tuesday, April 15, 2008 4:07 PM Subject: Re: [qa-dev] I want to ask 2 questions about the automation test of Impress > weixq wrote: >> Hello all, >> I have 2 questions about the automation test of Impress to ask. >> The first one: How can we test the custom animation? How can we know the >> custom animation effect we added is showing rightly? >> If there is a way to make the test tool itself judge the custom animation > effect we added to the target object is the right >> one we choose but not another one? > > You cannot test if the effect is "showing" in the right way. You can > only test if an effect has been assigned correctly to an object. > (by deselecting the object, select it again and check what effects it > has assigned to it) > > >> The second one is that when we show an impress document, how can we test the >> Impress is in the presentation state? >> And we discuss this maybe there are 2 ways, the 1st one I think is to > use the DocumentPresentation.Exists method, > > Most of the time, this is right. But add a timer-value after .exists ( > DocumentPresentation.Exists(5) ) to give the presentation-screen some > time (in this case 5 seconds) to appear. > > >> and the 2nd Zhanghong tell me that we can use 'Dialogtest' function of >> global tools. And which one is right? > > Well, only if you want to check images manually after the test is run. > But then it's not "automatic" testing anymore. I would not test in that > way. > > >> If there are another way to test the Impress is in slideshow state? > > Yes, you can simply set the kontext to "DocumentPresentation" and do > something with it. For instance, if you have more than one slide, you > can bring up the Navigator, check at which slide you currently are, make > a mouseclick or a hTypeKeys "<SPACE>" to change slides, and then check > the navigator again to see at which slide you are. > If it works, it's there and it's working. And if it doesn't work - > you'll get a warning in the logfile. > > And when you read that logfile, you'll know something went wrong. > And you will also know _where_ it went wrong. > > Instead of using Dialogtest and having to go through lots of screendumps > to _maybe_ see something which is wrong. > > >> Sorry to disturb. > > No. It's not disturbing. You have questions, we have answers. Ask more. > And keep asking. : ) > > >> Thank you very much! > > > bu yong ker chi > > / Fredrik > > > > -- > Sun Microsystems GmbH Fredrik Haegg > Nagelsweg 55 Software > 20097 Hamburg Phone: +49 (0)40 23646 634 > Germany Fax: +49 (0)40 23646 650 > http://www.sun.de mailto:[EMAIL PROTECTED] > > Sitz der Gesellschaft: Sun Microsystems GmbH, Sonnenallee 1, > D-85551 Kirchheim-Heimstetten > Amtsgericht Muenchen: HRB 161028 > Geschaeftsfuehrer: Thomas Schroeder, Wolfgang Engels, Dr. Roland Boemer > Vorsitzender des Aufsichtsrates: Martin Haering > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED]
