Hi all,

I have some questions while I'm reading the scripts. I hope you can help me. 
Thank you.

1. ResetApplication
In the book "testtool", I find the explaination: Returns OpenOffice.org to its 
base state and writes the errors to the resultfile. This function can only be 
used in the recoverroutine(TestEnter, TestExit).
But I find this function in FirstOfficeStart which invoked by GetUseFiles.

[quote]
sub FirstOfficeStart
'/// First start-routine.
    Dim i as integer
    caselog ""                   '///+<ul><li>Stop the first default-output 
into the resultfile</li>
    Call hStartTheOffice         '///+<li>Start the office</li>
    ResetApplication             '///+<li>Make the first recovering without an 
error output.</li></ul>
    'Disabling crash handling by TestTool. The crash reporter is used instead.
    'Needs to get executed everytime after a 'ResetApplication' command
    catchGPF false
     ' Recover to backingwindow, until resetApplication can handle this
     for i = 1 to getDocumentCount
         hCloseDocument() 
     next i
end sub
[/quote]
Why it is used here? What if we don't use it here? What the specific operation 
it does to OpenOffice.org?

2. catchGPF false
I can't find "catchGPF" in the instruction book "TestTool", but I read the 
remark following this instruction: ' Recover to backingwindow, until 
resetApplication can handle this 
I have a guess about this, would you tell me am I right or am I wrong? If I'm 
wrong, would you please tell me the truth? Thanks.
I guess:
catchGPF false: OpenOffice will not give the crash message(Recovery dialog) 
when startup next time after its crash.
catchGPF true: OpenOffice will give the crash message(Recovery dialog) when 
startup next time after its crash.


Thank you!

Best regards,

2008-10-23 



Zhu Lihua 

Reply via email to