Closed tkolhar closed 9 years ago
when executed locally using nosetests: $ nosetests -c robottelo.properties -m test_update_role_permission /home/tkolhar/git/robottelo/tests/foreman/ui/test_role.py /usr/lib/python2.7/site-packages/nose/plugins/manager.py:395: RuntimeWarning: Unable to load plugin xunitmp = nose_xunitmp:XunitMP: cannot import name force_unicode RuntimeWarning) @Test: Update role permissions ... 2015-05-27 16:45:55 - robottelo.ui.locators - DEBUG - Accessing locator "login.username" by id: "login_login" 2015-05-27 16:45:55 - robottelo.ui.locators - DEBUG - Accessing locator "login.username" by id: "login_login" 2015-05-27 16:45:55 - robottelo.ui.locators - DEBUG - Accessing locator "login.password" by id: "login_password" 2015-05-27 16:45:55 - robottelo.ui.locators - DEBUG - Accessing locator "submit" by name: "commit" 2015-05-27 16:45:57 - robottelo.ui.locators - DEBUG - Accessing locator "notif.error" by xpath: "//div[contains(@class, 'jnotify-notification-error')]" 2015-05-27 16:46:02 - robottelo.ui.base - DEBUG - NoSuchElementException: Could not locate element //div[contains(@class, 'jnotify-notification-error')]. 2015-05-27 16:46:02 - 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:46:02 - 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:46:05 - robottelo.ui.locators - DEBUG - Accessing locator "roles.new" by xpath: "//a[contains(@href, '/roles/new')]" 2015-05-27 16:46:08 - robottelo.ui.locators - DEBUG - Accessing locator "roles.name" by id: "role_name" 2015-05-27 16:46:09 - robottelo.ui.locators - DEBUG - Accessing locator "roles.name" by id: "role_name" 2015-05-27 16:46:09 - robottelo.ui.locators - DEBUG - Accessing locator "submit" by name: "commit" 2015-05-27 16:46:14 - robottelo.ui.locators - DEBUG - Accessing locator "roles.role" by xpath: "//a[contains(., '%s')]" 2015-05-27 16:46:14 - robottelo.ui.locators - DEBUG - Accessing locator "search" by id: "search" 2015-05-27 16:46:14 - robottelo.ui.locators - DEBUG - Accessing locator "search_button" by xpath: "//button[contains(@type,'submit')]" 2015-05-27 16:46:18 - robottelo.ui.locators - DEBUG - Accessing locator "roles.role" by xpath: "//a[contains(., '%s')]" 2015-05-27 16:46:18 - robottelo.ui.locators - DEBUG - Accessing locator "search" by id: "search" 2015-05-27 16:46:18 - robottelo.ui.locators - DEBUG - Accessing locator "search_button" by xpath: "//button[contains(@type,'submit')]" 2015-05-27 16:46:20 - 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:46:20 - 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:46:20 - robottelo.ui.locators - DEBUG - Accessing locator "roles.add_permission" by xpath: "//a[@data-id='aid_filters_new']" 2015-05-27 16:46:21 - robottelo.ui.locators - DEBUG - Accessing locator "roles.select_resource_type" by id: "filter_resource_type" 2015-05-27 16:46:23 - robottelo.ui.locators - DEBUG - Accessing locator "entity_select" by xpath: "//div[@class='ms-selectable']//span[contains(.,'%s')]" 2015-05-27 16:46:23 - robottelo.ui.locators - DEBUG - Accessing locator "filter" by xpath: "//div[@id='ms-%s_ids']//input[contains(@class,'ms-filter')]" 2015-05-27 16:46:25 - robottelo.ui.locators - DEBUG - Accessing locator "filter" by xpath: "//div[@id='ms-%s_ids']//input[contains(@class,'ms-filter')]" 2015-05-27 16:46:26 - robottelo.ui.locators - DEBUG - Accessing locator "submit" by name: "commit" 2015-05-27 16:46:29 - robottelo.ui.locators - DEBUG - Accessing locator "login.gravatar" by xpath: "//img[contains(@class, 'avatar')]" 2015-05-27 16:46:29 - robottelo.ui.locators - DEBUG - Accessing locator "menu.account" by xpath: "//a[@id='account_menu']" 2015-05-27 16:46:29 - 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 62.068s OK
TestNames: tests.foreman.ui.test_role.Role.test_update_role_permission
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 170, in test_update_role_permission permission_list=permission_list) 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