Robot Framework-Dialogs

Shortcuts

Execute Manual Step · Get Selection From User · Get Value From User · Pause Executionhtml

执行手动步骤 · 获取选择从用户 · 得到值从用户 · 暂停执行python

Keywords

Keyword Arguments Documentation
Execute Manual Step message, default_error=


暂停测试执行,直到用户设置关键字状态。ide

用户能够按任一PASSFAIL按钮。在后一种状况下,执行失败,并打开另外一个对话框来定义错误消息。测试

message是初始对话框中显示的指令,default_error是可能的错误消息对话框中显示的默认值。spa

Get Selection From User message, *values

Pauses test execution and asks user to select a value.code

The selected value is returned. Pressing Cancel fails the keyword.htm

message is the instruction shown in the dialog and values are the options given to the user.blog

Example:ci

${username} = Get Selection From User Select user name user1 user2 admin
Get Value From User message, default_value=,hidden=False

Pauses test execution and asks user to input a value.get

Value typed by the user, or the possible default value, is returned. Returning an empty value is fine, but pressing Cancel fails the keyword.

message is the instruction shown in the dialog and default_value is the possible default value shown in the input field.

If hidden is given a true value, the value typed by the user is hidden. hidden is considered true if it is a non-empty string not equal to falsenone or no, case-insensitively. If it is not a string, its truth value is got directly using same rules as in Python.

Example:

${username} = Get Value From User Input user name default
${password} = Get Value From User Input password hidden=yes

Possibility to hide the typed in value is new in Robot Framework 2.8.4. Considering strings false and no to be false is new in RF 2.9 and considering string nonefalse is new in RF 3.0.3.

Pause Execution message=Test execution paused. Press OK to continue.

暂停测试执行直到用户单击Ok按钮。.

message is the message shown in the dialog.

相关文章
相关标签/搜索