Guest User

Untitled

a guest
Jun 24th, 2018
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.27 KB | None | 0 0
  1. Testing started at 0:57 ...
  2. 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
  3. Launching py.test with arguments --browser=chrome D:/Daria/Python/Python/pytest1/test/test_del_group.py in D:\Daria\Python\Python\pytest1\test
  4.  
  5. ============================= test session starts =============================
  6. platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
  7. rootdir: D:\Daria\Python\Python\pytest1\test, inifile:collected 1 item
  8.  
  9. test_del_group.py E
  10. test setup failed
  11. request = <SubRequest 'app' for <Function 'test_delete_some_group'>>
  12.  
  13. @pytest.fixture
  14. def app(request):
  15. global fixture
  16. if fixture is None:
  17. browser = request.config.getoption("--browser")
  18. fixture = Application(browser=browser)
  19. else:
  20. if not fixture.is_valid():
  21. fixture = Application()
  22. > fixture.session.ensure_login(username="admin", password="secret")
  23.  
  24. ..\conftest.py:17:
  25. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  26. ..\fixture\session.py:47: in ensure_login
  27. if self.is_logged_in():
  28. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  29.  
  30. self = <fixture.session.SessionHelper object at 0x0346C7B0>
  31.  
  32. def is_logged_in(self):
  33. wd = self.app.wd
  34. > return len(wd.find_elements_by_link_text("Logout")) > 0
  35. E TypeError: find_elements_by_link_text() missing 1 required positional argument: 'text'
  36.  
  37. ..\fixture\session.py:27: TypeError
  38. E
  39. test_del_group.py:4 (test_delete_some_group)
  40. def fin():
  41. > fixture.session.ensure_logout()
  42.  
  43. ..\conftest.py:24:
  44. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  45. ..\fixture\session.py:41: in ensure_logout
  46. if self.is_logged_in():
  47. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  48.  
  49. self = <fixture.session.SessionHelper object at 0x0346C7B0>
  50.  
  51. def is_logged_in(self):
  52. wd = self.app.wd
  53. > return len(wd.find_elements_by_link_text("Logout")) > 0
  54. E TypeError: find_elements_by_link_text() missing 1 required positional argument: 'text'
  55.  
  56. ..\fixture\session.py:27: TypeError
  57. [100%]
  58.  
  59. =================================== ERRORS ====================================
  60. __________________ ERROR at setup of test_delete_some_group ___________________
  61.  
  62. request = <SubRequest 'app' for <Function 'test_delete_some_group'>>
  63.  
  64. @pytest.fixture
  65. def app(request):
  66. global fixture
  67. if fixture is None:
  68. browser = request.config.getoption("--browser")
  69. fixture = Application(browser=browser)
  70. else:
  71. if not fixture.is_valid():
  72. fixture = Application()
  73. > fixture.session.ensure_login(username="admin", password="secret")
  74.  
  75. ..\conftest.py:17:
  76. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  77. ..\fixture\session.py:47: in ensure_login
  78. if self.is_logged_in():
  79. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  80.  
  81. self = <fixture.session.SessionHelper object at 0x0346C7B0>
  82.  
  83. def is_logged_in(self):
  84. wd = self.app.wd
  85. > return len(wd.find_elements_by_link_text("Logout")) > 0
  86. E TypeError: find_elements_by_link_text() missing 1 required positional argument: 'text'
  87.  
  88. ..\fixture\session.py:27: TypeError
  89. _________________ ERROR at teardown of test_delete_some_group _________________
  90.  
  91. def fin():
  92. > fixture.session.ensure_logout()
  93.  
  94. ..\conftest.py:24:
  95. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  96. ..\fixture\session.py:41: in ensure_logout
  97. if self.is_logged_in():
  98. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  99.  
  100. self = <fixture.session.SessionHelper object at 0x0346C7B0>
  101.  
  102. def is_logged_in(self):
  103. wd = self.app.wd
  104. > return len(wd.find_elements_by_link_text("Logout")) > 0
  105. E TypeError: find_elements_by_link_text() missing 1 required positional argument: 'text'
  106.  
  107. ..\fixture\session.py:27: TypeError
  108. =========================== 2 error in 0.17 seconds ===========================
  109. Process finished with exit code 0
Add Comment
Please, Sign In to add comment