TA的每日心情 | 无聊 2016-3-18 10:30 |
---|
签到天数: 10 天 连续签到: 1 天 [LV.3]测试连长
|
楼主?
调你的代码中:出现如下错误
是不是没有定义“self.cursor”引起的?
ERROR: test_login_normal (test_interface_case.TestInterfaceCase)
----------------------------------------------------------------------
Traceback (most recent call last):
File "D:\automation\project\interface_test_automation\test_interface_case.py", line 40, in test_login_normal
self.cursor.execute('UPDATE test_result SET result = %s WHERE case_id = %s', (self.test_data.result, self.test_data.case_id))
AttributeError: 'TestInterfaceCase' object has no attribute 'cursor'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "D:\automation\project\interface_test_automation\test_interface_case.py", line 45, in test_login_normal
self.cursor.execute('rollback')
AttributeError: 'TestInterfaceCase' object has no attribute 'cursor' |
|