robot API笔记2

robot.conf 设计方案

实现设置测试执行和输出处理。

这个方案实现了 RobotSettings 和 RebotSettings 内部使用的类 该框架。 不应该有这些类需要使用外部。这个包可以被认为是相对稳定。 提到的类 有可能重写在某种程度上更方便使用。 不过,实例化它们是不可能改变的。

Submodules

robot.conf.gatherfailed 模块

class robot.conf.gatherfailed. GatherFailedTests

基于: robot.model.visitor.SuiteVisitor

visit_test  ( test
visit_keyword  ( kw 
end_keyword  keyword )

关键字结束的时候叫。 缺乏并没有实现。

end_message  msg)

结束时调用消息。 缺乏并没有实现。

end_suite  suite套件 )

结束时调用套件。 缺乏并没有实现。

end_test  ( test测试 )

当测试结束。 缺乏并没有实现。

start_keyword  keyword关键字 )

当关键字开始。缺乏并没有实现。

可以返回显示为假 停止访问。

start_message  ( msg)

开始时调用消息。 缺乏并没有实现。

可以返回显示为假 停止访问。

start_suite  suite)

开始时调用套件。 缺乏并没有实现。

可以返回显示为假 停止访问。

start_test  test )

测试开始时调用。 缺乏并没有实现。

可以返回显示为 假 停止访问。

visit_message  ( msg)

实现了来访的消息。

可以覆盖允许通过的修改msg没有 调用 start_message() 或 end_message() 

visit_suite  suite )

实现遍历套件及其直接的子套件。

可以覆盖允许通过的修改套件没有 调用 start_suite() 或 end_suite() 和来访的子套件、测试或关键词(setup和teardown)。

robot.conf.gatherfailed。  gather_failed_tests  输出 

robot.conf.settings设置模块

classrobot.conf.settings.RobotSettings(options=None**extra_options)

基于: robot.conf.settings._BaseSettings

get_rebot_settings 
监听器
debug_file
suite_config
randomize_seed
randomize_suites
randomize_tests
dry_run
exit_on_failure
exit_on_error
skip_teardown_on_exit
console_output_config
console_type
console_width
console_markers
pre_run_modifiers
run_empty_suite
变量
variable_files
console_colors
critical_tags
flatten_keywords
日志
log_level
non_critical_tags
输出
output_directory
pre_rebot_modifiers
remove_keywords
报告
split_log
statistics_config
status_rc
xunit
xunit_skip_noncritical
class robot.conf.settings. RebotSettings (options=None**extra_options)

基于: robot.conf.settings._BaseSettings

suite_config
log_config
report_config
合并
console_output_config
console_colors
critical_tags
flatten_keywords
日志
log_level
non_critical_tags
输出
output_directory
pre_rebot_modifiers
process_empty_suite
remove_keywords
报告
split_log
statistics_config
status_rc
xunit
xunit_skip_noncritical

转载于:https://www.cnblogs.com/kuihua/p/5419561.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值