It errors when specifying the user defined java library into RED robot framework eclipse editor

前端 未结 2 1503
醉话见心
醉话见心 2021-01-26 00:42

My requirement is to make use of user defined java libraries in robot framework using RED eclipse editor. When trying to specify library in the robot framework, the system error

2条回答
  •  难免孤独
    2021-01-26 01:05

    I finally followed the below for a great journey with robot framework.

    1   Installed Java, Eclipse, RED Eclipse plugin.
       a) Java(JDK 1.8.0/JRE 1.8.0)
       b) Eclipse Neon (v 4.6)
       c) RED - Robot Eclipse Editor v0.7.5.2(Eclipse Plugin)
    2   Downloaded and Installed Python 2.7.12 using windows. A folder created automatically after installation in C:\python27
    3   "Installed Robot Framework using pip command in Command Prompt.
         Command:     C:\python27\scripts>pip install robotframework"
    4   Downloaded and installed Jython 2.7.0 using windows. A folder created automatically after installation in C:\jython2.7.0
    5   "Installed Robot Framework using pip command in Command Prompt.
         Command:     C:\jython2.7.0\bin>pip install robotframework"
    6   "Installed Selenium2Library using pip command in Command Prompt.
         Command:     C:\jython2.7.0\bin>pip install robotframework-selenium2library"
    7   "Set the below,
        a) Goto Window-Preferences-Robot Framework-Installed Framework
        b) Map Robot framework with Jython Interpreter
        I used c:\jython2.7.0\bin"
    8   Created JavaProject and export it into a jar file. Right click on the class name, click on export-Java-Jarfile. Select the path name where the new jar file to be put including the new file name.jar. Click Ok.
    9   Open RED.xml Click Add Java Library and select the newly created jar file.
    10  "Set up this before proceeding with robot framework 
        goto Windows - Perspective - Open Perspective-Other-Robot"
    11  Create a robot suite, import library selenium2library & user defined library, Write Test cases.
    

提交回复
热议问题