# 6/17 共筆 {%hackmd 1lpg7PuqRoaui6XyJcrylw %} ## 檔案 - 分類 - Test Suites - Resorce - 擺放 ## Test Suites (.robot) - Setting ``` *** Settings *** Documentation The Firewall function is used to filter traffics. Resource ./resource/routine.resource Resource ./resource/config.resource Library ./library/Firewall.py ${HOST} ${PORT} ${PROMPTS} Test Setup log in DUT admin moxa Test Teardown Make cellular connectted and close session ``` - import先後順序有影響 - 變數宣告 - 來源 - 檔案內 - 在Variable section - 在Test Case下 - 檔案外 - 以resource檔讀入 - 以python檔讀入 - Syntax - [Build-in keyword(function)](https://robotframework.org/robotframework/latest/libraries/BuiltIn.html) - variable file, resource…etc - 說明變數用法。   List  - @ 後面接的型態一定要是一個list - 58行若使用@會有問題 Dictionary   Evaluate 非單層的宣告  - Resource file - 沒有包含test cases section的file -  -  - import from resource 的變數是在外部宣告 - 建議副檔案命名為`.resource` ### Example4     至於變數要在哪裡定義需要考量...? - 譬如果是共用的config,可能適合用resource file等 --- [Robot Framework User Guide 2.5-2.8](https://robotframework.org/robotframework/latest/RobotFrameworkUserGuide.html) :::info :heart: **感謝共同編輯** Sabrina :::
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up