我正在嘗試使用新的 userVariables 選項,這是 Testcafe 的最新版本中新引入的。
我想知道是否可以通過 CLI 使用 userVariables。
我知道可以將變數添加到 testcaferc.json 中,如檔案中所述:
https://testcafe.io/documentation/402638/reference/configuration-file#uservariables
我想不出通過命令列添加或修改變數和值的方法。
提前感謝您的任何幫助/提示。
uj5u.com熱心網友回復:
您只能在組態檔中設定自定義用戶變數。有關更多資訊,請參閱以下主題:https : //testcafe.io/403403/release-notes/framework/2021-9-8-testcafe-v1-16-0-released#support-for-custom-user-variables組態檔中
此外,您可能希望在 TestCafe GitHub 存盤庫中跟蹤以下問題:https : //github.com/DevExpress/testcafe/issues/6621
轉載請註明出處,本文鏈接:https://www.uj5u.com/yidong/334790.html
