This project demonstrates how to use mitmproxy (or really any similar proxy) with Katalon Studio. In particular, it contains examples of configuring Desired Capabilities for a Chrome browser to connect to a proxy running locally on port 8080. It contains examples for doing that configuring both in Katalon Studio project settings and in code.
- Katalon Studio
- mitmproxy
You should be able to follow the standard instructions for installing and configuring mitmproxy to run on your platform.
You can see the project settings that configure Katalon Studio scripts to connect to mitmproxy running locally on port 8080 by selecting Project / Settings then Desired Capabilities / Web UI / Chrome in the Project Settings dialog.
You can also configure proxy usage in a Katalon Studio test using code. An example can be seen in the Proxy Test - Code test case in this project.
This project also shows how to bypass SSL warnings that are normally displayed by browsers when the certificate for an SSL connection does not match the target domain name.
There is also a test case named "Proxy Config" which will open a browser window where one can install a certificate that will allow the mitmproxy to generate certificates on-the-fly to bypass these browser checks. More details on this process can be found here.