[root@XXXX]# python run.py
=========================================== testsession starts ===========================================
platform linux -- Python 3.7.4, pytest-5.2.2, py-1.10.0, pluggy-0.13.1
rootdir: /data/XXXX, inifile: pytest.ini
plugins: allure-pytest-2.8.16, html-2.1.1, metadata-1.11.0
collecting ... http://XXXX.net/
TGT
collected 21 items
TestCase/test_home.py
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/main.py", line 193, inwrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/main.py", line 237, in_main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in__call__
INTERNALERROR> returnself._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 93, in_hookexec
INTERNALERROR> returnself._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 87, in
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") ifhook.spec elseFalse,
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 208, in_multicall
INTERNALERROR> returnoutcome.get_result()
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 80, inget_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 187, in_multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/main.py", line 258, inpytest_runtestloop
INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item, nextitem=nextitem)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in__call__
INTERNALERROR> returnself._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 93, in_hookexec
INTERNALERROR> returnself._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 87, in
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") ifhook.spec elseFalse,
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 208, in_multicall
INTERNALERROR> returnoutcome.get_result()
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 80, inget_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 187, in_multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/runner.py", line 80, inpytest_runtest_protocol
INTERNALERROR> runtestprotocol(item, nextitem=nextitem)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/runner.py", line 89, inruntestprotocol
INTERNALERROR> rep = call_and_report(item, "setup", log)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/_pytest/runner.py", line 178, incall_and_report
INTERNALERROR> report = hook.pytest_runtest_makereport(item=item, call=call)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/hooks.py", line 286, in__call__
INTERNALERROR> returnself._hookexec(self, self.get_hookimpls(), kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 93, in_hookexec
INTERNALERROR> returnself._inner_hookexec(hook, methods, kwargs)
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/manager.py", line 87, in
INTERNALERROR> firstresult=hook.spec.opts.get("firstresult") ifhook.spec elseFalse,
INTERNALERROR> File "/usr/local/python3/lib/python3.7/site-packages/pluggy/callers.py", line 203, in_multicall
INTERNALERROR> gen.send(outcome)
INTERNALERROR> File "/data/XXXX/conftest.py", line 73, inpytest_runtest_makereport
INTERNALERROR> screen_img = _capture_screenshot()
INTERNALERROR> File "/data/XXXX/conftest.py", line 149, in_capture_screenshot
INTERNALERROR> driver.save_screenshot(screen_path)
INTERNALERROR> AttributeError: 'NoneType' object has no attribute 'save_screenshot'
========================================== no tests ran in0.25s =========================================