Katalon Studio behind Proxy is unable to open browser on BrowserStack

This issue is still outstanding for me. I haven’t got any favorable solution yet.

My PC sits behind the cooperate proxy. When I run my test case selecting Remote Browser directed to the Browserstack URL, the Katalon Studio fails to find the hostname of URL of Browserstack. The message indicates that Katalon Studio tried to make a HTTP request to the URL WITHOUT setting proxy information.

The following figure shows what I guess.

(1) On my PC when I run a test selecting local Firefox browser, Katalon App calls Selenium server to talk to Firefox. The Katalon App informs Firefox browser of the Cooperate Proxy’s address and port.

(2) Firefox browser starts HTTP session to the Target Web App through the Cooperate Proxy. The session successfully goes through the Proxy. Test case runs.

(3) If I do NOT have a Proxy, Katalon app can call the Selenium server running on the remote server (Zalenium or Browserstack). I have ever tried it and got success.

(4) On the remote server (Zalenium or Browserstack) the Selenium server process runs. The Selenium server accepts HTTP request from my Katalon studio for activating remote browser.

(5) On the contrary, if I sit behind the cooperate proxy, the Katalon app fails to communicate with the remote Selenium server. Why? ---- Katalon Team has explained very little. All they said is “Remote Browser is not supported”. I would rephrase this: “Katalon Studio does not support communicating with Remote Selenium server over Proxy”.

Let me tell you what I presume. Katalon app is coded with assumption that it can communicate with the Selenium server without Proxy in between.

This naive assumption holds true in the case of (1) where the Selenium server is running locally on my PC. However it does not necessarily true in the case of (3) and (5) where the Selenium server is running on a remote server. There may be or may not be a proxy. If there isn’t =(3), you would be happy. If there is =(5), you would be annoyed.

Even if I have set the Proxy address and port at the menu Window>Katalon Studio Preferences>Katalon>Proxy, the Katalon app does not use it for communicating with the Selenium server.

Why the Katalon app does not (yet) support Proxy in between the local PC and the remote Selenium servers? — I don’t know. Ask Katalon.

----------------------------------------------------------------------------------------------------------------------------

My advise to Katalon users behind proxy who want to use Zalenium/Browserstack

Get out of your cooperate proxy barrier. Go home, or run Katalon Studio on AWS EC2, or find a new job without proxy annoyance.

----------------------------------------------------------------------------------------------------------------------------

Additional discussion.

A few people behind cooperate proxy want to use remote Selenium Grid (Zalenium, Browserstack). They are discussing how to set proxy information.

I am afraid that their efforts would not be successful. Because the DesiredCapabilities set to the remote browser (see (6) in the above figure) has nothing to do with the communication between the Katalon Studio app and the remote Selenium server (see (5) in the above figure).

RemoteBrowserProxy1.png

1 Like