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