Issue 100870 - Changing controlproperties by testtool does not work on Solaris
Summary: Changing controlproperties by testtool does not work on Solaris
Status: CONFIRMED
Alias: None
Product: Base
Classification: Application
Component: code (show other issues)
Version: DEV300m45
Hardware: Sun Solaris
: P3 Trivial (vote)
Target Milestone: ---
Assignee: AOO issues mailing list
QA Contact:
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-06 09:07 UTC by oc
Modified: 2013-08-07 15:45 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description oc 2009-04-06 09:07:45 UTC
On Solaris run autotest spreadsheet/c_so7_pp1.bas. There will be a warning
because entering a help-id in the controlproperties does not work (it is entered
but  lost when the propertydialog is closed ) This does only occur with the
testtool but not when it is entered manually (could also be seen in other autotests)
Comment 1 Frank Schönheit 2009-05-27 20:35:40 UTC
fs->oc: cannot reproduce ...

As a preface, please let me say that the bug description here is somewhat ...
sparse. Besides that "run the test ..." is at least difficult to do for
non-QA-automation people (whyt not at least giving the path to the test file,
not to mention the link to the testtool documentation. Oh, well, we don't have
one ... so then ...): "There will be a warning" is a "bug description" which
usually leads me to simply putting a "needmoreinfo" keyword into the bug,
without doing anything else!

Okay, I managed to start the testtool, I found the test file, I successfully ran
it. The only warning I get is in tIBIS111158, saying "The control seems to be
not named in the document?! Verify!". Looking into the source of this test
method, I assume that I *should* have seen the message "'HID:123456' has not
been accepted as 'Help URL' value.".

Alas, I didn't this warning, or any other one except the one mentioned above.
This was on unxsols4.pro, with testtool9, and DEV300.m47
Comment 2 Frank Schönheit 2009-05-27 20:36:54 UTC
resolving WORKSFORME
Comment 3 Frank Schönheit 2009-05-29 11:11:41 UTC
As explained by Oliver, the cited warning indeed points to the problem, in a
very indirect way. Since I didn't understand this indirection, yet :), I
modified the testtool script to re-open the property browser after setting the
help ID, and to check it has been set correctly - in fact, this check fails, the
property is empty.

Re-opening issue.
Comment 4 Frank Schönheit 2009-05-29 11:12:26 UTC
grabbing
Comment 5 Frank Schönheit 2009-05-29 11:43:12 UTC
fs->oc: back to you: The code for entering the HelpURL is as follows:
  Kontext "TabGeneralControl"
  '/// Enter in 'Help URL' as value exactly 'HID:123456'
  TabGeneralControl.TypeKeys "<TAB>" , true        
  HelpURL.setText "HID:123456"
  TabGeneralControl.TypeKeys "<RETURN>",true
That is, you focus the "General" tab page, press TAB once (so the first control
on that page is focused), then enter some text in the HelpURL field (which does
not have the focus at that time), and then press RETURN in the General page.
Unfortunately, this RETURN doesn't arrive at the HelpURL control, since it does
not have the focus. So, the control has no chance of committing its content.

Why this works on the other platforms is beyond me - I suppose that's by
accident only.

Several possibilities come to my mind how to fix that:
- do
    HelpURL.TypeKeys "<RETURN>",true
  instead of 
    TabGeneralControl.TypeKeys "<RETURN>",true
  Then, the RETURN, which commits the content, is sent to the HelpURL
  control. This is what I tried, and it works fine.
  Disadvantage: It's still not really a simulation of what users do, since
  HelpURL does not have the focus at that time.
  (Except ... if the "true" parameter at the "TypeKeys" method has the
  semantics of "focus the control before typing keys" - in this case, your
  original code is correct, and it's a testtool bug of not actually focusing
  the control.)
- Do a
    Kontext "HelpURL"
  before typing the RETURN. In my understanding (which is pretty limited with
  respect to testtool scripts), this could also fix the issue.
- Use the proper number of TAB keys to travel to the HelpURL control, instead
  of doing only one TAB.
Comment 6 Frank Schönheit 2009-05-29 11:47:55 UTC
> (Except ... if the "true" parameter at the "TypeKeys" method has the
> semantics of "focus the control before typing keys" - in this case, your
> original code is correct, and it's a testtool bug of not actually focusing
> the control.)

Uhm, forget this. If the second parameter means "set the focus to this window"
(and according to the TypeKeys documentation, this indeed is the meaning), then
your script is *not* correct, since it then requests to set the focus to the
"General" tab page, not to the HelpURL. So, I indeed think typing the RETURN
into the HelpURL control instead of the TabGeneralControl is the right solution
here.
Comment 7 oc 2009-11-16 13:00:38 UTC
not a showstopper for 3.2 => 3.x