1. 程式人生 > 其它 >1. RobotFramework 環境搭建

1. RobotFramework 環境搭建

RobotFramework 框架介紹

以下描述摘自 RobotFramework 官網

Robot Framework is a generic open source automation framework. It can be used for test automation and robotic process automation (RPA).

Robot Framework is supported by Robot Framework Foundation. Many industry-leading companies use the tool in their software development.

Robot Framework is open and extensible. Robot Framework can be integrated with virtually any other tool to create powerful and flexible automation solutions. Robot Framework is free to use without licensing costs.

Robot Framework has an easy syntax, utilizing human-readable keywords. Its capabilities can be extended by libraries implemented with Python, Java or many other programming languages. Robot Framework has a rich ecosystem around it, consisting of libraries and tools that are developed as separate projects.

RobotFramework 安裝

因為 RobotFramework 也是 Python 的一個框架,所以可以使用 Python 包管理工具進行安裝。以 pip 為例,安裝命令是 pip install robotframework,直接在終端執行即可。

PS C:\Users\Jathon> pip install robotframework
Collecting robotframework
  Downloading robotframework-5.0-py3-none-any.whl (638 kB)
     |████████████████████████████████| 638 kB 262 kB/s
Installing collected packages: robotframework
Successfully installed robotframework-5.0

看到以上資訊就說明安裝成功了,可以通過 robot --version 命令檢視當前版本進行驗證。

PS C:\Users\Jathon> robot --version
Robot Framework 5.0 (Python 3.9.7 on win32)

RobotFramework 編輯器安裝

RobotFramework 官網 中可以找到官方推薦的一些編輯器或者外掛

因為我使用的 Python 編輯器是 PyCharm 所以就選擇使用 PyCharm 的外掛 Language Server for PyCharm

網站會檢測 PyCharm 安裝情況,直接點選 Install To PyCharm 對應版本的標籤安然到 PyCharm 裡面根據提示進行操作即可安裝完成