Red Hat Bugzilla – Bug 803374
Need at-spi locators on dynamic text fields
Last modified: 2012-06-20 09:07:07 EDT
Description of problem:
The dynamically created fields in subscription manager need some tweaks to the at-spi locators.
Version-Release number of selected component (if applicable):
The 'bundled products' table in the subscription details under 'all available subcriptions' needs a unique name in order to access it's members (see attachment).
Two more items to come in the following comments (one attachment limit)...
Created attachment 570015 [details]
bundled products table
Created attachment 570016 [details]
my subscription details
The text fields in the subscription details under 'my subscriptions" all need to be named '<name>-Text'. They all follow this rule except for:
Stacking ID (currently has no name)
Bundled Products table (currently has no name)
Created attachment 570017 [details]
The following text fields need to be renamed under the "Product's Subscription Details" under the "My Installed Software" tab:
These should generally follow the <name>-Text naming scheme that everything else has been using.
To only further complicate the matter, all names must be unique between the three tabs. Since these are simply panes with data in them and not tables, all these text fields have the same parent window: "Subscription Manager". When you call for the text fields it will search all three tabs and simply return whichever it finds first (usually by render order).
Currently these fields do not have unique names:
- The bundled products tables (currently unnamed - found in 'All Available Subscriptions and My Subscriptions)
- Subscription Text (found in all three tabs)
- Service Level Text (All Available Subscriptions, My Subscriptions)
- Service Type Text (All Available Subscriptions, My Subscriptions)
Available in subscription-manager-0.99.11+
Created attachment 571773 [details]
bundled prods fixed
tested in: subscription-manager-gnome-0.99.10-1.git.85.057ca98.el6.x86_64
comment 0 appears fixed; the table is now called "Bundled Products Table" and works via the api:
user> (tasks/ui getcellvalue "Subscription Manager" "Bundled Products Table" 0 0)
"Awesome OS Server Bits"
^^ taken at state of the screenshot
Created attachment 571774 [details]
my subs mostly fixed
Stacking ID Text, Start Date Text, and End Date Text all have names and are usable:
user> (tasks/ui gettextvalue "Subscription Manager" "Stacking ID Text")
user> (tasks/ui gettextvalue "Subscription Manager" "Start Date Text")
user> (tasks/ui gettextvalue "Subscription Manager" "End Date Text")
----- ^^ This portion of the bug ( comment 2 ) is verified ^^ ---------
The Bundled products table now has a name, but it is the same name as the other Bundled products table and its currently unusable. It needs a different name.
Created attachment 571779 [details]
my installed mostly fixed
"Certificate Status Text" and "Product Text" have working names now and are usable:
user> (tasks/ui gettextvalue "Subscription Manager" "Certificate Status Text")
"Covered by contract(s) 66 through 03/20/2013"
user> (tasks/ui gettextvalue "Subscription Manager" "Product Text")
"Awesome OS for x86_64 Bits"
--- ^^ Verified for comment 3 ^^ ---
"Subscription Text" has the same at-spi locator as "Subscription Text" from the other tabs and is not reliably readable.
None of the items in comment 4 have been fixed, they still all share the same names and cannot be reliably accessed in automation.
Note that only the at-spi locator of the text field needs to be unique and not the actual field name. Marking FailedQA
The issue was brought up in sprint review 39 that the SLA subscribe button should be renamed entirely ('Autosubscribe' was suggested). If/when that gets changed, the 'All Available Subscribe' locator should be changed back to 'Subscribe'.
I'm marking this as FailedQA until the final word on that is given.
Do we have approval to change the name of the SLA subscribe button?
Sefler would like to see it. So lets try it.
Available in subscription-manager-0.99.13+
*** Bug 805594 has been marked as a duplicate of this bug. ***
All of the dynamic text fields seem to follow the right schema and have unique names. Additionally the auto-subscribe button and subscribe button are different and work as expected.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.