# 自动化测试报告

测试人员 : WangYingHao

开始时间 : 2021-06-23 11:23:34

合计耗时 : 0:00:27.926717

测试结果 : 共 1，错误 1，通过率= 0.00%

2021-06-23-11:23:34

通过率 [0.00% ] 通过[ 0 ] 错误[ 1 ] 失败[ 0 ] 所有[ 1 ]

用例集/测试用例 | 总计 | 通过 | 错误 | 失败 | 详细
InterfaceTest | 1 | 0 | 1 | 0 | 详细

test_run_cases_00001_1: test_run_cases_00001_1

    ft1_1: Traceback (most recent call last):
      File "D:/RayDataTestPlaformDjango/automated_main/view/ui_automation/ui_test_task/extend/run_task.py", line 85, in test_run_cases
        self.bases.click(page_element.ui_element_positioning.locating_method, page_element.ui_page_element)
      File "D:\RayDataTestPlaformDjango\automated_main\view\ui_automation\ui_test_case\ui_automation\base.py", line 122, in click
        return self.element(by, element).click()
    AttributeError: 'bool' object has no attribute 'click'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "C:\Python3\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
        return self.cursor.execute(sql, params)
      File "C:\Python3\lib\site-packages\django\db\backends\mysql\base.py", line 73, in execute
        return self.cursor.execute(query, args)
      File "C:\Python3\lib\site-packages\pymysql\cursors.py", line 148, in execute
        result = self._query(query)
      File "C:\Python3\lib\site-packages\pymysql\cursors.py", line 310, in _query
        conn.query(q)
      File "C:\Python3\lib\site-packages\pymysql\connections.py", line 548, in query
        self._affected_rows = self._read_query_result(unbuffered=unbuffered)
      File "C:\Python3\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
        result.read()
      File "C:\Python3\lib\site-packages\pymysql\connections.py", line 1156, in read
        first_packet = self.connection._read_packet()
      File "C:\Python3\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
        packet.raise_for_error()
      File "C:\Python3\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
        err.raise_mysql_exception(self._data)
      File "C:\Python3\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
        raise errorclass(errno, errval)
    pymysql.err.IntegrityError: (1048, "Column 'ui_task_id' cannot be null")

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "C:\Python3\lib\site-packages\ddt.py", line 182, in wrapper
        return func(self, *args, **kwargs)
      File "D:/RayDataTestPlaformDjango/automated_main/view/ui_automation/ui_test_task/extend/run_task.py", line 246, in test_run_cases
        UITestResultAssociated.objects.create()
      File "C:\Python3\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
        return getattr(self.get_queryset(), name)(*args, **kwargs)
      File "C:\Python3\lib\site-packages\django\db\models\query.py", line 447, in create
        obj.save(force_insert=True, using=self.db)
      File "C:\Python3\lib\site-packages\django\db\models\base.py", line 754, in save
        force_update=force_update, update_fields=update_fields)
      File "C:\Python3\lib\site-packages\django\db\models\base.py", line 792, in save_base
        force_update, using, update_fields,
      File "C:\Python3\lib\site-packages\django\db\models\base.py", line 895, in _save_table
        results = self._do_insert(cls._base_manager, using, fields, returning_fields, raw)
      File "C:\Python3\lib\site-packages\django\db\models\base.py", line 935, in _do_insert
        using=using, raw=raw,
      File "C:\Python3\lib\site-packages\django\db\models\manager.py", line 85, in manager_method
        return getattr(self.get_queryset(), name)(*args, **kwargs)
      File "C:\Python3\lib\site-packages\django\db\models\query.py", line 1254, in _insert
        return query.get_compiler(using=using).execute_sql(returning_fields)
      File "C:\Python3\lib\site-packages\django\db\models\sql\compiler.py", line 1397, in execute_sql
        cursor.execute(sql, params)
      File "C:\Python3\lib\site-packages\django\db\backends\utils.py", line 66, in execute
        return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
      File "C:\Python3\lib\site-packages\django\db\backends\utils.py", line 75, in _execute_with_wrappers
        return executor(sql, params, many, context)
      File "C:\Python3\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
        return self.cursor.execute(sql, params)
      File "C:\Python3\lib\site-packages\django\db\utils.py", line 90, in __exit__
        raise dj_exc_value.with_traceback(traceback) from exc_value
      File "C:\Python3\lib\site-packages\django\db\backends\utils.py", line 84, in _execute
        return self.cursor.execute(sql, params)
      File "C:\Python3\lib\site-packages\django\db\backends\mysql\base.py", line 73, in execute
        return self.cursor.execute(query, args)
      File "C:\Python3\lib\site-packages\pymysql\cursors.py", line 148, in execute
        result = self._query(query)
      File "C:\Python3\lib\site-packages\pymysql\cursors.py", line 310, in _query
        conn.query(q)
      File "C:\Python3\lib\site-packages\pymysql\connections.py", line 548, in query
        self._affected_rows = self._read_query_result(unbuffered=unbuffered)
      File "C:\Python3\lib\site-packages\pymysql\connections.py", line 775, in _read_query_result
        result.read()
      File "C:\Python3\lib\site-packages\pymysql\connections.py", line 1156, in read
        first_packet = self.connection._read_packet()
      File "C:\Python3\lib\site-packages\pymysql\connections.py", line 725, in _read_packet
        packet.raise_for_error()
      File "C:\Python3\lib\site-packages\pymysql\protocol.py", line 221, in raise_for_error
        err.raise_mysql_exception(self._data)
      File "C:\Python3\lib\site-packages\pymysql\err.py", line 143, in raise_mysql_exception
        raise errorclass(errno, errval)
    django.db.utils.IntegrityError: (1048, "Column 'ui_task_id' cannot be null")

总计 | 1 | 0 | 1 | 0 | 通过率：0.00%