Hi all,
For August, our team will be sharing with you all about working with Git with Katalon. And so, today’s article will touch upon a foundational, but often overlook aspect of working with Git, that is how to properly connect to a Git Repository.
Have you ever been stuck somewhere when trying to connect to a Git Repository from Katalon Studio or from TestOps?
Or that you still could not move forward, even though you have read and followed our documentations below:
The root causes can be caused by various factors depending on your own environment. In this article, we are going to list out some of the common ones so that you can refer to in the future.
1. Your Credentials are not correct
Username
In some scenarios, we have seen our users entered their email as a username to login to their Git Repository, but it depends on which code management tool you are using.
For example, Github’s username is different from the Github username . Hence, changing the username to the correct one will allow you to authenticate.
Password/API Key
Personal access tokens are an alternative to using passwords for authentication to all Git repositories recently. Please make sure you generate and enter your API Key with the appropriate permission at the password field. A token will full-access is highly recommended.
If your organization uses SAML single sign-on (SSO), you must first authorize the token and try again with that token.
Please refer to this guide from GitHub: Managing your personal access tokens - GitHub Docs
2. Katalon Studio and Katalon TestOps cannot send requests to your Git Repository
The Katalon Platform might encounter difficulties connecting to Git repositories due to network restrictions imposed by corporate firewalls or security measures. These restrictions can prevent Katalon Studio & TestOps from accessing the necessary resources to interact with your Git server.
To overcome this, please make sure you’ve whitelisted all listed domains and IPs in this documentation: Katalon domain and IP whitelist | Katalon Docs
If your Git server requires any proxy configuration or VPN enabled. Please make sure you have configured Proxy Preferences in Katalon Studio and having the proxy and VPN set up from your runner machine as well if your environment requires.
If you find this article helpful, then don’t forget to leave us a like or a heart and share it with your colleague or teammates.