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_positive_1 #2292

Closed tkolhar closed 9 years ago

tkolhar commented 9 years ago

TestNames: tests.foreman.ui.test_puppet_classes.PuppetClasses.test_update_positive_1

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

Stacktrace File "/usr/lib64/python2.7/unittest/case.py", line 369, in run testMethod() File "/home/jenkins/shiningpanda/jobs/abb3bf3f/virtualenvs/d41d8cd9/lib/python2.7/site-packages/ddt.py", line 146, in wrapper return func(self, _args, *_kwargs) File "/home/jenkins/workspace/satellite6-automation-downstream-rhel66-ui/tests/foreman/ui/test_puppet_classes.py", line 43, in test_update_positive_1 description File "robottelo/ui/puppetclasses.py", line 92, in update_class_parameter_description self.find_element(locators['puppetclass.parameter']).click() '\'NoneType\' object has no attribute \'click\'\n

tkolhar commented 9 years ago

when executed locally using nosetests: $ nosetests -c robottelo.properties -m test_update_positive_1 /home/tkolhar/git/robottelo/tests/foreman/ui/test_puppet_classes.py ERROR ERROR: @Test: Create new puppet-class Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/ddt.py", line 146, in wrapper return func(self, _args, *_kwargs) File "/home/tkolhar/git/robottelo/tests/foreman/ui/test_puppet_classes.py", line 43, in test_update_positive_1 description File "/home/tkolhar/git/robottelo/robottelo/ui/puppetclasses.py", line 92, in update_class_parameter_description self.find_element(locators['puppetclass.parameter']).click() AttributeError: 'NoneType' object has no attribute 'click'

it seems the element puppetclass.parameter is empty

jyejare commented 9 years ago

Test Locally Runs fine on jenkins machine and also passing in latest run. Results:

[root@jyejare robottelo]# nosetests -m test_update_positive_1 ./tests/foreman/ui/test_puppet_classes.py
.
----------------------------------------------------------------------
Ran 1 test in 59.623s

OK

So closing the issue.