Apache OpenOffice (AOO) Bugzilla – Issue 85323
Click on text attributes button in Header & Footer dialog fails with 'clean' $USERPROFILE
Last modified: 2013-08-07 15:13:10 UTC
We are testing OOo2.4(680m241), it's Localization27 test in TCM. When we run script c_updt.bas in qatesttool\calc\update on Window XP system, something strange happend. In testcase tEditHeadersAndFooters of c_002_.inc in qatesttool\calc\update\inc, after line665 executed, the following instruction can't performance as expected. The bottons clicked, but nothing happened. I click it manually, still can't input fields or invoke the TextAttribute Dialog. So after line 676, a error log printed: TabFont : Tab page not found at SetPage. Something very strange is once it passed for some reason, it will always pass. unless you delete the user config directory of OOo. There must be something wrong when TestTools operate the OpenOffice. Because it works very well when I manually run the case. something wrong with TestTool or with OOo2.4? Following is the part of scripts: EditHeadersAndFooters // line 660 Kontext Active.SetPage TabKopfzeileCalc Kontext "TabKopfzeileCalc" Call DialogTest ( TabKopfzeileCalc ) // line 665, Datei.Click // this line to line 674 doesn't work well Tabelle.Click Seitennummer.Click Seitenanzahl.Click Datum.Click Zeit.Click Textattribute.Click Kontext Active.setpage TabFont // line 676, error arise here Kontext "TabFont" TabFont.Cancel
I also have that problem; just beginning with m241...
Line 647 working well (Datei.Click). It inserts the file [name] into the header field on the left side. The problem is Textattribute.Click that there is no indicator to verify that really the tab dialog with its tab pages is up and that after a switch to tab page font it is really visible. Textattribute.Click Kontext 'Validate that the tab control (373) is up if Active.Exists(5) AND Active.GetRT = 373 then then Active.setpage TabFont Kontext "TabFont" 'After setting the tab page to 'Font' 'press cancel if TabFont.Exists(2) then TabFont.Cancel else warnlog "Switching to tab page 'Font' failed!" Active.Cancel Kontext "TabKopfzeileCalc" TabKopfzeileCalc.Cancel Call hCloseDocument goto endsub endif endif else warnlog "Text attributes tab pages came not up! Exiting test case." Kontext "TabKopfzeileCalc" TabKopfzeileCalc.Cancel Call hCloseDocument goto endsub endif
if Active.Exists(5) AND Active.GetRT = 373 then then has to be if Active.Exists(5) AND Active.GetRT = 373 then
Grrrr..... here the working code :-) Textattribute.Click Kontext 'Validate that the tab control (373) is up if Active.Exists(5) AND Active.GetRT = 373 then Active.SetPage TabFont Kontext "TabFont" 'After setting the tab page to 'Font' 'press cancel if TabFont.Exists(2) then TabFont.Cancel else warnlog "Switching to tab page 'Font' failed!" Active.Cancel Kontext "TabKopfzeileCalc" TabKopfzeileCalc.Cancel Call hCloseDocument goto endsub endif else warnlog "Text attributes tab pages came not up! Exiting test case." Kontext "TabKopfzeileCalc" TabKopfzeileCalc.Cancel Call hCloseDocument goto endsub endif
fixed also for OOH680; please verify
Hi, jsi, I'm sorry but it still doesn't work. I tried it again. The following instruction is executed, but nothing in the text area. Even if I click the buttons manually. If I manually run clac(not executed by testtool), these buttons work well. Datei.Click Tabelle.Click Seitennummer.Click Seitenanzahl.Click Datum.Click Zeit.Click And after this: Textattribute.Click //There is no Dialog come out. Even if I click the button manually. Kontext 'Validate that the tab control (373) is up if Active.Exists(5) AND Active.GetRT = 373 then Active.SetPage TabFont //This line still arise the same error. Kontext "TabFont" 'After setting the tab page to 'Font' 'press cancel if TabFont.Exists(2) then TabFont.Cancel else warnlog "Switching to tab page 'Font' failed!" Active.Cancel Kontext "TabKopfzeileCalc" TabKopfzeileCalc.Cancel Call hCloseDocument goto endsub endif else warnlog "Text attributes tab pages came not up! Exiting test case." Kontext "TabKopfzeileCalc" TabKopfzeileCalc.Cancel Call hCloseDocument goto endsub endif FontAttribute Dialog can't come out, even if I click the button manually. But in a manually executed calc, it works. Same error arise on the same insturction: Active.SetPage TabFont testing version: (680m241 ZH_CN).
I have commet the button out to evaluate it closer. The test case ALONE runs fine if the tab page has been loaded before. There seems to be a real timing issue. Try to run the test case (remove the out commented parts) Step-by-Step (F8) and you will see that there is the "TabFont" is coming up.
Created attachment 50960 [details] See the three dialogs opened in header and footers
I have inserted a screen shot that you see if you press on TextAttributes.Click that there is and should be a next dialog opened. (not three as I have written, but there are three tab pages included, maybe I will switch to all of them to see what happened).
Hi, I update from CVS this time. I found you comment the code you mentioned above. and deleted the first Textattribute.click section. To reproduce my issue, please delete the OOo user config directory. restart OOo, make a new config follow the wizard, close OOo, then restart this testscript. You will found: Datei.Click Tabelle.Click Seitennummer.Click Seitenanzahl.Click Datum.Click Zeit.Click can't input any thing into the left area. but the buttons did clicked. If you add the original Textattribute.Click, this button act as above buttons. Not dialog appears.
yes, I agree that seems to be a problem in the inital state. That's the reason why I have comment the case out. Manually I can't reproduce it. You, too?
Yes, it works very well manually. I think there must be something we are intersted in.
@dr: As said via phone; I have tried many hacks to get the dialog visible but with a cleaned/newly created $USERPROFILE a dialog is not coming up if we click the button via VCL TestTool. Textattribute.Click is the problem in the attached sample script which can be run in our TestTool Environment.
changing componente, sub-component, issue-type, adding jsi as cc:, target will be 3.0 (2.4 has been comment out the test area)
Created attachment 51155 [details] VCL TestTool Basic script