Guest User

Untitled

a guest
Jun 25th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.59 KB | None | 0 0
  1. (env) D:\Daria\Python\Python\pytest1>set PATH
  2. Path=D:\Daria\Python\Python\pytest1\env\Scripts;C:\Program Files (x86)\NVIDIA Co
  3. rporation\PhysX\Common;C:\Program Files\Common Files\Microsoft Shared\Windows Li
  4. ve;C:\Program Files (x86)\Common Files\Microsoft Shared\Windows Live;C:\Windows\
  5. system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShe
  6. ll\v1.0\;C:\Program Files\Broadcom\Broadcom 802.11 Network Adapter\Driver;C:\Pro
  7. gram Files (x86)\Windows Live\Shared;C:\Program Files\WIDCOMM\Bluetooth Software
  8. \;C:\Program Files\WIDCOMM\Bluetooth Software\syswow64;C:\Program Files (x86)\Sk
  9. ype\Phone\;C:\Program Files\Git\cmd;C:\Python36\Scripts\;C:\Python36\
  10. PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
  11.  
  12. (env) D:\Daria\Python\Python\pytest1>where chromedriver
  13. C:\Windows\System32\chromedriver.exe
  14.  
  15. (env) D:\Daria\Python\Python\pytest1>py.test test\test_del_group.py
  16. ============================= test session starts =============================
  17. platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
  18. rootdir: D:\Daria\Python\Python\pytest1, inifile:
  19. collected 1 item
  20.  
  21. test\test_del_group.py . [100%]
  22.  
  23. ========================== 1 passed in 72.68 seconds ==========================
  24.  
  25. (env) D:\Daria\Python\Python\pytest1>py.test --browser=chrome test\test_del_grou
  26. p.py
  27. ============================= test session starts =============================
  28. platform win32 -- Python 3.6.5, pytest-3.5.1, py-1.5.3, pluggy-0.6.0
  29. rootdir: D:\Daria\Python\Python\pytest1, inifile:
  30. collected 1 item
  31.  
  32. test\test_del_group.py EE [100%]
  33.  
  34. =================================== ERRORS ====================================
  35. __________________ ERROR at setup of test_delete_some_group ___________________
  36.  
  37. request = <SubRequest 'app' for <Function 'test_delete_some_group'>>
  38.  
  39. @pytest.fixture
  40. def app(request):
  41. global fixture
  42. if fixture is None:
  43. browser = request.config.getoption("--browser")
  44. base_url = request.config.getoption("--baseUrl")
  45. fixture = Application(browser=browser, base_url=base_url)
  46. else:
  47. if not fixture.is_valid():
  48. fixture = Application()
  49. > fixture.session.ensure_login(username="admin", password="secret")
  50.  
  51. conftest.py:18:
  52. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  53. fixture\session.py:47: in ensure_login
  54. if self.is_logged_in():
  55. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  56.  
  57. self = <fixture.session.SessionHelper object at 0x03488430>
  58.  
  59. def is_logged_in(self):
  60. wd = self.app.wd
  61. > return len(wd.find_elements_by_link_text("Logout")) > 0
  62. E TypeError: find_elements_by_link_text() missing 1 required positional ar
  63. gument: 'text'
  64.  
  65. fixture\session.py:27: TypeError
  66. _________________ ERROR at teardown of test_delete_some_group _________________
  67.  
  68. def fin():
  69. > fixture.session.ensure_logout()
  70.  
  71. conftest.py:25:
  72. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  73. fixture\session.py:41: in ensure_logout
  74. if self.is_logged_in():
  75. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  76.  
  77. self = <fixture.session.SessionHelper object at 0x03488430>
  78.  
  79. def is_logged_in(self):
  80. wd = self.app.wd
  81. > return len(wd.find_elements_by_link_text("Logout")) > 0
  82. E TypeError: find_elements_by_link_text() missing 1 required positional ar
  83. gument: 'text'
  84.  
  85. fixture\session.py:27: TypeError
  86. =========================== 2 error in 0.30 seconds ===========================
Add Comment
Please, Sign In to add comment