随笔分类 -  robotframework

摘要:demo 5 # Databaselibrary 安装:pip install robotframework-databaselibrary -i https://pypi.tuna.tsinghua.edu.cn/simple # Databaselibrary 在线文档:http://franz 阅读全文
posted @ 2020-08-14 10:47 子非鱼焉知鱼之乐丶 阅读(277) 评论(0) 推荐(1)
摘要:demo3 # 执行计算器程序 # run C:\personal\npp.7.8.9.bin.x64\notepad++.exe run calc.exe # 等待窗口出现 win wait active | [ WindowTitle | WindowText=WindowText | Time 阅读全文
posted @ 2020-08-14 09:53 子非鱼焉知鱼之乐丶 阅读(703) 评论(0) 推荐(1)
摘要:1、将下面代码保存为 upload_file.html <html> <head> <meta http-equiv="content-type" content="text/html;charset=utf-8"/> <title>upload_file</title> <link href="h 阅读全文
posted @ 2020-08-13 17:28 子非鱼焉知鱼之乐丶 阅读(568) 评论(0) 推荐(2)
摘要:AutoIt下载地址:https://www.autoitscript.com/site/autoit/downloads/ SciTE Script Editor 脚本编写工具 AutoIt中文在线手册:https://www.jb51.net/shouce/autoit/ 1、AutoIt介绍 阅读全文
posted @ 2020-08-12 16:52 子非鱼焉知鱼之乐丶 阅读(1189) 评论(0) 推荐(1)
摘要:本来计划是使用 robot 实现上传,结果开机就入坑。 坑1:运行 ride 报错:timer can only be started from the main thread。 1)环境: widows_server2019_x64 python 3.7.8 wxpython 4.1.0 ride 阅读全文
posted @ 2020-08-11 17:28 子非鱼焉知鱼之乐丶 阅读(642) 评论(0) 推荐(1)
摘要:1、什么是po? page object,页面即对象,将一个实现过程分成不同层。 2、po设计的好处 1)代码复用,节省代码量 2)并行开发,每个page互不影响,提高开发效率 3)测试对象和测试用例分离,维护方便 3、po设计原理 每个页面单独设计成一个类,页面中的元素作为属性,对元素的操作作为方 阅读全文
posted @ 2020-08-10 16:25 子非鱼焉知鱼之乐丶 阅读(499) 评论(0) 推荐(1)
摘要:1、Selenium2Library的版本支持,参照官网http://robotframework.org/SeleniumLibrary/(版本不支持会有意想不到的惊喜噢) 1)Selenium2Library对python和selenium某一版本的支持是依赖seleniumlibrary版本的 阅读全文
posted @ 2020-08-10 11:49 子非鱼焉知鱼之乐丶 阅读(596) 评论(0) 推荐(1)
摘要:1、构建项目 add suite 时格式选择 txt,页面报错 [ ERROR ] Suite 'Test Projects' contains no tests matching name 原因: 应该是run程序的执行环境不识别txt文件 解决办法: add suite 时格式选择 robot 阅读全文
posted @ 2020-08-04 09:45 子非鱼焉知鱼之乐丶 阅读(3622) 评论(0) 推荐(3)
摘要:记录第一天用robotframework遇到的大坑~~~ 1、robotframework 环境(pip list): python 3.8.2 robotframework 3.1.2 wxpython 4.1.0 ride 1.7.4.2 2、python shell 运行 ride >>> f 阅读全文
posted @ 2020-08-04 08:33 子非鱼焉知鱼之乐丶 阅读(3053) 评论(1) 推荐(2)