To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=52604
Issue #:|52604
Summary:|Testtool: Accesmethods for controls on dialogs of
|type "active"
Component:|utilities
Version:|OOo 2.0
Platform:|All
URL:|
OS/Version:|All
Status:|NEW
Status whiteboard:|
Keywords:|
Resolution:|
Issue type:|ENHANCEMENT
Priority:|P3
Subcomponent:|automation
Assigned to:|gh
Reported by:|jsk
------- Additional comments from [EMAIL PROTECTED] Fri Jul 29 02:06:13 -0700
2005 -------
please provide direct access-methods to the default controls on dialogs of type
"active". At least control.exists() should be supported. Providing
control.IsEnabled would be useful too but i can do without.
Reason:
Dialogs of type "Active" typically have controls like "OK","YES", "NO", "CANCEL"
which have no id in the hid.lst but can be accessed via instructions like
Kontext "Active"
Active.OK()
This has one disadvantage: If you do not know which dialog of type "Active" is
open you can only access the buttons by encapsulating them in a try/catch block
which is extrmely time consuming.
There are two ways of doing so:
Bad:
try
actice.ok()
catch
active.yes()
endcatch
Better:
try
active.ok()
catch
...
endcatch
try
active.yes()
catch
...
endcatch
The latter can take up to 15 seconds on slow machines effectively extending the
runtime of some test by a factor of four, loading all templates and samples in
particular.
---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]