有没有办法在进行远程测试(二维码等)时控制暴露的端口?
Is there a way when doing remote testing (qrcode etc) to control the exposed port?
我正在尝试类似于:
testcafe 远程 tests/dashboards/CustomerTests/myorg.js --qr-code -ports 9999,9998
但这仍然暴露了以下内容 URL:
http://192.168.134.205:58732/browser/connect
有什么办法可以控制其中的“58732”部分吗?我的内部网络被很好地锁定了,那个端口号每次都在变化。
谢谢!
它与正确的 --ports 参数一起工作(注意双 --):
testcafe remote test.js --qr-code --ports 9999,9998
Using locally installed version of TestCafe.
Connecting 1 remote browser(s)...
Navigate to the following URL from each remote browser.
You can either enter the URL or scan the QR-code.
Connect URL: http://192.168.67.55:9999/browser/connect
我正在尝试类似于: testcafe 远程 tests/dashboards/CustomerTests/myorg.js --qr-code -ports 9999,9998
但这仍然暴露了以下内容 URL: http://192.168.134.205:58732/browser/connect
有什么办法可以控制其中的“58732”部分吗?我的内部网络被很好地锁定了,那个端口号每次都在变化。
谢谢!
它与正确的 --ports 参数一起工作(注意双 --):
testcafe remote test.js --qr-code --ports 9999,9998
Using locally installed version of TestCafe.
Connecting 1 remote browser(s)...
Navigate to the following URL from each remote browser.
You can either enter the URL or scan the QR-code.
Connect URL: http://192.168.67.55:9999/browser/connect