How do I upload an existing Katalon project to GitHub

Sorry folks… [re-post]

My Setup:
Katalon Studio
Version: 6.1.1
Build: 1

I thought I had figured out how to load an existing Katalon project to GitHub but I was wrong. I created a GitHub repository and then opened my Katalon Project. I did a Katalon Git “Clone Project” followed by a ‘Commit and Push’ which seemed to work the first time. But I cannot get it to work again. Can someone please point me to a document that I can use to configure the pushing of existing Katalon projects to GitHub… Or a quick example of how to do it properly.

Thanks, Dave

This might be helpful

https://docs.katalon.com/katalon-studio/docs/git-integration.html#configuration

Window7, 64bit
Katalon Studio, Version: 6.1.1, Build: 1

Hi Manpreet.,
Thanks for your response.
I previously reviewed the Git Integration document that you recommended.
If I understand the document correctly I should be able to use “Share Project” to load an existing Katalon project to GitHub. However, “Share Project” is grayed out in my case.

I did the following:
Enabled Git in Katalon
Created a GitHub repository
Created a new Katalon project with some test cases / objects
Selected Git from Katalon
Result: Share Project is grayed out.
Or is there another way that I can upload existing Katalon projects to GitHub?

Thanks,
Dave

Did you tried push ?

It will give you option to push local branch you are working on to your desired remote branch

e.g

59%20AM

I did the following:
Enabled Git in Katalon
Created GitHub repository under my personal account
Created a new Katalon project with some test cases / objects
Selected Git from Katalon
Selected Push

I am getting the following:
Am I missing some configuration setting?

Thanks,
Dave

It looks like you are trying to push to katalon studio repository? Do you have write access to that repository?

No I created a sample Katalon project using one of the canned GitHub Sample Projects…
Katalon might be confused by that…

What work-flow should i be using to upload a new existing Katalon project?
This is what I am doing…
Create new blank project (add a couple of one line test cases)
Share it
Push it
I get this error when i do the former:
image

Lets start from a blank canvas as mentioned in the Git Integration document I shared. I would also suggest you to delete your current remote repository ( if its blank ) and then try to share the local branch to new repository.

Okay did the following:

Deleted GitHub repository
Created new GitHub repository= Tigger99/testProject
Open Katalon Studio
Click File > New > Project
Name= testProject
Type= Web
Project= Blank
Click OK
Added TC001 & TC002 (Added one step for each)
Select Git > Share Project; “Push” is NOT enabled at this point
Click “Commit”
Added all ‘Unstaged Changes’ to ‘Staged Changes’
Added commit message
Click ‘Commit and Push’
I then see the ‘Destination Git Repository’ dialog
Not sure if the Remote name is correct?
Not sure what the Host setting should be?
Is this the correct work-flow or am i missing something?

The host would not be needed if you select the correct protocol. Select HTTPS from the protocol dropdown, it should fill port automatically.

I tried that too… No port.
Do u happen to know which port is should be?

This should be working if you followed the steps. I am trying to find out more, but I am on MAC so the options are different.

https://docs.katalon.com/katalon-studio/tutorials/git_integration_introduction.html#7-push-to-git

Solution posted here: How to upload an existing Katalon project to GitHub [other]

Many thanks manpreet for your help in solving my issue.

Cheers,
Dave

1 Like