Robot框架自动记录程序库
robotframework-autorecorder的Python项目详细描述
机器人框架的自动重新排序
简介
RobotFramework库允许在测试或(和)套件启动时自动启动桌面视频录制。基于ScreenCapLibrary
- 有关关键字的信息可以在Keyword Documentation页上找到。在
要求
- 机器人框架
安装
使用pip
建议的安装工具是pip。在
安装pip。 输入以下内容:
pip install robotframework-autorecorder
使用
要使用库,只需要导入它。默认情况下,为每个测试用例创建视频,可以为每个完整套件创建视频,也可以为测试用例和整个套件创建视频。 导入参数还可用于调整屏幕caplibrary的底层。在
在测试记录器.robot在
^{pr2}$在SuiteRecorder.机器人在
*** Settings ***
Documentation This example demonstrates how to use current library
Library AutoRecorder mode=suite
Library SeleniumLibrary
*** Test Cases ***
Example Test
Open Browser http://example.local gc
Sleep 5s
在SuiteAndTestRecorder.机器人在
*** Settings ***
Documentation This example demonstrates how to use current library
Library AutoRecorder mode=suite,test
Library SeleniumLibrary
*** Test Cases ***
Example Test
Open Browser http://example.local gc
Sleep 5s
- 项目
标签: