-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Framework doesnt run to completion #1
Comments
@BharatKammakatla Do you know how I can fix the below errors? test_bookAppointment.py::Test_BookAppointment::test_bookAppointment[getData0] ============================= 2 warnings in 0.51s ============================= Process finished with exit code 3 |
Looks like the screenshot path issue. Please check if the screenshot is
pointed correctly.
If still facing the issue, make sure you have done all the steps in the
READ.me file and also try to debug line-by-line. I'm sure, you'll be able
to fix it.
Cheers !!
…On Mon, Feb 6, 2023 at 4:18 PM tariq ***@***.***> wrote:
@BharatKammakatla <https://github.com/BharatKammakatla> Do you know how I
can fix the below errors?
test_bookAppointment.py::Test_BookAppointment::test_bookAppointment[getData0]
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages_pytest\main.py", line 270, in
wrap_session
INTERNALERROR> session.exitstatus = doit(config, session) or 0
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages_pytest\main.py", line 324, in _main
INTERNALERROR> config.hook.pytest_runtestloop(session=session)
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_hooks.py", line 265, in
*call*
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(),
kwargs, firstresult)
INTERNALERROR>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_manager.py", line 80, in
_hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
INTERNALERROR>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_callers.py", line 60, in
_multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_result.py", line 60, in
get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_callers.py", line 39, in
_multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages_pytest\main.py", line 349, in
pytest_runtestloop
INTERNALERROR> item.config.hook.pytest_runtest_protocol(item=item,
nextitem=nextitem)
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_hooks.py", line 265, in
*call*
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(),
kwargs, firstresult)
INTERNALERROR>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_manager.py", line 80, in
_hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
INTERNALERROR>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_callers.py", line 60, in
_multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_result.py", line 60, in
get_result
INTERNALERROR> raise ex[1].with_traceback(ex[2])
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_callers.py", line 39, in
_multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages_pytest\runner.py", line 112, in
pytest_runtest_protocol
INTERNALERROR> runtestprotocol(item, nextitem=nextitem)
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages_pytest\runner.py", line 125, in
runtestprotocol
INTERNALERROR> rep = call_and_report(item, "setup", log)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages_pytest\runner.py", line 222, in
call_and_report
INTERNALERROR> report: TestReport =
hook.pytest_runtest_makereport(item=item, call=call)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_hooks.py", line 265, in
*call*
INTERNALERROR> return self._hookexec(self.name, self.get_hookimpls(),
kwargs, firstresult)
INTERNALERROR>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_manager.py", line 80, in
_hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs,
firstresult)
INTERNALERROR>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> File
"C:\Users\Owner\py-sel\Lib\site-packages\pluggy_callers.py", line 55, in
_multicall
INTERNALERROR> gen.send(outcome)
INTERNALERROR> File
"C:\Users\Owner\Documents\PycharmProjects\py-sel\Demo\tests\conftest.py",
line 53, in pytest_runtest_makereport
INTERNALERROR> _capture_screenshot(file_name)
INTERNALERROR> File
"C:\Users\Owner\Documents\PycharmProjects\py-sel\Demo\tests\conftest.py",
line 62, in _capture_screenshot
INTERNALERROR> driver.get_screenshot_as_file(name)
INTERNALERROR> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
INTERNALERROR> AttributeError: 'NoneType' object has no attribute
'get_screenshot_as_file'
============================= 2 warnings in 0.51s
=============================
Process finished with exit code 3
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AG4BGOI7XCEEZ6SZVQMRIFTWWCXTVANCNFSM6AAAAAAUSLTRZI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***
com>
--
Kind Regards,
Bharat K.
|
I updated the requirements
When i run the tests - it fails
See below error messages
The text was updated successfully, but these errors were encountered: