Dev Tools
純前端檔案不上傳

測試框架 Cheatsheet

Robot Framework / Playwright / Appium 常用語法速查。

Open browser & navigate

Open Browser    https://example.com    chrome
Maximize Browser Window
Go To    https://example.com/login

Input + submit

Input Text       id=email       qa@example.com
Input Password   id=password    s3cret
Click Button     css:button[type='submit']

Wait + assert

Wait Until Element Is Visible    css:.dashboard    timeout=10s
Element Should Contain           css:.user-name   Mark

Data-driven (Examples table)

*** Test Cases ***
Login With Various Users
    [Template]    Login With User
    alice    pw123
    bob      pw456

Tags / runtime filtering

*** Test Cases ***
Smoke Login
    [Tags]    smoke    auth
    ...
# CLI:  robot --include smoke tests/
如何使用
  1. 上面三個 tab 切換 Robot Framework / Playwright / Appium
  2. 輸入框輸入關鍵字(e.g. wait, click, iOS),會即時過濾 snippet。
  3. 每段右上角的 Copy 直接複製到你的測試檔。
Tips
  • 找不到的語法?開 issue 在 [MarkwwLiu/dev](https://github.com/MarkwwLiu/dev) 跟我說,我加。

相關工具