How to set proxy programatically

Is there any way to set proxy programatically?

I know how to but before telling it, let me ask you. Why do you want to do that?

I’m new to Katalon, and we have 6.3.3.

It was mentioned that Katalon does not have an exception list in its proxy setting.
This causes internal address to be forwarded to the proxy.

Until there is an exception list, I’m thinking of setting the proxy when Katalon starts in order to load the plugins, and then programmatically turn off the proxy when the testing starts.

Is there a way to set the proxy settings to “No proxy”?

I wrote this 10 months ago. But now I am against what I said.

I do not think there is a way to change the proxy settings of Katalon Studio programmatically (by test case script, test listener script) once Katalon Studio started.

I have found a work around.

You will set “Manual Proxy Configuration” to Katalon Studio. This will let “Reload plugins” operation to success. But your test case scripts will be unable to reach to the hosts on your intranet.

Now you can use Desired Capability to tell Chrome browser of proxy configuration. Chrome browser accepts --proxy-bypass-list option. You can specify the host name (ip address) of your target host on your intranet.

This worked for me.

Also it is possible to set the Desired Capabilities for browsers programatically.


We are testing Web services (GET http://…) directly without going through the browser, so I believe in this scenario, it’s Katalon that resolves the URL, at least at the Object repo level.

An exception list, i.e. proxy bypass per Eclipse’s parlance, would definitely fix the issue. Is there a reason why the proxy setting screen does not have a proxy bypass?

In my opinion, using command-line switches for browsers or the Desired Capability to configure browsers proxy setup for WebUI testing is fine as long as these options work.

I think that Katalon Studio’s current Proxy Preference design is ambiguous. The current design does not make it clear who consumes the proxy information?

  1. Katalon Studio for reloading plugins, communicating with Katalon Analytics,
  2. Browsers (for reaching to the Applicaton Under Test)?
  3. Katalon Studio for WebService/API testing without browsers

As for the case1, Proxy config for Katalon Studio to communicate with Plugin Store and Katalon Analysis — this would NEVER require --proxy-bypass-list

As for the case2, Proxy config as Desired Capabilities for Browsers to let it communicate with hosts both on the internet and the intranet — this would require --proxy-bypass-list and Proxy Auto Configuration support

As for the case3, Proxy config for WebService/API test, this would require --proxy-bypass-list and PAC.

well, Proxy config with moving targets tends to make confusion.

1 Like

@ThanhTo @devalex88 @duyluong

Guys, can we get some clarity on this? (See above).

I have made a new post:

Here I used PAC (Proxy Auto-config).

Hi guys!

Katalon Studio 7.0.0 supports passing proxy details through the script. You can see more details here.

I’m glad to let you know we have just released the official version of Katalon Studio 7.0.0. Please first check out the release note and click here to download.



Does it support PAC?

Hi @kazurayam

Unfortunately, PAC file is not supported in Katalon Studio 7.0.0.


PAC is important for me.

PAC is the only method for me to solve Proxy problems completely in the corporate’s network where I am working.

I would request PAC file support in Katalon Studio.

1 Like

What about the --no-proxy-server Web UI possibility, in the Project settings?

Right now I need to configure a proxy in Kalaton to be able to activate the product.
But I need it disabled when recording/playing back tests on our local (intranet) machine, because I can’t access that machine with an enabled proxy.


I wonder if the proxy exception list can help you in that case. If yes, the good news is we will release it soon in the upcoming versions.


Great news, thanks!

Hi @kazurayam,
Since version 7.1.0, we have improved Katalon’s capability to detect system proxy, including those defined by PAC file. Please configure your system proxy to use PAC file, and configure Katalon to use system proxy.

1 Like


I tried v7.1.0 and found that the PAC setup to my Windows OS is respected by Katalon Studio if I choose “Use System Proxy configuration”.

I hope you to rewrite the official documentation to state more clearly that the PAC is supported by KS and how to utilize it.


Hi @kazurayam,
We will update the docs accordingly. Thank you.

I re-examined the PAC support. See the following post: