UFT Tutorial for Beginners
Introduction to UFT tool:
• Unified Functional Testing (formerly QuickTest Professional) is a Functional in addition to Regression Test Tool for Testing Windows based Client/ Server Applications, Web Applications in addition to Mobile (Native in addition to Hybrid) Applications.
• UFT was developed inwards .NET technology scientific discipline in addition to it is I-tier (Desktop) Application, doesn’t convey whatever database.
• UFT stores its resources (Shared object repository files, Function library files, Environment variable files etc…) using file format on Hard disk drive.
• UFT has an Integrated VBScript engine to heighten Test scripts.
• UFT has an Integrated MS Access Database engine for conducting information related operations.
• UFT is an Object based Test tool, based on front-end objects it supports Testing operations.
• UFT has 2 types of license, i is Seat License roughly other is Concurrent License.
• UFT industrial plant on MS Windows operating surroundings only. information technology doesn’t back upwardly UNIX operating environment.

Creating Tests / Tests inwards UFT:
UFT supports Two types of Test design,
i) Object Repository based Test pattern (We tin piece of job Either Recording or Keyword driven methodology).
ii) Descriptive Programming or Programmatic Descriptions (We tin piece of job either Static programming or Dynamic programming).
Types of Objects inwards UFT:
We piece of job amongst Four types of objects inwards UFT,
i) Run-Time Objects
ii) Test Objects
iii) Utility Objects
iv) Automation Objects
Types of Steps or statements inwards UFT:
We piece of job dissimilar types of steps/Statements to practise Test scripts inwards UFT,
i) Declarations (Variables in addition to Constants)
ii) Test object statements or Object calls
iii) Utility object statements
iv) Flow Control Statements
v) Checkpoint statements
vi) Action calls, Function calls etc…
Enhancing Tests:
We tin heighten UFT Test scripts by,
i) Inserting checkpoints
ii) Inserting Transaction points
iii) Inserting Output values
iv) Inserting Flow command (Conditional in addition to Loop) statements
v) Parameterization
vi) Synchronization
vii) Using Regular expressions
viii) Using Environment variables
ix) Adding Comments
x) Error Handling Etc…
Running in addition to Debugging Tests:
Debugging Tests:
In UFT Debugging tests is optional,
Whenever Test is non showing whatever errors in addition to non providing right Output in addition to then Debugging is required.
Using VBScript Debug commands in addition to Breakpoints nosotros tin debug Test Scripts.
Running Tests:
We tin run Single Test in addition to Series of Tests.
Using either “Test Batch Runner” Tool or AOM Script or ALM tool nosotros tin execute Series of Tests(Batch Testing).
Define Test Results:
Usually UFT provides Test Result for every exam iteration if nosotros piece of job UFT tool features similar Checkpoints, Output values, Transaction points etc…
If nosotros piece of job our ain logic/VBscript features (Flow command statements etc…) in addition to then nosotros bespeak to define Test Results.
------------------------------------------------------------
Manual Test Case:
Test Case Name:
Verify Login Functionality inwards GcrShop (http://www.gcrit.com/build3/admin/)
Steps / Navigation
i) Launch the Browser in addition to navigate to http://www.gcrit.com/build3/admin/
ii) Enter user name
iii) Enter password
iv) Login Login button
Input Data
User name: admin
Password: admin@123
Expected Result:
Logoff Link existence inwards novel page
Actual Result:
Test Result:
-------------------------
UFT Test Script:
Object Repository based Test:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "http://www.gcrit.com/build3/admin/"
Browser("GCR Shop").Page("GCR Shop").WebEdit("username").Set "admin"
Browser("GCR Shop").Page("GCR Shop").WebEdit("password").SetSecure "567118ca08284845abbb47391bbd3c129776b0ebf7461878"
Browser("GCR Shop").Page("GCR Shop").WebButton("Login").Click
Browser("GCR Shop").Page("GCR Shop_2").Link("Logoff").Check CheckPoint("Logoff")
Descriptive Programming:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "http://www.gcrit.com/build3/admin/"
Browser("CreationTime:=0").Page("title:=GCR Shop").Webedit("name:=username").Set "admin"
Browser("CreationTime:=0").Page("title:=GCR Shop").Webedit("name:=password").SetSecure "5667a5518162f85e4cacb42801141a12b87c19162edf81ca"
Browser("CreationTime:=0").Page("title:=GCR Shop").WebButton("name:=Login").Click
If Browser("CreationTime:=0").Page("title:=GCR Shop_2").Link("Logoff").Exist(10) Then
Reporter.ReportEvent micPass, "Result", "Login Successful"
Else
Reporter.ReportEvent micPass, "Result", "Login Failed"
End If
------------------------------------
UFT 12.51 New Features
UFT Step past times Step Tutorials (Videos)
Sumber http://www.gcreddy.com/
Introduction to UFT tool:
• Unified Functional Testing (formerly QuickTest Professional) is a Functional in addition to Regression Test Tool for Testing Windows based Client/ Server Applications, Web Applications in addition to Mobile (Native in addition to Hybrid) Applications.
• UFT was developed inwards .NET technology scientific discipline in addition to it is I-tier (Desktop) Application, doesn’t convey whatever database.
• UFT stores its resources (Shared object repository files, Function library files, Environment variable files etc…) using file format on Hard disk drive.
• UFT has an Integrated VBScript engine to heighten Test scripts.
• UFT has an Integrated MS Access Database engine for conducting information related operations.
• UFT is an Object based Test tool, based on front-end objects it supports Testing operations.
• UFT has 2 types of license, i is Seat License roughly other is Concurrent License.
• UFT industrial plant on MS Windows operating surroundings only. information technology doesn’t back upwardly UNIX operating environment.
Creating Tests / Tests inwards UFT:
UFT supports Two types of Test design,
i) Object Repository based Test pattern (We tin piece of job Either Recording or Keyword driven methodology).
ii) Descriptive Programming or Programmatic Descriptions (We tin piece of job either Static programming or Dynamic programming).
Types of Objects inwards UFT:
We piece of job amongst Four types of objects inwards UFT,
i) Run-Time Objects
ii) Test Objects
iii) Utility Objects
iv) Automation Objects
Types of Steps or statements inwards UFT:
We piece of job dissimilar types of steps/Statements to practise Test scripts inwards UFT,
i) Declarations (Variables in addition to Constants)
ii) Test object statements or Object calls
iii) Utility object statements
iv) Flow Control Statements
v) Checkpoint statements
vi) Action calls, Function calls etc…
Enhancing Tests:
We tin heighten UFT Test scripts by,
i) Inserting checkpoints
ii) Inserting Transaction points
iii) Inserting Output values
iv) Inserting Flow command (Conditional in addition to Loop) statements
v) Parameterization
vi) Synchronization
vii) Using Regular expressions
viii) Using Environment variables
ix) Adding Comments
x) Error Handling Etc…
Running in addition to Debugging Tests:
Debugging Tests:
In UFT Debugging tests is optional,
Whenever Test is non showing whatever errors in addition to non providing right Output in addition to then Debugging is required.
Using VBScript Debug commands in addition to Breakpoints nosotros tin debug Test Scripts.
Running Tests:
We tin run Single Test in addition to Series of Tests.
Using either “Test Batch Runner” Tool or AOM Script or ALM tool nosotros tin execute Series of Tests(Batch Testing).
Define Test Results:
Usually UFT provides Test Result for every exam iteration if nosotros piece of job UFT tool features similar Checkpoints, Output values, Transaction points etc…
If nosotros piece of job our ain logic/VBscript features (Flow command statements etc…) in addition to then nosotros bespeak to define Test Results.
------------------------------------------------------------
Manual Test Case:
Test Case Name:
Verify Login Functionality inwards GcrShop (http://www.gcrit.com/build3/admin/)
Steps / Navigation
i) Launch the Browser in addition to navigate to http://www.gcrit.com/build3/admin/
ii) Enter user name
iii) Enter password
iv) Login Login button
Input Data
User name: admin
Password: admin@123
Expected Result:
Logoff Link existence inwards novel page
Actual Result:
Test Result:
-------------------------
UFT Test Script:
Object Repository based Test:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "http://www.gcrit.com/build3/admin/"
Browser("GCR Shop").Page("GCR Shop").WebEdit("username").Set "admin"
Browser("GCR Shop").Page("GCR Shop").WebEdit("password").SetSecure "567118ca08284845abbb47391bbd3c129776b0ebf7461878"
Browser("GCR Shop").Page("GCR Shop").WebButton("Login").Click
Browser("GCR Shop").Page("GCR Shop_2").Link("Logoff").Check CheckPoint("Logoff")
Descriptive Programming:
SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "http://www.gcrit.com/build3/admin/"
Browser("CreationTime:=0").Page("title:=GCR Shop").Webedit("name:=username").Set "admin"
Browser("CreationTime:=0").Page("title:=GCR Shop").Webedit("name:=password").SetSecure "5667a5518162f85e4cacb42801141a12b87c19162edf81ca"
Browser("CreationTime:=0").Page("title:=GCR Shop").WebButton("name:=Login").Click
If Browser("CreationTime:=0").Page("title:=GCR Shop_2").Link("Logoff").Exist(10) Then
Reporter.ReportEvent micPass, "Result", "Login Successful"
Else
Reporter.ReportEvent micPass, "Result", "Login Failed"
End If
------------------------------------
UFT 12.51 New Features
UFT Step past times Step Tutorials (Videos)