Issue 85323 - Click on text attributes button in Header & Footer dialog fails with 'clean' $USERPROFILE
Summary: Click on text attributes button in Header & Footer dialog fails with 'clean' ...
Status: CONFIRMED
Alias: None
Product: Calc
Classification: Application
Component: ui (show other issues)
Version: recent-trunk
Hardware: All Windows XP
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-17 10:56 UTC by redflagzhulihua
Modified: 2013-08-07 15:13 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
See the three dialogs opened in header and footers (94.10 KB, image/png)
2008-01-18 09:09 UTC, jogi
no flags Details
VCL TestTool Basic script (2.13 KB, text/plain)
2008-01-25 13:05 UTC, jogi
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description redflagzhulihua 2008-01-17 10:56:29 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
Comment 1 jogi 2008-01-17 11:50:29 UTC
I also have that problem; just beginning with m241...
Comment 2 jogi 2008-01-17 13:53:18 UTC
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


Comment 3 jogi 2008-01-17 13:54:46 UTC
if Active.Exists(5) AND Active.GetRT = 373 then then    

has to be

if Active.Exists(5) AND Active.GetRT = 373 then
Comment 4 jogi 2008-01-17 13:58:41 UTC
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
Comment 5 jogi 2008-01-17 14:17:21 UTC
fixed also for OOH680; please verify
Comment 6 redflagzhulihua 2008-01-18 08:02:14 UTC
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).
Comment 7 jogi 2008-01-18 08:10:49 UTC
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.
Comment 8 jogi 2008-01-18 09:09:40 UTC
Created attachment 50960 [details]
See the three dialogs opened in header and footers
Comment 9 jogi 2008-01-18 09:12:21 UTC
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).
Comment 10 redflagzhulihua 2008-01-18 09:25:16 UTC
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.
Comment 11 jogi 2008-01-18 10:19:36 UTC
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?
Comment 12 redflagzhulihua 2008-01-18 10:57:50 UTC
Yes, it works very well manually. I think there must be something we are 
intersted in.
Comment 13 jogi 2008-01-22 13:15:06 UTC
@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.
Comment 14 jogi 2008-01-22 13:19:33 UTC
changing componente, sub-component, issue-type, adding jsi as cc:, target will
be 3.0 (2.4 has been comment out the test area)
Comment 15 jogi 2008-01-25 13:05:50 UTC
Created attachment 51155 [details]
VCL TestTool Basic script