Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | Click on text attributes button in Header & Footer dialog fails with 'clean' $USERPROFILE | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Calc | Reporter: | redflagzhulihua <ooo.redflag> | ||||||
Component: | ui | Assignee: | AOO issues mailing list <issues> | ||||||
Status: | CONFIRMED --- | QA Contact: | |||||||
Severity: | Trivial | ||||||||
Priority: | P3 | CC: | issues, jogi, peter.junge, zhanghong | ||||||
Version: | recent-trunk | ||||||||
Target Milestone: | --- | ||||||||
Hardware: | All | ||||||||
OS: | Windows XP | ||||||||
Issue Type: | DEFECT | Latest Confirmation in: | --- | ||||||
Developer Difficulty: | --- | ||||||||
Attachments: |
|
Description
redflagzhulihua
2008-01-17 10:56:29 UTC
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
|