# Proxy Auto config (PAC) support by Katalon Studio 7.1.0 is incomplete

**URL:** <https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428>\
**Category:** Feature Request\
**Tags:** feature-request, tracked, katalon-studio\
**Created:** [December 12, 2019, 6:37am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428 "2019-12-12T06:37:10Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 12, 2019, 6:37am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/1 "2019-12-12T06:37:10Z")

</div>

Once Katalon team mentioned that Katalon Studio 7.1.0 supported Proxy Auto config.

> [@How to set proxy programatically](http://forum.katalon.com/t/how-to-set-proxy-programatically/14350/19):
>
> @huynguyen 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 [https://docs.katalon.com/katalon-studio/docs/proxy-preferences.html](https://docs.katalon.com/katalon-studio/docs/proxy-preferences.html) to state more clearly that the PAC is supported by KS and how to utilize it.

Katalon team stated

> Please configure your system proxy to use PAC file, and configure Katalon to use system proxy.

OK, I will examine this change again. Let me report the result.

I thought that I should test if “Use system proxy configuration option” option works for the following 5 cases:

1. After clean installation, Katalon Studio asks us to activate it. While **Activation** processing, Katalon Studio needs connection to the TestOps site on the Internet. My PC is behind the proxy. So I want to let KS make connection through proxy while I choose “Use system proxy configuration”. I mean, I want Katalon Studio to respect our PAC script for Activation.
2. When I execute **`Reload Plugin`** , Katalon Studio needs connetin to the Katalon Plugin Store site on the Internet. Similary to the above, I want Katalon Studio to respect our PAC script for Reloading plugins as well.
3. When I use the **Spy Web** tool to capture my Application Under Test with private IP address (e.g, 172.23.4.56), I want Web browsers started by Katalon Studio to respect our PAC script so that Spy Web tool can capture the [http://172.23.4.56/](http://172.23.4.56/) page.
4. When my test case calls the standard `WebUI.openBrowser('')` statement to launch browser, I want the Web brower to respect our PAC script.
5. When I want to test a **AUT with private IP address** and, at the same time, I want to integrate with **TestOps** , does it work?

Now, let me go into the research detail …

# 0. Environment

I use KS 7.1.0 on Windows10 PC behind the organization’s Proxy. The PC is configured to use Proxy Auto config (also known as PAC): See the following screenshot.

 ![0_My_system_proxy_configuration](https://europe1.discourse-cdn.com/katalon/original/2X/e/e3d9765ef657c69494789b7c19b9f928d9e3acf1.png)

# 0. preparation

1. I removed the folder where KS 7.1.0 has been installed.
2. Also I removed the `%USERPROFILE%\.katalon` folder to make it clean
3. I re-installed KS 7.1.0 from `Katalon_Studio_Windows_64-7.1.0.zip`

# 1. Activation while “Use system proxy configuration applied”

In the end, FAILED

After clean installation, I started Katalon Studio. I requested to go through “Activation” processing. As initial state KS has no proxy set, so I failed to activate it.

 ![01_Activation_failed_because_no_proxy_is_configured](https://europe1.discourse-cdn.com/katalon/original/2X/c/ce424b6752e0a8cfade834151b9c66150ff5bd00.png)

I clicked the ‘Configure Proxy’ link and chose “Use system proxy configuration”.

 ![02_selected_Use_system_proxy_configuration_for_Activation](https://europe1.discourse-cdn.com/katalon/original/2X/f/f429c48a927ff741a5b0fc73f1ff5fde902d08f4.png)

Having “Use system proxy configuration” applied, I tried to activate it again. — Failed. “Cannot connect to Katalon TestOps server” again.

I changed the proxy setting to apply “Manu Proxy configuration”

 ![03_selected_Manual_proxy_configuration_for_Activation](https://europe1.discourse-cdn.com/katalon/original/2X/8/862f65220777f0aec08e0b8306c56ff7bbcef52c.png)

Then I tried to activate it. — succeeded. KS could connect to Katalon TestOps server through the proxy.

 ![04_succeded_connecting_to_TestOps_during_Activation](https://europe1.discourse-cdn.com/katalon/original/2X/0/015adc87420aac1a57ece33ac3008e436965dfe6.png)

Conclusion: Katalon Studio does NOT respect the PAC script whiie it performs Activation processing.

# 2. Reloading plugins while “Use system proxy configuration applied”

In the end, FAILED

While having “NO PROXY” set, “Reloading plugins” processing encountered a prolems as follows.

 ![11_Reloading_plugins_encountered_a_problem_when_Use_system_proxy_configuration_is_applied](https://europe1.discourse-cdn.com/katalon/original/2X/2/2be4cfa84a151af6cc969d926809396394906ddc.png)

It is easy to see, I need to let Katalon Studio to go through our organization’s proxy to reach to the Katalon Plugin Store on the internet.

Having “Use system proxy configuration”, “Reloading plugins…” has encounted the same problem again.

Having “Manual Proxy configuration”, it passed.

 ![12_with_Manual_proxy_configuration_Reloading_plugins_succeeded](https://europe1.discourse-cdn.com/katalon/original/2X/8/8e4e4d2f7cb4b2ace21190483cf87e8a67bd2b43.png)

Conclusiton: Katalon Studio does NOT respect the PAC script whiie it performs Reloading plugins.

# 3. Spy Web tool while “Use systemproxy configuration applied”

In the end, SUCCEEDED. As the following screenshot shows:

 ![21_Spy_web_worked_with_Use_system_proxy_configuration](https://europe1.discourse-cdn.com/katalon/original/2X/2/217ac2dc2183f4033a1d5531173706ebc16f1889.png)

# 4. Test Case calls WebUI.openBrowser(“[http://172.23.4.56](http://172.23.4.56)”)

In the end, SUCCEEDED. I think no more description required.

# 5. Test against the UAT with private IP address and TestOps integration

I did not test this case because I am sure this would not work. Why?

My test case script wants to open browser to navigate to a URL with private IP hostname (e.g `http://172.23.4.56`). In order to make it possible, I need to apply “Use system proxy configuration” to respect the PAC script.

On the other hand, as my research above shows, integration with TestOps requires “Manual proxy configuration”.

These 2 conditions contradict. Impossible to meet.

# 6 My guess

I guess …

Katalon Studio just asks Browsers to respect the PAC script. It is easy for browsers to do so because browsers are configured by you (or your administorators). But Katalon Studio itself is ignorant of PAC. KS does not interprete the PAC script in JavaScript at all. Katalon Studio can not respect the PAC script while Activation and Plugin reload.

# 7 workaound

When we do Activation and Plugin Reloading, we should change the Proxy setup of Katalon Studio to use “Manual proxy configuration”. This operation would not be required so often. When you upgrade KS, remember this tips.

I would usually use “Use system proxy confition” because I would test AUT on dev machines with private IP address quite often.

Just understand a bit of Katalon Studio internal, then you would be able to manage Proxy setups appropriately.

---

<div class="post-metadata">

**Author:** ![huynguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/huynguyen/32/552_2.png) [@huynguyen](https://forum.katalon.com/u/huynguyen)\
**Post date:** [December 12, 2019, 7:40am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/2 "2019-12-12T07:40:04Z")

</div>

Hi @kazurayam,  
Can you share with us your PAC file script ? By the way, I just want to know why you stated in the previous post that your PAC setup is respected by Katalon, but this time it isn’t? What scenarios did you try in your previous attempt? What is the difference between both times? Any provided information will help us much in troubleshooting the issue. Please also help to send us your log file.  
Regards.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 12, 2019, 7:45am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/3 "2019-12-12T07:45:23Z")

</div>

> [@huynguyen](#):
>
> Can you share with us your PAC file script ?

I am sorry, I can’t. It is not to be disclosed outside the organization.

> [@huynguyen](#):
>
> why you stated in the previous post that your PAC setup is respected by Katalon, but this time it isn’t?

I was wrong then. In the last research, I just tried one case : activating my test case to get access to the AUT with private IP address. I did not tried Activation and Plugin reloading then.

This time I checked if “PAC” is respected when I do Activation and Plugin relaoding. I found negative.

---

<div class="post-metadata">

**Author:** ![huynguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/huynguyen/32/552_2.png) [@huynguyen](https://forum.katalon.com/u/huynguyen)\
**Post date:** [December 12, 2019, 7:48am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/4 "2019-12-12T07:48:03Z")

</div>

Hi @kazurayam,  
Would you mind sending us your error log file?  
Regards.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 12, 2019, 7:51am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/5 "2019-12-12T07:51:38Z")

</div>

[kslog.zip](https://europe1.discourse-cdn.com/katalon/original/2X/c/c4c86aed6c6da228e7a5d4c8b48fd0b80533c469.zip) (11.2 KB)  
full of Connection Timeouts.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 12, 2019, 8:05am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/6 "2019-12-12T08:05:01Z")

</div>

> [@huynguyen](#):
>
> What is the difference between both times?

In the previous time, I used my well trained PC with KS 7 installed long days ago.

Last Tuesday, I did a pair programming with one of my collegue at work who has NO Katalon Studio expericese. I told her how to download KS, install it, configure proxy with “Use system proxy configuration”. Then I encounted Activation and Plugin reload failed. — Why?!

So I made re-examined this again.

---

<div class="post-metadata">

**Author:** ![huynguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/huynguyen/32/552_2.png) [@huynguyen](https://forum.katalon.com/u/huynguyen)\
**Post date:** [December 12, 2019, 11:11am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/8 "2019-12-12T11:11:50Z")

</div>

Hi @kazurayam,  
We have re-checked proxy PAC file in Windows 10 environment and encounter no issues with activation and plugin reload. Please help to verify if your proxy PAC file is valid. You can do this by using Firefox and configure it to use system proxy, then access any sites and see if it works.  
Regards.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 12, 2019, 1:54pm UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/9 "2019-12-12T13:54:39Z")

</div>

> [@huynguyen](#):
>
> We have re-checked proxy PAC file in Windows 10 environment and encounter no issues with activation and plugin reload.

I doubt it.

Please do clean install before reproduction.

> [@kazurayam](#):
>
> # 0. preparation
> 
> 1. I removed the folder where KS 7.1.0 has been installed.
> 2. Also I **removed the `%USERPROFILE%\.katalon` folder to make it clean**
> 3. I re-installed KS 7.1.0 from `Katalon_Studio_Windows_64-7.1.0.zip`

I guess the content of the `.katalon` folder is significant to reproduce the problem.

---

<div class="post-metadata">

**Author:** ![huynguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/huynguyen/32/552_2.png) [@huynguyen](https://forum.katalon.com/u/huynguyen)\
**Post date:** [December 12, 2019, 1:57pm UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/10 "2019-12-12T13:57:57Z")

</div>

Hi @kazurayam,  
Of course, we performed the above steps but still not encountered any issues with activation and plugin reload. Have you tried checking your proxy configuration with Firefox as I have mentioned?  
Regards.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 12, 2019, 9:04pm UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/11 "2019-12-12T21:04:21Z")

</div>

Does Katalon Studio emit any log message when it gets access to and interpret the PAC script while Activation and Plugin reloading? How can I trace how Katalon Studio internally behaved for setting up Proxy in order to communicate with TestOps and Plugin Store? Does Katalon Studio has any execution mode for super verbose trace messages?

---

<div class="post-metadata">

**Author:** ![huynguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/huynguyen/32/552_2.png) [@huynguyen](https://forum.katalon.com/u/huynguyen)\
**Post date:** [December 16, 2019, 10:11am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/12 "2019-12-16T10:11:18Z")

</div>

Hi @kazurayam,  
Internally, we use ProxyVole library to detect system proxy. At the present, we don’t have any plan to support verbose log messages for the internal work of ProxyVole, although there is a way to achieve this. However, ProxyVole library provides a utility called ProxyVoleTester which will show the trace messages for how it detects proxy. Please refer to [https://github.com/MarkusBernhardt/proxy-vole](https://github.com/MarkusBernhardt/proxy-vole) for more details. Moreover, it may help to know the strategy we use for searching system proxy is as the following order (if it is in Windows environment):

1. Search proxy in operation system settings.
2. Search proxy in Internet Explorer settings.
3. Search proxy in Firefox settings.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 16, 2019, 1:38pm UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/13 "2019-12-16T13:38:58Z")

</div>

I have ever struggled with ProxyVole library. I seem to remember I wasn’t very successful with it.

---

<div class="post-metadata">

**Author:** ![Ibus](https://avatars.discourse-cdn.com/v4/letter/i/e9a140/32.png) [@Ibus](https://forum.katalon.com/u/Ibus)\
**Post date:** [December 16, 2019, 2:18pm UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/14 "2019-12-16T14:18:39Z")

</div>

@kazurayam i think the proposal here is … from your side, try to make a working solution for your case, with or without the proposed libs, but katalon agnostic (just java stuff). based on that some decissions can be taken … up to now katalon team cannot publish the source code inside, you cannot publish yout script … mhmmm

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [December 20, 2019, 6:50am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/15 "2019-12-20T06:50:10Z")

</div>

@huynguyen

I want to read the most up-to-date source of Katalon Studio.  
Please update the disclosed source cord repository:

> [@Please update the katalon-studio-testing-framework repository](http://forum.katalon.com/t/please-update-the-katalon-studio-testing-framework-repository/37804):
>
> I have a problem on Katalon Studio 7.1.2 especially about the com.kms.katalon.core.util.internal.ProxyUtil class. I wanted to read the source. I looked for the source code disclosed on Github at and found the repository is outdated. It contains the source of v7.0.1 while the current version is 7.1.2. @devalex88 Please update the disclosed source code repository to make it up to date.

---

<div class="post-metadata">

**Author:** ![huynguyen](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/huynguyen/32/552_2.png) [@huynguyen](https://forum.katalon.com/u/huynguyen)\
**Post date:** [December 20, 2019, 4:33pm UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/16 "2019-12-20T16:33:53Z")

</div>

Hi @kazurayam,  
We will update the repository soon. Please stay tuned.  
Regards.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [June 5, 2020, 6:50pm UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/17 "2020-06-05T18:50:42Z")

</div>

I noticed in  
[https://docs.katalon.com/katalon-studio/new/version-70.html#version-750---752](https://docs.katalon.com/katalon-studio/new/version-70.html#version-750---752)

This mentioned that in 7.5.0-7.5.2

> Improve Proxy Settings with two separate types, including **Authentication** and **System** proxies. [Learn more](https://docs.katalon.com/katalon-studio/docs/katalon-studio-preferences.html#proxy-preferences)

I tried ver 7.5.5 to evaluate this change. I used “Use system proxy configuration applied” for System roxy setting. This allowed my test cases could use Proxy Auto config to access web sites of both of private IP hostnames ([http://172.23.4.56/](http://172.23.4.56/)…) and host of public hostnames (e.g., [http://autdemo.katalon.com](http://autdemo.katalon.com)). I used “Manual proxy configuration” for Authentication Proxy setting. This allowed Katalon Studio to go through Activation processing and plugin reloading successfully.

I think that the problems in Katalon Studio concerning Proxy have been finally resolved. Good work, thank you.

---

<div class="post-metadata">

**Author:** ![Jass](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jass/32/9588_2.png) [@Jass](https://forum.katalon.com/u/Jass)\
**Post date:** [June 8, 2020, 3:49am UTC](https://forum.katalon.com/t/proxy-auto-config-pac-support-by-katalon-studio-7-1-0-is-incomplete/37428/18 "2020-06-08T03:49:32Z")

</div>

Closed on June 8, 2020, 3:49am UTC


