RobotFramework and Eclipse integration - installation and usage instructions

RobotFramework and Eclipse integration - installation and usage instructions

1. Install python3:

   Installation Notes:

https://www.cnblogs.com/Simple-Small/p/9179061.html

2. RF installation command:

pip command to install RobotFramework

pip install RobotFramework

pip command to install Selenium2Library

pip install --upgrade --pre robotframework-selenium2library

3, eclipse installation:

The version of the eclipse is required. Mars requires 4.5 and above.

 

Jdk Version: 1.8 64 requirements.

    The eclipse can be unpacked. Double-click to open eclipse.exe. Open for the first time will be prompted to set the working directory. Selected directory under the letter other than the C drive.

    3.1 eclipse modify the file format is encoded utf-8:

    windows - preferences - general - workspace 

 

RED plug 2 mounted - mounting package from the zip.

Description: eclipse version download link provided for the Oxygen4.7. Corresponding RED plug-ins for 0.8.8.

https://github.com/nokia/RED/releases/tag/0.8.8

Help - Install New Software - Click Add to add.

 

Check Robot Framework IDE. Click Next.

 

Until the installation is complete.

Intermediate additional steps to be selected, like has been selected next.

3. Set

After the installation is complete, you need to configure some options.

3.1 python Selection:

windows - preference - RobotFramework - Installed frameworks

Will default python version environment variable configuration. If you are replacing into another python version, click on the Add button to add a new python directory (robotframework which python version installed in the following, you select which python version). As shown below:

 

3.2 Configuring RF identification, keyword, variable completion.

windows - preference - RobotFramework - Editor - Content Assitant

Plus the following:

.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ$@&*:[

 

After configuration is complete, you can start writing scripts in Eclipse RF.

 

Eclipse edit and run scripts RF

1. Create RF engineering.

File - New - Other, find RobotFramework, select Robot Project

 

Right-new project, you can create Robot testing and resource files. We recommend using .robot as the file suffix. To prevent txt format sometimes used to turned into txt file, convenient editing content.

Create renderings after:

 

Set pybot command-line arguments, or Settings tab settings runtime:

Run - Run configure

 

Run a single test case:

Select case name, then right, select run

 

Run a use case suite: Double-click the package name, click on the Run button in eclipse.

When introducing a third party libraries, nearly ctrl + 1 (number 1), automatically loaded in.

 

Guess you like

Origin www.cnblogs.com/coxiseed/p/11403894.html