11 Shares 6436 Views 2 Comments

4 easy steps to integrate UFT with GIT

Jun 27, 2017
11 Shares 6,436 Views 2
UFT GIT Integration

GIT is a source code management and revision control system. There are various version control system are available, GIT has become very popular lately with its lots of enhanced feature, easy to use, availability and speed. I am sure all of us also use some or other system to version control our automation scripts. In this post, we are going to focus on using GIT and how we can easily integrate with UFT. 

I assume, you are already well versed with GIT and its concepts. I will put few basics here for a quick refresher. Get more details from GitHub help.

GIT Basics

Lets understand Version Control System first, a Version Control System allows you and your team to work on the same project simultaneously. It does not allow overwrite the changes and maintains a history of each change. There are two types of Version Control System 

  • Centralized Version Control System
  • Distributed Version Control System

GIT is a Distributed Version Control System, it maintains a fully mirrored repository at client which make it distributed and different than centralized one. If any of the server goes down then a copy from client be brought back to restore. Every checkout is the full backup of repository.

GIT is Secure, Powerful, Easy to use , Fast and Free!

There are four main steps to work with GIT

  1. Modify a file in working directory. 
  2. Add files to Staging area
  3. Perform Commit operation to move files from staging area. 
  4. Perform Push Operation to store the changes permanently to the GIT repository


Lets now get into step by step integration of UFT and GIT. we have used UFT 14 in this post.

Step 0: Install GIT and Create Account at GITHub

If you don’t have an account with github, create an account at github.com

Download and install GIT on your System

 Download GIT

Configure GIT, Open GIT Bash and run below commands one by one


git config --global user.email "your email"
git config --global user.name "your user name"


Step 1: Create GitHub Repository

Login to your GitHub account which you created, and create a new repository for your test. Here you can create a public or private repository. GitHub charges some amount for private repository. 

Follow these steps:


Step 2: Clone Repository to Local GIT

It is required to get your repository at GitHub to you local repository and linked. To do this you need to perform clone repository operation either at GIT GUI or GIT Bash.

  1. Create a folder on your system, say “C:\GIT”
  2. Launch GIT GUI and click on “Clone Existing Repository”
  3. Go to your GitHub and Copy the clone path for your repository, this path should be source location  and the folder you created at your local should be the destinationUFT-GIT Clone GUI
  4. Click on Clone, and your local repository should be ready

Use commands below at GIT Bash to do the same, Navigate to the local repository directory before running these commands.


git init

git clone https://github.com/<Git Clone path>.git


Step 3: Create Test 

Launch UFT and Create a test in the local repository path, i.e the same path where GIT repository has been initialized. 

If you will notice in the solution explorer, a red exclamation mark has been added to all the file icon, which indicates that the files are currently in you local repository and not yet pushed to the GitHub.


Step 4: Push Test to GitHub Repository

Two easy steps – Commit the changes and then Push the changes. These options are available in the right click menu on the test at Solution explorer. Push Option will be disable at first, which means that you will need to commit the changes first.

at the bottom left you can see the status of operation you perform. 

refer the steps –

Once you have successfully pushed your changes to GitHub Repository, you can open the repository there and see the files from UFT test there.


What else operations can be performed from UFT?

UFT-GIT MenuRevert Changes: Use “Git Revert” to revert the changes back to the previous commit. UFT will close the test and open it again, all the changes since the last commit and push will be deleted.

Compare with previous version: If you have made changes in the local repository, then you can compare the local repository test to the last commit using “Compare with previous revision” option.

Use Bash for all other Operations: UFT does not provide direct option for other operations like Create Branches or Merge Branches. You will use Bash for all such operations. from UFT menu option, you should use “Open Bash” to launch GIT Bash and use commands

Create Branch: Use command below to create a branch in local repository, which will need to be pushed to github.


Git checkout –b <New_Branch_Name>

Merge Changes to Master:  To merge your changes to Master Branch at Repository, you will need to first checkout the master and and then merge the branch changes. use commands below


git checkout master
git merge <branch name>

Hope it was helpful, let us know if you have any further questions or any help required.

You may be interested

UFT Patch Updates – UFT 14.03
Unified Functional Testing
1861 views1
Unified Functional Testing
1861 views1

UFT Patch Updates – UFT 14.03

Saket - Mar 11, 2018

Post the launch of UFT 14.0, there are three patch updates has been released including a number of features and enhancement. Recently Micro Focus unveiled third patch…

Setting up Web Service Automation Project
Katalon Studio
Katalon Studio

Setting up Web Service Automation Project

Saket - Oct 24, 2017

Web services are specific services that can be published and called over the Internet by client applications. Katalon Studio supports functional testing of web services. This topic…

Setting up Mobile Automation Project in MacOS
Katalon Studio
1169 views1
Katalon Studio
1169 views1

Setting up Mobile Automation Project in MacOS

Saket - Oct 09, 2017

Using Katalon Studio, mobile tester can design automation test for both Android and iOS to run on physical devices, cloud services and emulators. This tutorial explains how…


  1. Pingback: UFT Jenkins Integration - Automated-360

  2. Hi ,

    I’m using uft 12.02 version i’did same above steps but not displaying any git commit or anything,Can you please helpme.


Leave a Comment

Your email address will not be published.

Most from this category

Join The Growing Group of 15000+ Test Automation Engineers

Signup for our newsletter and get access to free downloads, as well as tips, tricks and techniques and various test automation resources.
Email Address
Secure and Spam free...