Preceptor Webdriver將 WebDriver (Selenium) 代碼注入測試客戶端
Preceptor Webdriver 的代碼通過 Preceptor 客戶端裝飾器插件注入到測試客戶端中,并且在中央配置文件中配置后,可簡化測試安裝并且拆除 Selenium 測試。
示例代碼:
{ // Preceptor task configuration
"type": "mocha", // ...
"decorator": [
{
"type": "webDriver", // Id of this module when registered in Preceptor
"configuration": {
"isolation": true, // Runs in isolation mode
"client": { // Client configuration
"type": "taxi",
"configuration": {
"mode": "sync"
},
"capabilities": {
"browserName": "firefox"
}
},
"server": { // Server configuration
"type": "selenium"
}
}
}
], // ...}
評論
圖片
表情
