[英]Communicate with devices on local network using client-side Javascript
[英]Is possible Launching testing framework on client side to test other app in local network
我解釋。
我需要創建一個獨立的“ MainWebApp”,以允許我的組織成員測試“第三個WebAapp”。
A-WebApp
(獨立-運行測試框架)-> Client
(訪問A-WebApp
並執行對B-Webapp
測試)-> B-Webapp
(客戶端連接到此應用並執行在A-WebApp
)
我可以推薦一些易於使用且快速使用的框架來做到這一點嗎?
非常感謝你。
您可以使用Selenium GRID
。
使用官方網站上的selenium server standalone.jar
文件。 在計算機B-webapp
上運行jar
文件,在該計算機上設置網格和節點(教程可在線免費獲得)。
一旦在B-webapp
上啟動並運行了Selenium GRID
,您只需要打開A-WebApp
並創建RemoteWebDriver
。
RemoteWebDriver
是WebDriver
的實例,就像Firefox
或Chrome
驅動程序一樣。
RemoteWebDriver
針對Selenium GRID
執行測試
如何使用RemoteWebDriver:
DesiredCapabilities capability = DesiredCapabilities.firefox();
String url = "SELENIUM GRID URL";
WebDriver driver = new RemoteWebDriver(new URL(url), capability);
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.