Robot Framework runs scripts through Jybot
The main explanation is how to set the script to run through Jybot mode in the robot framework, so the robot framework is capable of running scripts in Pybot mode, such as unclear how to install the configuration robot framework can be Baidu search, There are many such tutorials on the web.
1. Download Jython 2.7b1, the file type is jar type file, in the Windows environment can double-click open to install. After the installation is successful, I see a lot of environment configuration about Jython on the net, but after the Jython_home,path,classpaht configuration based on the online tutorial, I enter Jython in the CMD Environment command line to show the path error. You can use the Jython command after you have tried multiple times to find the direct setting of PATH=C:\JYTHON2.7B1 (the path needs to match itself according to the installation directory)
2. Enter jython-version and jybot-version in the CMD environment to see the corresponding version, stating that the installation was successful, but opening ride select Run as Jybot run will prompt about Selenium2libray import errors, Unable to execute script. See online said need to change the Jython directory in the registry file Python.path path configuration, change the path to python27 installation path after re-run, import selenium2library error problem is resolved. But many import-related errors were reported. The main reason is that the files under the Python\lib directory are executed and the files in the Jython\lib directory are not executed, resulting in an error. Finally tried n methods, found that the registy file changed back to the default settings, and the Python\lib directory under the Site-packages folder copied to the Jython\lib directory to overwrite, after re-run, it is found that the script can run normally.
This article is from the "Practice Experience" blog, please be sure to keep this source http://zhangjiabin.blog.51cto.com/2325830/1597871
Robot Framework runs scripts through Jybot