文章分类 - rotbot Framework
1
rotbot Framework 自动化工具
RobotFramework-ride 源码分析
摘要:根目录 robotide 1、入口函数 __init__.py: def main(*args): noupdatecheck, debug_console, inpath = _parse_args(args) # 命令解析 返回参数 noupdatecheck, debug_console, i
阅读全文
pybot参数详解
摘要:一、使用pybot执行测试用例常用方式1、执行整个项目下的所有用例: pybot 项目路径。例如: pybot D:\robot2、执行某个suit中的所有用例: pybot 项目路径\suit文件名称。 例如:pybot D:\robot\test.txt3、执行具体的某个用例的用例:pybot
阅读全文
python+robot framework实现测报告定制化和邮件发送(转载)
摘要:报告已经产生那如何以自动化的方式当报告执行结束后以邮件的方式发送通知 其中有3点: 第一:这个报告是以什么的格式发送达到简洁概括的目的? 第二:定制化的报告格式怎么带上附件以邮件的方式发出? 第三:RF如何输出就实现结构上的自动化框架? 解决此两点再加上前篇讲的基本原理和关键字封装,那么就可以骄傲的
阅读全文
robotframework RunnerAgent LISTENER_API_VERSION = 3
摘要:# ecoding=utf-8 import socket import time class RobotListener3(object): ROBOT_LIBRARY_SCOPE = 'GLOBAL' ROBOT_LISTENER_API_VERSION = 3 ## robot --liste
阅读全文
robotframework RunnerAgent LISTENER_API_VERSION = 2
摘要:# ecoding=utf-8 import socket import time ##ROBOT_LISTENER_API_VERSION = 2 class RobotListener2(object): ROBOT_LIBRARY_SCOPE = 'GLOBAL' ROBOT_LISTENER
阅读全文
PythonRemoteServer 使用(原文翻译)
摘要:https://github.com/robotframework/PythonRemoteServer 允许在不同于 Robot Framework 本身运行的进程或机器上托管测试库。 安装 pip install robotremoteserver || python setup.py inst
阅读全文
pabot 参数详解
摘要:pabot robot framewrok 测试并行执行器,可以将一个执行拆分为多个执行并节约测试执行时间 安装 pip install -U robotframework-pabot || setup.py install(https://github.com/mkorpela/pabot) 基础
阅读全文
rotbotframework-自定义系统关键字
摘要:1、Robot Framework库的路径 Lib\site-packages\robot\libraries 2、自定义用户库 1、Lib\site-packages 添加 MyLibrary 2、 MyLibrary添加count.py #coding=utf-8 class Count(obj
阅读全文
文件上传- Click Element :InvalidArgumentException: Message: invalid argument
摘要:upload.html <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Title</title> </head> <body> <h1>hello worlds</h1> <form action="/kl
阅读全文
表格操作-表格每行内容(不含表头)
摘要:*** Keywords *** get cells text [Arguments] {cells} {cellindex} IN RANGE 1 {curText}= Get Text //
阅读全文
元素拖到到可视区域
摘要:出现元素不在可视区域:0、元素不可见1、元素被遮挡 1、其他的弹框遮挡 2、因滚动条滚动而不在可视区域内 3、......等 本次主要针对1-2的情况: 1、获取元素的位置 2、获取网页水平导航条的位置 3、垂直滚动条滚动距离=元素.pos-y - 水平导航条.pos.y 4、将滚动条置顶 5、判断
阅读全文
判断元素是否在可视区域
摘要:Element Should Be In View [Arguments] {js}= Set Variable function(element){var bounding=element.getBoundingClientRect();return(bounding.to
阅读全文
自定义关键字
摘要:from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.action_chains import ActionChains # 导入鼠标操作的ActionChain
阅读全文
Google Chorme 设置文件下载路径
摘要:设置文件下载路径为浏览器的默认下载路径 *** Test Cases *** window/linux Specifying a Known Mobile Device ${mobile emulation}= Create Dictionary deviceName=Google Nexus 5
阅读全文
获取Selenium2Library-driver
摘要:通过获取Selenium2Library的实例来获取driver from robot.libraries.BuiltIn import BuiltIn def get_webdriver_instance(): seleniumlib = BuiltIn().get_library_instanc
阅读全文
Google Chrome/ FireFox Options
摘要:def get_chrome_options(): options = GoogleOptions() experimentalFlags = ['same-site-by-default-cookies@2', 'cookies-without-same-site-must-be-secure@2
阅读全文
文件上传-Autolt 无法支持Headless
摘要:缺点:无法支持Headless模式 文件上传 *** Settings *** Library AutoItLibrary *** Keywords *** 文件上传 {CURDIR} {OUTPUTDIR} #
阅读全文
获取项目路径
摘要:获取项目路径 def reversePath(abspath, iter): if isinstance(iter ,str): iter = int(iter) if iter is None or iter == 0: return abspath else: path = abspath #
阅读全文
获取Select下拉框的value-text
摘要:html结构: <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title></title> </head> <body> <select id="identifyType_Personal" data-url="codeInput/ini
阅读全文
1