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 用戶能夠按任一PASS 或FAIL 按鈕。在後一種狀況下,執行失敗,並打開另外一個對話框來定義錯誤消息。測試 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 false , none or no , case-insensitively. If it is not a string, its truth value is got directly using same rules as in Python. ![](http://static.javashuo.com/static/loading.gif) 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 none false 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. |