SatelliteQE / robottelo

Robottelo is a test suite that exercises The Foreman.
GNU General Public License v3.0
61 stars 114 forks source link

Automation failure : test_update_role_org #2303

Closed tkolhar closed 9 years ago

tkolhar commented 9 years ago

TestNames: tests.foreman.ui.test_role.Role.test_update_role_org

Error Message 'NoneType' object has no attribute 'tag_name'

Stacktrace File "/usr/lib64/python2.7/unittest/case.py", line 369, in run testMethod() File "/home/jenkins/workspace/satellite6-automation-downstream-rhel66-ui/tests/foreman/ui/test_role.py", line 190, in test_update_role_org organization=[org_name]) File "robottelo/ui/role.py", line 61, in update locators["roles.select_resource_type"]) File "/home/jenkins/shiningpanda/jobs/abb3bf3f/virtualenvs/d41d8cd9/lib/python2.7/site-packages/selenium/webdriver/support/select.py", line 34, in init if webelement.tag_name.lower() != "select": '\'NoneType\' object has no attribute \'tag_name\'\n--------------------

tkolhar commented 9 years ago

when executed locally using nosetests: $ nosetests -c robottelo.properties -m test_update_role_org /home/tkolhar/git/robottelo/tests/foreman/ui/test_role.py 2015-05-27 16:39:01 - nailgun.client - DEBUG - Received HTTP 201 response: {"ancestry":null,"apply_info_task_id":null,"created_at":"2015-05-27T11:08:59Z","default_info":{"system":[],"distributor":[]},"description":null,"id":419,"ignore_types":[],"katello_default":true,"label":"0d54673c-d16b-40bc-99c9-9f8b91aa29b7","name":"򴚀򝲠𪜙𶛇󹚗𔆚􁇚򹭯񯛾񰹑񬩙􁰜􎵠󹾵󬚑򚜓󼆎񆏋𜓮󤳟","title":"򴚀򝲠𪜙𶛇󹚗𔆚􁇚򹭯񯛾񰹑񬩙􁰜􎵠󹾵󬚑򚜓󼆎񆏋𜓮󤳟","updated_at":"2015-05-27T11:08:59Z","service_levels":[],"service_level":null} 2015-05-27 16:39:01 - robottelo.ui.locators - DEBUG - Accessing locator "login.username" by id: "login_login" 2015-05-27 16:39:01 - robottelo.ui.locators - DEBUG - Accessing locator "login.username" by id: "login_login" 2015-05-27 16:39:01 - robottelo.ui.locators - DEBUG - Accessing locator "login.password" by id: "login_password" 2015-05-27 16:39:02 - robottelo.ui.locators - DEBUG - Accessing locator "submit" by name: "commit" 2015-05-27 16:39:03 - robottelo.ui.locators - DEBUG - Accessing locator "notif.error" by xpath: "//div[contains(@class, 'jnotify-notification-error')]" 2015-05-27 16:39:08 - robottelo.ui.base - DEBUG - NoSuchElementException: Could not locate element //div[contains(@class, 'jnotify-notification-error')]. 2015-05-27 16:39:08 - robottelo.ui.locators - DEBUG - Accessing locator "menu.administer" by xpath: "//div[contains(@style,'static') or contains(@style, 'fixed')]//a[@id='administer_menu']" 2015-05-27 16:39:08 - robottelo.ui.locators - DEBUG - Accessing locator "menu.roles" by xpath: "//div[contains(@style,'static') or contains(@style, 'fixed')]//a[@id='menu_item_roles']" 2015-05-27 16:39:11 - robottelo.ui.locators - DEBUG - Accessing locator "roles.new" by xpath: "//a[contains(@href, '/roles/new')]" 2015-05-27 16:39:15 - robottelo.ui.locators - DEBUG - Accessing locator "roles.name" by id: "role_name" 2015-05-27 16:39:17 - robottelo.ui.locators - DEBUG - Accessing locator "roles.name" by id: "role_name" 2015-05-27 16:39:18 - robottelo.ui.locators - DEBUG - Accessing locator "submit" by name: "commit" 2015-05-27 16:39:23 - robottelo.ui.locators - DEBUG - Accessing locator "roles.role" by xpath: "//a[contains(., '%s')]" 2015-05-27 16:39:23 - robottelo.ui.locators - DEBUG - Accessing locator "search" by id: "search" 2015-05-27 16:39:23 - robottelo.ui.locators - DEBUG - Accessing locator "search_button" by xpath: "//button[contains(@type,'submit')]" 2015-05-27 16:39:27 - robottelo.ui.locators - DEBUG - Accessing locator "roles.role" by xpath: "//a[contains(., '%s')]" 2015-05-27 16:39:27 - robottelo.ui.locators - DEBUG - Accessing locator "search" by id: "search" 2015-05-27 16:39:27 - robottelo.ui.locators - DEBUG - Accessing locator "search_button" by xpath: "//button[contains(@type,'submit')]" 2015-05-27 16:39:29 - robottelo.ui.locators - DEBUG - Accessing locator "roles.dropdown" by xpath: "//td/span/a[normalize-space(.)='%s']/following::td/div/a[@data-toggle='dropdown']" 2015-05-27 16:39:29 - robottelo.ui.locators - DEBUG - Accessing locator "roles.dropdown" by xpath: "//td/span/a[normalize-space(.)='%s']/following::td/div/a[@data-toggle='dropdown']" 2015-05-27 16:39:30 - robottelo.ui.locators - DEBUG - Accessing locator "roles.add_permission" by xpath: "//a[@data-id='aid_filters_new']" 2015-05-27 16:39:30 - robottelo.ui.locators - DEBUG - Accessing locator "roles.select_resource_type" by id: "filter_resource_type" 2015-05-27 16:39:34 - robottelo.ui.locators - DEBUG - Accessing locator "entity_select" by xpath: "//div[@class='ms-selectable']//span[contains(.,'%s')]" 2015-05-27 16:39:34 - robottelo.ui.locators - DEBUG - Accessing locator "filter" by xpath: "//div[@id='ms-%s_ids']//input[contains(@class,'ms-filter')]" 2015-05-27 16:39:36 - robottelo.ui.locators - DEBUG - Accessing locator "roles.tab_org" by xpath: "//a[@href='#organizations']" 2015-05-27 16:39:38 - robottelo.ui.locators - DEBUG - Accessing locator "entity_select" by xpath: "//div[@class='ms-selectable']//span[contains(.,'%s')]" 2015-05-27 16:39:38 - robottelo.ui.locators - DEBUG - Accessing locator "filter" by xpath: "//div[@id='ms-%s_ids']//input[contains(@class,'ms-filter')]" 2015-05-27 16:39:40 - robottelo.ui.locators - DEBUG - Accessing locator "submit" by name: "commit" 2015-05-27 16:39:45 - robottelo.ui.locators - DEBUG - Accessing locator "login.gravatar" by xpath: "//img[contains(@class, 'avatar')]" 2015-05-27 16:39:45 - robottelo.ui.locators - DEBUG - Accessing locator "menu.account" by xpath: "//a[@id='account_menu']" 2015-05-27 16:39:45 - robottelo.ui.locators - DEBUG - Accessing locator "menu.sign_out" by xpath: "//a[@id='menu_item_logout']" ok XML: foreman-results.xml Ran 1 test in 84.136s OK