2019独角兽企业重金招聘Python工程师标准>>>

Version:  2.8.6 (Python 2.7.3 on linux2)Usage:  pybot|jybot|ipybot [options] data_sourcesor:  python|jython|ipy -m robot.run [options] data_sourcesor:  python|jython|ipy path/to/robot/run.py [options] data_sourcesor:  java -jar robotframework.jar run [options] data_sourcesRobot Framework is a Python-based keyword-driven test automation framework for
acceptance level testing and acceptance test-driven development (ATDD). It has
an easy-to-use tabular syntax for creating test cases and its testing
capabilities can be extended by test libraries implemented either with Python
or Java. Users can also create new keywords from existing ones using the same
simple syntax that is used for creating test cases.Depending is Robot Framework installed using Python, Jython, or IronPython
interpreter, it has a start-up script, `pybot`, `jybot` or `ipybot`,
respectively. Alternatively, it is possible to directly execute `robot.run`
module (e.g. `python -m robot.run`) or `robot/run.py` script using a selected
interpreter. Finally, there is also a standalone JAR distribution.Data sources given to Robot Framework are either test case files or directories
containing them and/or other directories. Single test case file creates a test
suite containing all the test cases in it and a directory containing test case
files creates a higher level test suite with test case files or other
directories as sub test suites. If multiple data sources are given, a virtual
top level suite containing suites generated from given data sources is created.By default Robot Framework creates an XML output file and a log and a report in
HTML format, but this can be configured using various options listed below.
Outputs in HTML format are for human consumption and XML output for integration
with other systems. XML outputs can also be combined and otherwise further
processed with `rebot` tool. Run `rebot --help` for more information.Robot Framework is open source software released under Apache License 2.0. Its
copyrights are owned and development supported by Nokia Solutions and Networks.
For more information about the framework see http://robotframework.org/.Options
=======-N --name name           Set the name of the top level test suite. Underscoresin the name are converted to spaces. Default name iscreated from the name of the executed data source.-D --doc documentation   Set the documentation of the top level test suite.Underscores in the documentation are converted tospaces and it may also contain simple HTML formatting(e.g. *bold* and http://url/).-M --metadata name:value *  Set metadata of the top level suite. Underscoresin the name and value are converted to spaces. Valuecan contain same HTML formatting as --doc.Example: --metadata version:1.2-G --settag tag *        Sets given tag(s) to all executed test cases.-t --test name *         Select test cases to run by name or long name. Nameis case and space insensitive and it can also be asimple pattern where `*` matches anything and `?`matches any char. If using `*` and `?` in the consoleis problematic see --escape and --argumentfile.-s --suite name *        Select test suites to run by name. When this optionis used with --test, --include or --exclude, onlytest cases in matching suites and also matching otherfiltering criteria are selected. Name can be a simplepattern similarly as with --test and it can containparent name separated with a dot. For example`-s X.Y` selects suite `Y` only if its parent is `X`.-i --include tag *       Select test cases to run by tag. Similarly as namewith --test, tag is case and space insensitive and itis possible to use patterns with `*` and `?` aswildcards. Tags and patterns can also be combinedtogether with `AND`, `OR`, and `NOT` operators.Examples: --include foo --include bar*--include fooANDbar*-e --exclude tag *       Select test cases not to run by tag. These tests arenot run even if included with --include. Tags arematched using the rules explained with --include.-R --rerunfailed output  Select failed tests from an earlier output file to bere-executed. Equivalent to selecting same testsindividually using --test option.--runfailed output    Deprecated since RF 2.8.4. Use --rerunfailed instead.-c --critical tag *      Tests having given tag are considered critical. If nocritical tags are set, all tags are critical. Tagscan be given as a pattern like with --include.-n --noncritical tag *   Tests with given tag are not critical even if theyhave a tag set with --critical. Tag can be a pattern.-v --variable name:value *  Set variables in the test data. Only scalarvariables are supported and name is given without`${}`. See --escape for how to use special charactersand --variablefile for a more powerful variablesetting mechanism that allows also list variables.Examples:--variable str:Hello  =>  ${str} = `Hello`-v str:Hi_World -E space:_  =>  ${str} = `Hi World`-v x: -v y:42  =>  ${x} = ``, ${y} = `42`-V --variablefile path *  File to read variables from (e.g. `path/vars.py`).Example file:|  import random|  __all__ = [`scalar`, `LIST__var`, `integer`]|  scalar = `Hello world!`|  LIST__var = [`Hello`, `list`, `world`]|  integer = random.randint(1,10)=>${scalar} = `Hello world!`@{var} = [`Hello`,`list`,`world`]${integer} = <random integer from 1 to 10>-d --outputdir dir       Where to create output files. The default is thedirectory where tests are run from and the given pathis considered relative to that unless it is absolute.-o --output file         XML output file. Given path, similarly as paths givento --log, --report, --xunit, and --debugfile, isrelative to --outputdir unless given as an absolutepath. Other output files are created based on XMLoutput files after the test execution and XML outputscan also be further processed with Rebot tool. Can bedisabled by giving a special value `NONE`. In thiscase, also log and report are automatically disabled.Default: output.xml-l --log file            HTML log file. Can be disabled by giving a specialvalue `NONE`. Default: log.htmlExamples: `--log mylog.html`, `-l NONE`-r --report file         HTML report file. Can be disabled with `NONE`similarly as --log. Default: report.html-x --xunit file          xUnit compatible result file. Not created unless thisoption is specified.--xunitfile file      Deprecated. Use --xunit instead.--xunitskipnoncritical  Mark non-critical tests on xUnit output as skipped.-b --debugfile file      Debug file written during execution. Not createdunless this option is specified.-T --timestampoutputs    When this option is used, timestamp in a format`YYYYMMDD-hhmmss` is added to all generated outputfiles between their basename and extension. Forexample `-T -o output.xml -r report.html -l none`creates files like `output-20070503-154410.xml` and`report-20070503-154410.html`.--splitlog            Split log file into smaller pieces that open inbrowser transparently.--logtitle title      Title for the generated test log. The default titleis `<Name Of The Suite> Test Log`. Underscores inthe title are converted into spaces in all titles.--reporttitle title   Title for the generated test report. The defaulttitle is `<Name Of The Suite> Test Report`.--reportbackground colors  Background colors to use in the report file.Either `all_passed:critical_passed:failed` or`passed:failed`. Both color names and codes work.Examples: --reportbackground green:yellow:red--reportbackground #00E:#E00-L --loglevel level      Threshold level for logging. Available levels: TRACE,DEBUG, INFO (default), WARN, NONE (no logging). Usesyntax `LOGLEVEL:DEFAULT` to define the defaultvisible log level in log files.Examples: --loglevel DEBUG--loglevel DEBUG:INFO--suitestatlevel level  How many levels to show in `Statistics by Suite`in log and report. By default all suite levels areshown. Example:  --suitestatlevel 3--tagstatinclude tag *  Include only matching tags in `Statistics by Tag`and `Test Details` in log and report. By default alltags set in test cases are shown. Given `tag` canalso be a simple pattern (see e.g. --test).--tagstatexclude tag *  Exclude matching tags from `Statistics by Tag` and`Test Details`. This option can be used with--tagstatinclude similarly as --exclude is used with--include.--tagstatcombine tags:name *  Create combined statistics based on tags.These statistics are added into `Statistics by Tag`and matching tests into `Test Details`. If optional`name` is not given, name of the combined tag is gotfrom the specified tags. Tags are combined using therules explained in --include.Examples: --tagstatcombine requirement-*--tagstatcombine tag1ANDtag2:My_name--tagdoc pattern:doc *  Add documentation to tags matching given pattern.Documentation is shown in `Test Details` and also asa tooltip in `Statistics by Tag`. Pattern can containcharacters `*` (matches anything) and `?` (matchesany char). Documentation can contain formattingsimilarly as with --doc option.Examples: --tagdoc mytag:My_documentation--tagdoc regression:*See*_http://info.html--tagdoc owner-*:Original_author--tagstatlink pattern:link:title *  Add external links into `Statistics byTag`. Pattern can contain characters `*` (matchesanything) and `?` (matches any char). Charactersmatching to wildcard expressions can be used in linkand title with syntax %N, where N is index of thematch (starting from 1). In title underscores areautomatically converted to spaces.Examples: --tagstatlink mytag:http://my.domain:Link--tagstatlink bug-*:http://tracker/id=%1:Bug_Tracker--removekeywords all|passed|for|wuks|name:<pattern> *  Remove keyword datafrom the generated log file. Keywords containingwarnings are not removed except in `all` mode.all:     remove data from all keywordspassed:  remove data only from keywords in passedtest cases and suitesfor:     remove passed iterations from for loopswuks:    remove all but the last failing keywordinside `BuiltIn.Wait Until Keyword Succeeds`name:<pattern>:  remove data from keywords that matchthe given pattern. The pattern is matchedagainst the full name of the keyword (e.g.'MyLib.Keyword', 'resource.Second Keyword'),is case, space, and underscore insensitive,and may contain `*` and `?` as wildcards.Examples: --removekeywords name:Lib.HugeKw--removekeywords name:myresource.*--flattenkeywords for|foritem|name:<pattern> *  Flattens matching keywordsin the generated log file. Matching keywords get alllog messages from their child keywords and childrenare discarded otherwise.for:     flatten for loops fullyforitem: flatten individual for loop iterationsname:<pattern>:  flatten matched keywords using samematching rules as with`--removekeywords name:<pattern>`--listener class *    A class for monitoring test execution. Getsnotifications e.g. when a test case starts and ends.Arguments to listener class can be given after classname, using colon as separator. For example:--listener MyListenerClass:arg1:arg2--warnonskippedfiles  If this option is used, skipped test data files willcause a warning that is visible in the console outputand the log file. By default skipped files only causean info level syslog message.--nostatusrc          Sets the return code to zero regardless of failuresin test cases. Error codes are returned normally.--runemptysuite       Executes tests also if the top level test suite isempty. Useful e.g. with --include/--exclude when itis not an error that no test matches the condition.--dryrun              Verifies test data and runs tests so that librarykeywords are not executed.--exitonfailure       Stops test execution if any critical test fails.--exitonerror         Stops test execution if any error occurs when parsingtest data, importing libraries, and so on.--skipteardownonexit  Causes teardowns to be skipped if test execution isstopped prematurely.--randomize all|suites|tests|none  Randomizes the test execution order.all:    randomizes both suites and testssuites: randomizes suitestests:  randomizes testsnone:   no randomization (default)Use syntax `VALUE:SEED` to give a custom random seed.The seed must be an integer.Examples: --randomize all--randomize tests:1234--runmode mode *      Deprecated in version 2.8. Use individual options--dryrun, --exitonfailure, --skipteardownonexit, or--randomize instead.-W --monitorwidth chars  Width of the monitor output. Default is 78.-C --monitorcolors auto|on|ansi|off  Use colors on console output or not.auto: use colors when output not redirected (default)on:   always use colorsansi: like `on` but use ANSI colors also on Windowsoff:  disable colors altogetherNote that colors do not work with Jython on Windows.-K --monitormarkers auto|on|off  Show `.` (success) or `F` (failure) onconsole when top level keywords in test cases end.Values have same semantics as with --monitorcolors.-P --pythonpath path *   Additional locations (directories, ZIPs, JARs) whereto search test libraries from when they are imported.Multiple paths can be given by separating them with acolon (`:`) or using this option several times. Givenpath can also be a glob pattern matching multiplepaths but then it normally must be escaped or quoted.Examples:--pythonpath libs/--pythonpath /opt/testlibs:mylibs.zip:yourlibs-E star:STAR -P lib/STAR.jar -P mylib.jar-E --escape what:with *  Escape characters which are problematic in console.`what` is the name of the character to escape and`with` is the string to escape it with. Note thatall given arguments, incl. data sources, are escapedso escape characters ought to be selected carefully.Available escapes: amp (&), apos ('), at (@), bslash(\), colon (:), comma (,), curly1 ({), curly2 (}),dollar ($), exclam (!), gt (>), hash (#), lt (<),paren1 ((), paren2 ()), percent (%), pipe (|), quest(?), quot ("), semic (;), slash (/), space ( ),square1 ([), square2 (]), star (*)Examples:--escape space:_ --metadata X:Value_with_spaces-E space:SP -E quot:Q -v var:QhelloSPworldQ-A --argumentfile path *  Text file to read more arguments from. Use specialpath `STDIN` to read contents from the standard inputstream. File can have both options and data sourcesone per line. Contents do not need to be escaped butspaces in the beginning and end of lines are removed.Empty lines and lines starting with a hash character(#) are ignored.Example file:|  --include regression|  --name Regression Tests|  # This is a comment line|  my_tests.html|  path/to/test/directory/Examples:--argumentfile argfile.txt --argumentfile STDIN-h -? --help             Print usage instructions.--version                Print version information.Options that are marked with an asterisk (*) can be specified multiple times.
For example, `--test first --test third` selects test cases with name `first`
and `third`. If other options are given multiple times, the last value is used.Long option format is case-insensitive. For example, --SuiteStatLevel is
equivalent to but easier to read than --suitestatlevel. Long options can
also be shortened as long as they are unique. For example, `--logti Title`
works while `--lo log.html` does not because the former matches only --logtitle
but the latter matches --log, --loglevel and --logtitle.Environment Variables
=====================ROBOT_OPTIONS             Space separated list of default options to be placedin front of any explicit options on the command line.
ROBOT_SYSLOG_FILE         Path to a file where Robot Framework writes internalinformation about parsing test case files and runningtests. Can be useful when debugging problems. If notset, or set to special value `NONE`, writing to thesyslog file is disabled.
ROBOT_SYSLOG_LEVEL        Log level to use when writing to the syslog file.Available levels are the same as for --loglevelcommand line option and the default is INFO.Examples
========# Simple test run with `pybot` without options.
$ pybot tests.html# Using options and running with `jybot`.
$ jybot --include smoke --name Smoke_Tests path/to/tests.txt# Executing `robot.run` module using Python.
$ python -m robot.run --test test1 --test test2 test_directory# Running `robot/run.py` script with Jython.
$ jython /path/to/robot/run.py tests.robot# Executing multiple test case files and using case-insensitive long options.
$ pybot --SuiteStatLevel 2 /my/tests/*.html /your/tests.html# Setting default options and syslog file before running tests.
$ export ROBOT_OPTIONS="--critical regression --suitestatlevel 2"
$ export ROBOT_SYSLOG_FILE=/tmp/syslog.txt
$ pybot tests.tsv

转载于:https://my.oschina.net/xxjbs001/blog/371024

pybot --help相关推荐

  1. 一招解决robotframework报错“command: pybot.bat --argumentfile”

    Robotframework安装完成后,运行case报如下错误, command: pybot.bat --argumentfile c:\users\18082192\appdata\local\t ...

  2. robotframework - 运行报错提示 No keyword with name 'Open Browser' found.

    用下面的例子为例: 1.输入以上robot脚本提示: 2.经查阅资料,大部分都使用的是selenium2 版本,无法解该的问题,目前小编使用的是selenium3,不知道selenium是哪个版本的话 ...

  3. 接口入参形式_极光小课堂|手把手教你做接口测试

    接口测试是项目测试过程中非常重要的一环,测试的对象是接口,所以提早介入测试,对代码逻辑进行全面验证,就会更早的发现程序的问题.同时,接口测试比UI测试效率更高,并且更容易验证极端和异常的情况. 那么什 ...

  4. [转]Python测试框架对比----unittest, pytest, nose, robot framework对比

    测试框架 什么是框架? 框架(Framework)是整个或部分系统的可重用设计, 框架是用来解决代码的组织及运行控制问题的. 在我们编写自动化脚本的时候,经常需要读取配置文件,读取数据文件,发送请求, ...

  5. 关于运行robot framework 报错解决方法,ModuleNotFoundError: No module named 'robot'

    报错: command: pybot.bat --argumentfile c:\users\76776\appdata\local\temp\RIDEiw0utf.d\argfile.txt --l ...

  6. 【转】Robot Framework 快速入门

    目录 介绍 概述 安装 运行demo 介绍样例应用程序 测试用例 第一个测试用例 高级别测试用例 数据驱动测试用例 关键词keywords 内置关键词 库关键词 用户定义关键词 变量 定义变量 使用变 ...

  7. python3.7界面设计_基于selenium+Python3.7+yaml+Robot Framework的UI自动化测试框架

    前端自动化测试框架 项目说明 本框架是一套基于selenium+Python3.7+yaml+Robot Framework而设计的数据驱动UI自动化测试框架,Robot Framework 作为执行 ...

  8. robotframework安装包_Robot Framework零基础入门教程

    原作者:逆之時間軸 原出处:CSDN 原文链接:https://blog.csdn.net/yydoraemon/article/details/13847781 版权声明:本文为博主原创文章,转载请 ...

  9. 用命令行执行ROBOT FRAMEWORK

    除了在ride中执行用例,我们也可以通过命令行的形式执行用例. 1.执行一整个项目 pybot+项目路径 2.执行某个测试集 pybot+测试集的路径 3.执行某个测试集里面的某个用例 pybot - ...

最新文章

  1. 前端知识点之CSS(一)
  2. 爬虫-基于bs4库的HTML内容查找方法
  3. STM32 基础系列教程 1- CubeMX+GPIO
  4. Flume安装(单节点)
  5. Python List Comprehension
  6. 聊聊eureka的preferSameZoneEureka参数
  7. RocketMQ消息消费源码分析
  8. 互换性与技术测量教材pdf_《互换性与技术测量》赵燕【pdf】
  9. 微信公众平台开发3-微信服务器IP接口实例(含源码)
  10. c语言编写方波信号的思路,频率可调的方波信号发生器设计及电路
  11. [Git] 009 逆转未来
  12. 在知乎上看到的一个关于Linux运维工程师必知的几点,希望对有志于从事运维工作的你有帮助
  13. 【DB笔试面试758】在Oracle的DG中,Switchover和Failover的区别有哪些?
  14. 前端table打印被截断,如何给每一页都增加表头
  15. linux wall命令_如何在Linux上使用wall命令
  16. 如何为电脑cpu涂沫散热膏
  17. 筹备冲刺科创板,佰维存储做对了哪些事情?
  18. 让AI达到人类水平?首先需要翻越这“五座大山” | 讨论
  19. 折腾(享受DIY的乐趣)----客制化键盘GH60自定义配列
  20. 计算机网络构建医院局域网,计算机网络课程设计-构建医院局域网.doc

热门文章

  1. 一个备份MySQL数据库的简单Shell脚本(转)
  2. 用GNS3做PIX防火墙ICMP实验
  3. ·XP注册表修改大全
  4. 搞机器学习需要数学基础吗?
  5. .net html转义字符,asp.net转义字符
  6. php 图片路径混淆,爬虫遇到了字符图片混淆。pytesseract识别图片字符
  7. android8组windows10,微软正式开放Win10新功能:在PC端运行Android应用
  8. 用户认证-什么是会话
  9. 阻塞队列的使用案例-注册成功后增加积分
  10. 搭建基础架构-Order