--proxy.server.address="http://192.168.12.32" causes failure

The documentation of Console Mode Execution provides an example command line as follows:

katalon -noSplash -runMode=console -consoleLog -noExit -projectPath="C:\Users\Katalon Studio\Project\YourProject.prj" -retry=0 -testSuitePath="Test Suites/TS_RegressionTest" -browserType="Chrome (headless)"     --config -proxy.option=MANUAL_CONFIG -proxy.server.type=HTTP             -proxy.server.address="http://192.168.12.32" -proxy.server.port="8888"

The point is that -proxy.server.address parameter is given with a string starting with http://. This causes error.

For example, my test cases failed and its log told:

Test Cases/main/fnhp/visitAllFunds FAILED because (of)   Unable to open browser with url: ''   (Root cause: org.openqa.selenium.InvalidArgumentException:       http://172.24.2.10:8080 contains a schemeBuild info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:07:36.161Z'System info: host: 'N01-0370', ip: '192.168.56.1', os.name: 'Windows 7', os.arch: 'amd64', os.version: '6.1', java.version: '1.8.0_102'Driver info: driver.version: CGeckoDriverremote stacktrace: stack backtrace:   0:           0x4821c4 -    1:           0x482933 -    2:           0x47a13a -    3:           0x46d35e -    4:           0x46bf36 -    5:           0x405737 -    6:           0x445d06 -    7:           0x43026a -    8:           0x40ba4e -    9:           0x4119b9 -   10:           0x6d2c89 -   11:           0x426006 -   12:           0x6cd490 -   13:         0x771a59cd - BaseThreadInitThunk)

Here **http://172.24.2.10:8080** is the --proxy.server.address value I gave. I wrote it with prefix of http:// because the documentation told me to do so.

To prevent error, I needed to code as follows:

... --proxy.server.address="192.168.12.32"

–proxy.server.address should NOT starts with http:// string.

The documentation should be corrected.

3 Likes

Upvoted.

Good catch, Kaz. And even the error message is quite clear “…contains a scheme”.

The document has been corrected. Thanks for your finding :slight_smile:

Please find the document has another fault

スクリーンショット 2018-08-30 22.37.22.png

1 Like