Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Testing started at 0:57 ...
- D:\Daria\Python\Python\pytest1\env\Scripts\python.exe "C:\Program Files\JetBrains\PyCharm Community Edition 2018.1.3\helpers\pycharm\_jb_pytest_runner.py" --path D:/Daria/Python/Python/pytest1/test/test_del_group.py -- --browser=chrome
- Launching py.test with arguments --browser=chrome D:/Daria/Python/Python/pytest1/test/test_del_group.py in D:\Daria\Python\Python\pytest1\test
- ============================= test session starts =============================
- platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
- rootdir: D:\Daria\Python\Python\pytest1\test, inifile:collected 1 item
- test_del_group.py E
- test setup failed
- request = <SubRequest 'app' for <Function 'test_delete_some_group'>>
- @pytest.fixture
- def app(request):
- global fixture
- if fixture is None:
- browser = request.config.getoption("--browser")
- fixture = Application(browser=browser)
- else:
- if not fixture.is_valid():
- fixture = Application()
- > fixture.session.ensure_login(username="admin", password="secret")
- ..\conftest.py:17:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ..\fixture\session.py:47: in ensure_login
- if self.is_logged_in():
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <fixture.session.SessionHelper object at 0x0346C7B0>
- def is_logged_in(self):
- wd = self.app.wd
- > return len(wd.find_elements_by_link_text("Logout")) > 0
- E TypeError: find_elements_by_link_text() missing 1 required positional argument: 'text'
- ..\fixture\session.py:27: TypeError
- E
- test_del_group.py:4 (test_delete_some_group)
- def fin():
- > fixture.session.ensure_logout()
- ..\conftest.py:24:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ..\fixture\session.py:41: in ensure_logout
- if self.is_logged_in():
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <fixture.session.SessionHelper object at 0x0346C7B0>
- def is_logged_in(self):
- wd = self.app.wd
- > return len(wd.find_elements_by_link_text("Logout")) > 0
- E TypeError: find_elements_by_link_text() missing 1 required positional argument: 'text'
- ..\fixture\session.py:27: TypeError
- [100%]
- =================================== ERRORS ====================================
- __________________ ERROR at setup of test_delete_some_group ___________________
- request = <SubRequest 'app' for <Function 'test_delete_some_group'>>
- @pytest.fixture
- def app(request):
- global fixture
- if fixture is None:
- browser = request.config.getoption("--browser")
- fixture = Application(browser=browser)
- else:
- if not fixture.is_valid():
- fixture = Application()
- > fixture.session.ensure_login(username="admin", password="secret")
- ..\conftest.py:17:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ..\fixture\session.py:47: in ensure_login
- if self.is_logged_in():
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <fixture.session.SessionHelper object at 0x0346C7B0>
- def is_logged_in(self):
- wd = self.app.wd
- > return len(wd.find_elements_by_link_text("Logout")) > 0
- E TypeError: find_elements_by_link_text() missing 1 required positional argument: 'text'
- ..\fixture\session.py:27: TypeError
- _________________ ERROR at teardown of test_delete_some_group _________________
- def fin():
- > fixture.session.ensure_logout()
- ..\conftest.py:24:
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- ..\fixture\session.py:41: in ensure_logout
- if self.is_logged_in():
- _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
- self = <fixture.session.SessionHelper object at 0x0346C7B0>
- def is_logged_in(self):
- wd = self.app.wd
- > return len(wd.find_elements_by_link_text("Logout")) > 0
- E TypeError: find_elements_by_link_text() missing 1 required positional argument: 'text'
- ..\fixture\session.py:27: TypeError
- =========================== 2 error in 0.17 seconds ===========================
- Process finished with exit code 0
Add Comment
Please, Sign In to add comment