robotframework - Getting errors when using selenium2library+webdriver and jybot.bat -
my tests failing when execute script using jybot.bat. on other hand if use pybot.bat test runs well. dont understand why happening. if 1 has seen issue please assist.
c:\>jybot.bat "\automation\robot_framework\ui_testing\unity_portal\unity_smoke_t est\01_basic_admin_fuctionalities\01 - 10 - customer admin - 01 - user managemen t - users - add user.txt" [ error ] error in file 'c:\automation\robot_framework\ui_testing\unity_portal\l ib\resources\resource.txt': importing test library 'selenium2library' failed: sy ntaxerror: future feature unicode_literals not defined (selenium.py, line 17) traceback (most recent call last): file "c:\python27\lib\site-packages\selenium2library\__init__.py", line 2, in <module> keywords import * file "c:\python27\lib\site-packages\selenium2library\keywords\__init__.py", li ne 3, in <module> _browsermanagement import _browsermanagementkeywords file "c:\python27\lib\site-packages\selenium2library\keywords\_browsermanageme nt.py", line 4, in <module> selenium import webdriver file "c:\python27\lib\site-packages\selenium\__init__.py", line 16, in <module > selenium import selenium pythonpath: c:\python27\lib\site-packages\robot\libraries c:\python27\lib\site-packages c:\jython2.5.2\lib__classpath____pyclasspath__/ c:\jython2.5.2\lib\site-packages c:\classpath: c:\jython2.5.2\jython.jar [ error ] error in file 'c:\automation\robot_framework\ui_testing\unity_portal\l ib\resources\resource_int.txt': importing test library 'selenium2library' failed : syntaxerror: future feature unicode_literals not defined (selenium.py, line 17) traceback (most recent call last): file "c:\python27\lib\site-packages\selenium2library\__init__.py", line 2, in <module> keywords import * file "c:\python27\lib\site-packages\selenium2library\keywords\__init__.py", line 3, in <module> _browsermanagement import _browsermanagementkeywordsfile "c:\python27\lib\site-packages\selenium2library\keywords\_browsermanageme nt.py", line 4, in <module> selenium import webdriver file "c:\python27\lib\site-packages\selenium\__init__.py", line 16, in <module > selenium import selenium pythonpath: c:\python27\lib\site-packages\robot\libraries c:\python27\lib\site-packages c:\jython2.5.2\lib __classpath__ __pyclasspath__/ c:\jython2.5.2\lib\site-packages c:\classpath: c:\jython2.5.2\jython.jar ============================================================================== 01 - 10 - customer admin - 01 - user management - users - add user :: 01) u... ============================================================================== 10 - customer admin - 01 - user management - users - add user | fail | no keyword name 'set selenium timeout' found. teardown failed: no keyword name 'close browsers' found. ------------------------------------------------------------------------------ 01 - 10 - customer admin - 01 - user management - users - add user... | fail | 1 critical test, 0 passed, 1 failed 1 test total, 0 passed, 1 failed ============================================================================== output: c:\output.xml log: c:\log.html report: c:\report.html c:\>
selenium2library not work jython. should try selenium2library java port
Comments
Post a Comment