Bug 669488

Summary: Inventory Buttons not responding to selenium clicks
Product: [Other] RHQ Project Reporter: dgao
Component: Core UIAssignee: RHQ Project Maintainer <rhq-maint>
Status: CLOSED CURRENTRELEASE QA Contact: Corey Welton <cwelton>
Severity: medium Docs Contact:
Priority: low    
Version: 4.0.0CC: mfoley, spinder
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-05-24 01:08:59 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description dgao 2011-01-13 19:20:34 UTC
All of the TreeGrid items in the Inventory pane is not responsive to any selenium generated clicks. The selenium code executes the click fine, but nothing is loaded in the actual UI. 

So any items in groups (All Groups, Compat Groups, Mixed Groups, etc...) and resources (Platform, Servers, Services, etc...) doesn't work w/ selenium. 

This problem was discovered on 1/7/11 build. The scenario was then retested against 12/13 build and the same problem persists.

Comment 1 Simeon Pinder 2011-01-20 20:17:33 UTC
The SmartGWT library in rhq has been upgraded from 2.2 to 2.4.  To get the selenium().click() actions to execute correctly you will need to go through the following instructions to make sure you update all references to use smartgwt 2.4:  

http://www.rhq-project.org/display/RHQ/Testing+SmartGWT+with+Selenium#TestingSmartGWTwithSelenium-SampleScripts

The following line of com.redhat.qe.jon30.locators.UIElements needs to be updated as follows because of recent changes in the GWT Dashboard:

public Element dashboardButton = new Element("Identifier=Dashboard");
  to
public Element dashboardButton = new Element("Identifier=Dashboards");

These changes should remove the problem that you've reported.

Comment 2 Mike Foley 2011-04-15 12:16:10 UTC
verified by visual inspection of hudson integration test results 

http://hudson.rhq.lab.eng.bos.redhat.com:8080/hudson/view/qe-RHQ/job/overnight-rhq-4.0/TestNG_Report/

Comment 3 Corey Welton 2011-05-24 01:08:59 UTC
Bookkeeping - closing bug - fixed in recent release.