簡體   English   中英

是否可以在客戶端啟動測試框架以測試本地網絡中的其他應用

[英]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

RemoteWebDriverWebDriver的實例,就像FirefoxChrome驅動程序一樣。

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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM