RobotFramework的安装过程及应用举例

news2024/11/15 19:48:59

一、安装python3.8.0

二、安装wxPython

C:\>pip install -U wxPython
Collecting wxPython
  Obtaining dependency information for wxPython from https://files.pythonhosted.org/packages/00/78/b11f255451f7a46fce2c96a0abe6aa8b31493c739ade197730511d9ba81a/wxPython-4.2.1-cp38-cp38-win_amd64.whl.metadata
  Downloading wxPython-4.2.1-cp38-cp38-win_amd64.whl.metadata (3.0 kB)
Requirement already satisfied: pillow in c:\rtkapp\python-3.8.0\lib\site-packages (from wxPython) (10.0.0)
Requirement already satisfied: six in c:\rtkapp\python-3.8.0\lib\site-packages (from wxPython) (1.16.0)
Requirement already satisfied: numpy in c:\rtkapp\python-3.8.0\lib\site-packages (from wxPython) (1.24.4)
Downloading wxPython-4.2.1-cp38-cp38-win_amd64.whl (18.1 MB)
   ---------------------------------------- 18.1/18.1 MB 22.0 kB/s eta 0:00:00
Installing collected packages: wxPython
Successfully installed wxPython-4.2.1

C:\>

三、安装robotframework

C:\>pip install robotframework
Collecting robotframework
  Obtaining dependency information for robotframework from https://files.pythonhosted.org/packages/b5/f0/3338803e955926c7826cfe6738ed99db1f76c3a86defca2c33228b12119a/robotframework-6.1.1-py3-none-any.whl.metadata
  Downloading robotframework-6.1.1-py3-none-any.whl.metadata (7.5 kB)
Downloading robotframework-6.1.1-py3-none-any.whl (699 kB)
   ---------------------------------------- 699.1/699.1 kB 165.7 kB/s eta 0:00:00
Installing collected packages: robotframework
Successfully installed robotframework-6.1.1

C:\>

四、安装robotframework-ride

C:\>pip install robotframework-ride
Collecting robotframework-ride
  Downloading robotframework-ride-2.0.6.zip (1.8 MB)
     ---------------------------------------- 1.8/1.8 MB 40.3 kB/s eta 0:00:00
  Installing build dependencies ... done
  Getting requirements to build wheel ... done
  Preparing metadata (pyproject.toml) ... done
Collecting PyPubSub (from robotframework-ride)
  Downloading Pypubsub-4.0.3-py3-none-any.whl (61 kB)
     ---------------------------------------- 61.4/61.4 kB 27.3 kB/s eta 0:00:00
Collecting Pygments (from robotframework-ride)
  Obtaining dependency information for Pygments from https://files.pythonhosted.org/packages/43/88/29adf0b44ba6ac85045e63734ae0997d3c58d8b1a91c914d240828d0d73d/Pygments-2.16.1-py3-none-any.whl.metadata
  Downloading Pygments-2.16.1-py3-none-any.whl.metadata (2.5 kB)
Collecting psutil (from robotframework-ride)
  Downloading psutil-5.9.5-cp36-abi3-win_amd64.whl (255 kB)
     ---------------------------------------- 255.1/255.1 kB 40.3 kB/s eta 0:00:00
Requirement already satisfied: wxPython in c:\rtkapp\python-3.8.0\lib\site-packages (from robotframework-ride) (4.2.1)
Collecting Pywin32 (from robotframework-ride)
  Downloading pywin32-306-cp38-cp38-win_amd64.whl (9.4 MB)
     ---------------------------------------- 9.4/9.4 MB 26.1 kB/s eta 0:00:00
Requirement already satisfied: pillow in c:\rtkapp\python-3.8.0\lib\site-packages (from wxPython->robotframework-ride) (10.0.0)
Requirement already satisfied: six in c:\rtkapp\python-3.8.0\lib\site-packages (from wxPython->robotframework-ride) (1.16.0)
Requirement already satisfied: numpy in c:\rtkapp\python-3.8.0\lib\site-packages (from wxPython->robotframework-ride) (1.24.4)
Downloading Pygments-2.16.1-py3-none-any.whl (1.2 MB)
   ---------------------------------------- 1.2/1.2 MB 23.9 kB/s eta 0:00:00
Building wheels for collected packages: robotframework-ride
  Building wheel for robotframework-ride (pyproject.toml) ... done
  Created wheel for robotframework-ride: filename=robotframework_ride-2.0.6-py3-none-any.whl size=1436920 sha256=84f50be902d3631402b7f54e9e0c58b725733a24bc54602b6f19da95efba6f93
  Stored in directory: c:\users\administrator\appdata\local\pip\cache\wheels\3d\b3\48\bb3eece94032ff981debf3b9a25c7a81356af7190c8f7773cf
Successfully built robotframework-ride
Installing collected packages: Pywin32, PyPubSub, Pygments, psutil, robotframework-ride
Successfully installed PyPubSub-4.0.3 Pygments-2.16.1 Pywin32-306 psutil-5.9.5 robotframework-ride-2.0.6

C:\>

五、安装robotframework-selenium2library

C:\>pip install robotframework-selenium2library
Collecting robotframework-selenium2library
  Using cached robotframework_selenium2library-3.0.0-py2.py3-none-any.whl (6.2 kB)
Collecting robotframework-seleniumlibrary>=3.0.0 (from robotframework-selenium2library)
  Obtaining dependency information for robotframework-seleniumlibrary>=3.0.0 from https://files.pythonhosted.org/packages/e9/3d/1a72ef735c70e40c27d1b8685b35431a723f6475a7698ee17feb726382ca/robotframework_seleniumlibrary-6.1.1-py2.py3-none-any.whl.metadata
  Using cached robotframework_seleniumlibrary-6.1.1-py2.py3-none-any.whl.metadata (15 kB)
Collecting selenium>=4.3.0 (from robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Obtaining dependency information for selenium>=4.3.0 from https://files.pythonhosted.org/packages/10/56/8288d1813a68c1e0638515dbb777fce6d87d0d240e683216f956145310e6/selenium-4.11.2-py3-none-any.whl.metadata
  Using cached selenium-4.11.2-py3-none-any.whl.metadata (7.0 kB)
Requirement already satisfied: robotframework>=4.1.3 in c:\rtkapp\python-3.8.0\lib\site-packages (from robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library) (6.1.1)
Collecting robotframework-pythonlibcore>=3.0.0 (from robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Obtaining dependency information for robotframework-pythonlibcore>=3.0.0 from https://files.pythonhosted.org/packages/af/2b/88274849d9ea6cdddbbdf40e5262d92fdd7e20026026c49369c07d7f62d5/robotframework_pythonlibcore-4.2.0-py2.py3-none-any.whl.metadata
  Using cached robotframework_pythonlibcore-4.2.0-py2.py3-none-any.whl.metadata (6.0 kB)
Collecting urllib3[socks]<3,>=1.26 (from selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Obtaining dependency information for urllib3[socks]<3,>=1.26 from https://files.pythonhosted.org/packages/9b/81/62fd61001fa4b9d0df6e31d47ff49cfa9de4af03adecf339c7bc30656b37/urllib3-2.0.4-py3-none-any.whl.metadata
  Using cached urllib3-2.0.4-py3-none-any.whl.metadata (6.6 kB)
Collecting trio~=0.17 (from selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Obtaining dependency information for trio~=0.17 from https://files.pythonhosted.org/packages/a3/dd/b61fa61b186d3267ef3903048fbee29132963ae762fb70b08d4a3cd6f7aa/trio-0.22.2-py3-none-any.whl.metadata
  Using cached trio-0.22.2-py3-none-any.whl.metadata (4.7 kB)
Collecting trio-websocket~=0.9 (from selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Obtaining dependency information for trio-websocket~=0.9 from https://files.pythonhosted.org/packages/a5/a6/06e2373f95c12e9e8f6b910a76c86e375348ead77ab476230640666310fb/trio_websocket-0.10.3-py3-none-any.whl.metadata
  Using cached trio_websocket-0.10.3-py3-none-any.whl.metadata (4.6 kB)
Collecting certifi>=2021.10.8 (from selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Obtaining dependency information for certifi>=2021.10.8 from https://files.pythonhosted.org/packages/4c/dd/2234eab22353ffc7d94e8d13177aaa050113286e93e7b40eae01fbf7c3d9/certifi-2023.7.22-py3-none-any.whl.metadata
  Using cached certifi-2023.7.22-py3-none-any.whl.metadata (2.2 kB)
Collecting attrs>=20.1.0 (from trio~=0.17->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting sortedcontainers (from trio~=0.17->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached sortedcontainers-2.4.0-py2.py3-none-any.whl (29 kB)
Collecting idna (from trio~=0.17->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached idna-3.4-py3-none-any.whl (61 kB)
Collecting outcome (from trio~=0.17->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached outcome-1.2.0-py2.py3-none-any.whl (9.7 kB)
Collecting sniffio (from trio~=0.17->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached sniffio-1.3.0-py3-none-any.whl (10 kB)
Collecting cffi>=1.14 (from trio~=0.17->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached cffi-1.15.1-cp38-cp38-win_amd64.whl (178 kB)
Collecting exceptiongroup>=1.0.0rc9 (from trio~=0.17->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Obtaining dependency information for exceptiongroup>=1.0.0rc9 from https://files.pythonhosted.org/packages/fe/17/f43b7c9ccf399d72038042ee72785c305f6c6fdc6231942f8ab99d995742/exceptiongroup-1.1.2-py3-none-any.whl.metadata
  Using cached exceptiongroup-1.1.2-py3-none-any.whl.metadata (6.1 kB)
Collecting wsproto>=0.14 (from trio-websocket~=0.9->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached wsproto-1.2.0-py3-none-any.whl (24 kB)
Collecting pysocks!=1.5.7,<2.0,>=1.5.6 (from urllib3[socks]<3,>=1.26->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached PySocks-1.7.1-py3-none-any.whl (16 kB)
Collecting pycparser (from cffi>=1.14->trio~=0.17->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting h11<1,>=0.9.0 (from wsproto>=0.14->trio-websocket~=0.9->selenium>=4.3.0->robotframework-seleniumlibrary>=3.0.0->robotframework-selenium2library)
  Using cached h11-0.14.0-py3-none-any.whl (58 kB)
Using cached robotframework_seleniumlibrary-6.1.1-py2.py3-none-any.whl (96 kB)
Using cached robotframework_pythonlibcore-4.2.0-py2.py3-none-any.whl (10 kB)
Downloading selenium-4.11.2-py3-none-any.whl (7.2 MB)
   ---------------------------------------- 7.2/7.2 MB 17.0 kB/s eta 0:00:00
Downloading certifi-2023.7.22-py3-none-any.whl (158 kB)
   ---------------------------------------- 158.3/158.3 kB 18.9 kB/s eta 0:00:00
Downloading trio-0.22.2-py3-none-any.whl (400 kB)
   ---------------------------------------- 400.2/400.2 kB 25.7 kB/s eta 0:00:00
Downloading trio_websocket-0.10.3-py3-none-any.whl (17 kB)
Downloading exceptiongroup-1.1.2-py3-none-any.whl (14 kB)
Downloading urllib3-2.0.4-py3-none-any.whl (123 kB)
   ---------------------------------------- 123.9/123.9 kB 25.6 kB/s eta 0:00:00
Installing collected packages: sortedcontainers, urllib3, sniffio, robotframework-pythonlibcore, pysocks, pycparser, idna, h11, exceptiongroup, certifi, attrs, wsproto, outcome, cffi, trio, trio-websocket, selenium, robotframework-seleniumlibrary, robotframework-selenium2library
Successfully installed attrs-23.1.0 certifi-2023.7.22 cffi-1.15.1 exceptiongroup-1.1.2 h11-0.14.0 idna-3.4 outcome-1.2.0 pycparser-2.21 pysocks-1.7.1 robotframework-pythonlibcore-4.2.0 robotframework-selenium2library-3.0.0 robotframework-seleniumlibrary-6.1.1 selenium-4.11.2 sniffio-1.3.0 sortedcontainers-2.4.0 trio-0.22.2 trio-websocket-0.10.3 urllib3-2.0.4 wsproto-1.2.0

C:\>

六、如下图鼠标双击打开ride.py

 七、RIDE打开后的界面

至此安装成功

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/855019.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

flutter开发实战-实现marquee根据文本长度显示文本跑马灯效果

flutter开发实战-实现marquee文本跑马灯效果 最近开发过程中需要marquee文本跑马灯效果&#xff0c;这里使用到了flutter的插件marquee 效果图如下 一、marquee 1.1 引入marquee 在pubspec.yaml中引入marquee # 跑马灯效果marquee: ^2.2.31.2 marquee使用 marquee使用也是…

k8s 自身原理 1

咱们从 pod 一直分享到最近的 Statefulset 资源&#xff0c;到现在好像我们只是知道如何使用 k8s&#xff0c;如何按照 k8s 设计好的规则去应用&#xff0c;去玩 k8s 仔细想想&#xff0c;对于 k8s 自身的内在原理&#xff0c;我们好像还不是很清楚&#xff0c;对于每一个资源…

【linux】-进程概念之环境变量的详解(命令行参数的介绍)

&#x1f496;作者&#xff1a;小树苗渴望变成参天大树&#x1f388; &#x1f389;作者宣言&#xff1a;认真写好每一篇博客&#x1f4a4; &#x1f38a;作者gitee:gitee✨ &#x1f49e;作者专栏&#xff1a;C语言,数据结构初阶,Linux,C 动态规划算法&#x1f384; 如 果 你 …

介绍另外一个容器技术, Apptainer

一说到容器&#xff0c;我们往往会脱口而出&#xff0c; Docker&#xff0c; 实际上Docker 仅仅是Linux 容器化的一种&#xff0c; 今天介绍的Apptainer 就是另外一种容器技术。 那么Apptainer 具体是一个什么东西呢&#xff1f; 跟Docker 有什么区别呢&#xff1f; 首先&#…

剑指 Offer !!56 - II. 数组中数字出现的次数 II

剑指 Offer 56 - II. 数组中数字出现的次数 II 在一个数组 nums 中除一个数字只出现一次之外&#xff0c;其他数字都出现了三次。请找出那个只出现一次的数字。示例 1&#xff1a;输入&#xff1a;nums [3,4,3,3] 输出&#xff1a;4 示例 2&#xff1a;输入&#xff1a;nums …

智慧停车场:城市出行新潮流,轻松驶入未来

在如今城市日益拥堵的交通环境下&#xff0c;停车难题成为人们日常生活中的一大困扰。然而&#xff0c;随着科技的不断进步&#xff0c;智慧停车场的建设正为我们带来更为便捷、高效的出行体验&#xff0c;成为现代城市发展的重要一环。 智慧停车场利用先进的技术手段&#xff…

Nginx安装以及LVS-DR集群搭建

Nginx安装 1.环境准备 yum insatall -y make gcc gcc-c pcre-devel #pcre-devel -- pcre库 #安装openssl-devel yum install -y openssl-devel 2.tar安装包 3.解压软件包并创建软连接 tar -xf nginx-1.22.0.tar.gz -C /usr/local/ ln -s /usr/local/nginx-1.22.0/ /usr/local…

windows 安装免费3用户ccproxy ubuntu 代理上网

Windows 上进行安装 ubuntu 上进行设置 方法一 (临时的手段) 如果仅仅是暂时需要通过http代理使用apt-get&#xff0c;您可以使用这种方式。 在使用apt-get之前&#xff0c;在终端中输入以下命令&#xff08;根据您的实际情况替换yourproxyaddress和proxyport&#xff09;。 终…

水果音乐制作软件fl studio汉化中文修改版下载,FL Studio哪个版本更合适新手

水果音乐制作软件fl studio汉化中文修改版下载由兔八哥爱分享小编精心为大家整理了fl studio软件所有版本合集。水果音乐制作软件fl studio汉化中文修改版下载其中包含了fl studio、以及fl studio汉化补丁、fl studio修改程序、fl studio注册机等等&#xff0c;fl studio是一款…

【某SH公E司IN 数据挖掘工程师-提前批笔试2023-8-8】

题目&#xff08;回忆版&#xff09;&#xff1a; 给一棵树&#xff0c;每个节点要么是白色要么是红色&#xff0c;并且有节点编号&#xff0c;要求查询每个节点所在子树中红色节点的数量。 先是一个正整数 n&#xff0c;表示树有 n 个节点。 第二行给出 n-1 个数字&#xff0…

标准的OSI七层模型(其实了解tcp足矣)

七层模型&#xff0c;亦称OSI&#xff08;Open System Interconnection&#xff09;。参考模型是国际标准化组织&#xff08;ISO&#xff09;制定的一个用于计算机或通信系统间互联的标准体系&#xff0c;一般称为OSI参考模型或七层模型。 它是一个七层的、抽象的模型体&#x…

Mermaid语法使用

Mermaid语法使用 1. 基础类1.1 流程图1.2 时序图 2. 工程图2.1 类图2.2 Git图 1. 基础类 1.1 流程图 graph TBid1(圆角矩形)--普通线-->id2[矩形];subgraph 子图id2粗线>id3{菱形}id3-. 虚线.->id4>右向旗帜]id3--无箭头---id5((圆形))end方向定义 用词含义TB从…

Spring(13) IOC的工作流程

目录 一、定义二、Bean的声明方式三、IOC的工作流程 一、定义 IOC&#xff1a;全称是 Inversion Of Control&#xff0c;也就是控制反转&#xff0c;它的核心思想是把对象的管理权限交给容器。应用程序如果需要使用某个对象的实例&#xff0c;那么直接从 IOC 容器里面去获取就…

Win10无法投影关闭3D模式

Win10不小心开启了3D模式&#xff0c;插上投影仪就一闪一闪的&#xff0c;无法正投影 解决办法&#xff1a; 1. 打开注册表工具regedit&#xff0c;删除以下注册表&#xff0c;重启电脑 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\GraphicsDrivers\Configurat…

PAT(Advanced Level) Practice(with python)——1023 Have Fun with Numbers

Code N int(input()) D_N 2*N # print(Yes)if len(str(D_N))>len(str(N)):print(No) else:for s in str(D_N):if s not in str(N) or str(D_N).count(s)!str(N).count(s):print("No")breakelse:print(Yes) print(D_N)

R语言5_安装Giotto

环境Ubuntu22/20, R4.1. 已开启科学上网。 第一步&#xff0c;更新服务器环境&#xff0c;进入终端&#xff0c;键入如下命令&#xff0c; apt-get update apt install libcurl4-openssl-dev libssl-dev libxml2-dev libcairo2-dev libgtk-3-dev libhdf5-dev libmagick9-dev …

第一百二十五天学习记录:C++提高:STL-deque容器(下)(黑马教学视频)

deque插入和删除 功能描述&#xff1a; 向deque容器中插入和删除数据 函数原型&#xff1a; 两端插入操作&#xff1a; push_back(elem); //在容器尾部添加一个数据 push_front(elem); //在容器头部插入一个数据 pop_back(); //删除容器最后一个数据 pop_front(); //删除容器…

flutter开发实战-TextPainter计算文本内容的宽度

flutter开发实战-TextPainter计算文本内容的宽度 最近开发过程中根据Text文本的大小判断是否需要进行显示跑马灯效果&#xff0c;获取文本的大小&#xff0c;需要TextPainter来获取Size 一、TextPainter TextPainter主要用于实现文本的绘制。TextPainter类可以将TextSpan渲染…

【从零开始学习JAVA | 第四十四篇】TCP协议中的握手与挥手

前言&#xff1a; TCP&#xff08;传输控制协议&#xff09;作为计算机网络中的重要协议&#xff0c;扮演着确保数据可靠传输的角色。在TCP的通信过程中&#xff0c;握手与挥手问题是不可忽视的关键环节。握手是指在建立连接时&#xff0c;客户端与服务器相互确认彼此的身份并…