Search code examples
testingautomated-testsqr-codee2e-testingtestcafe

Is there a way when doing remote testing (qrcode etc) to control the exposed port?


I'm trying something akin to: testcafe remote tests/dashboards/CustomerTests/myorg.js --qr-code -ports 9999,9998

But that still exposes the following URL: http://192.168.134.205:58732/browser/connect

Is there any way to control the "58732" part of this? My internal network is pretty well locked down, and that port # changes every time.

Thanks!


Solution

  • It works correctly with the proper --ports argument (notice double --):  

    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