Robot Framework runs scripts through Jybot

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.