博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
[PYTHON] 生成python doc
阅读量:6767 次
发布时间:2019-06-26

本文共 1890 字,大约阅读时间需要 6 分钟。

hot3.png

python -m robot.libdoc LIBS/COM_MSG/msg_command.py LIBS/COM_MSG/msg_command.html

python -m robot.libdoc LIBS/COM_MSG/msg_command.py LIBS/COM_MSG/msg_command.html

An sample for python document:

class BuiltIn(_Verify, _Converter, _Variables, _RunKeyword, _Control, _Misc):

    """An always available standard library with often needed keywords.

    ``BuiltIn`` is Robot Framework's standard library that provides a set

    of generic keywords needed often. It is imported automatically and
    thus always available. The provided keywords can be used, for example,
    for verifications (e.g. `Should Be Equal`, `Should Contain`),
    conversions (e.g. `Convert To Integer`) and for various other purposes
    (e.g. `Log`, `Sleep`, `Run Keyword If`, `Set Global Variable`).

    == Table of contents ==

    - `HTML error messages`

    - `Evaluating expressions`
    - `Boolean arguments`
    - `Multiline string comparisons`
    - `Shortcuts`
    - `Keywords`

    = HTML error messages =

    Many of the keywords accept an optional error message to use if the keyword

    fails. Starting from Robot Framework 2.8, it is possible to use HTML in
    these messages by prefixing them with ``*HTML*``. See `Fail` keyword for
    a usage example. Notice that using HTML in messages is not limited to
    BuiltIn library but works with any error message.

    = Evaluating expressions =

    Many keywords, such as `Evaluate`, `Run Keyword If` and `Should Be True`,

    accept an expression that is evaluated in Python. These expressions are
    evaluated using Python's
    [https://docs.python.org/2/library/functions.html#eval|eval] function so
    that all Python built-ins like ``len()`` and ``int()`` are available.
    `Evaluate` allows configuring the execution namespace with custom modules,
    and other keywords have [https://docs.python.org/2/library/os.html|os]
    and [https://docs.python.org/2/library/sys.html|sys] modules available
    automatically.

134555_bkch_2767751.png

转载于:https://my.oschina.net/activehealth/blog/735130

你可能感兴趣的文章
Win 8并没有使PC销量上升
查看>>
玩转docker-镜像加速器
查看>>
C++ std::function 和 std::bind
查看>>
Linux 查找端口和该端口执行的命令和路径
查看>>
MFC 如何得到ListControl选中的项 ListControl选中一行
查看>>
mysql 查询注意事项
查看>>
Java集合总结
查看>>
不是人家炫耀,而是我们太挫,你为什么不努力
查看>>
线性代数--矩阵乘法
查看>>
【学习】一本概率论经典书籍《Introduction to Probability》(pdf和LaTeX源代码下载)...
查看>>
redis学习篇(七)-----高级特性之安全篇
查看>>
轻松搞定面试中的二叉树题目
查看>>
用MySQL Slow Log解决MySQL CPU占用高的问题
查看>>
php+smarty分页类
查看>>
oracle 用户密码过期-ORA-28001: 口令已经失效
查看>>
Java 实现 Hook 对鼠标键盘监听
查看>>
非常实用的Chrome插件之总结
查看>>
你应该知道的7种回归方法
查看>>
grunt简单的入门
查看>>
关于css浮动
查看>>