UFT
...
Duration
22 hoursCourse Price
$ 299.004.5 (23)
AutomationTraining4u is a leading training and consultancy group which impart knowledge on the particular program with the best trainers in IT having more than 10+ years of experience. We focus on real time based training & practical knowledge.
Training with Automation Training4U will benefit on the following ways in one’s career:
UFT is Licenesed Automation Testing tool from HP Vendor. It is a Function and regression
test automation tool.
We use UFT because it Supports light weighted Scripting language vbscript, for issues we have vendor support and more secured for some of domains likes BFSI, HLS etc. It works on Windows mainly.
Data-driven testing works by creating test scripts to read test data and output from data files. it does not use the identical hard-coded values for every test runs. This allows the testers to test how the application takes care of various inputs.
The steps to connect to a database in QTP/UFT are-
QTP is used in Automation testing for the following reason:
A hybrid framework in QTP is a combination of Data Driven Framework (DDF) and Keyword Driven Framework (KDF) which allows the user to run several test cases with numerous inputs in the same test.
QTP supports the following environments:
|
|
|
Action split means to divide an existing action into two parts. The purpose of action split is to divide actions based on their functionality to improve code re-use.
Foremost you will select Java Add - In and launch QTP. Next step record operations on the Java Tree. If you face an issue while recording, you can select Tools > Object Identification > Java, tree object and make changes in mandatory and assistive properties to enable identification.
QTP identifies any GUI Object based on its corresponding properties. While recording, QTP will identify and store peculiar properties (as defined in the Object Identification settings) in the object repository of the GUI object . At run-time, QTP will compare the stored property values with the on-screen properties, to uniquely identify the GUI object
Creates and returns a reference to an Automation object
SYNTAX: CreateObject(servername.typename [, location])
Arguments
servername: Required. The name of the application providing the object.
typename : Required. The type or class of the object to create.
location : Optional. The name of the network server where the object is to be created.
Example : Set IE = CreateObject("InternetExplorer.Application")
Object Spy helps in determining the run & test time object properties. It also determines methods of the application under test. One can access object spy directly from the toolbar or from the Object Repository Dialog Box.It is very useful during Descriptive Programming.
Generally, an object and its properties must be recorded in the Object Repository to enable QTP to perform actions on it. But when we use descriptive programming, you do not store the object and its property values in the Object repository but mention the property value pair directly in the script.
It is not to bypass the object repository but to help recognize dynamic objects.
Environment variables in QTP are of three types:
1) Built-in (Read only)
2) User-defined Internal (Read only)
3) User-defined External (Read/Write)
You Set the Environment Variable using the following syntax
Environment.Value( "name") = "Guru99"
You can Retrieve the Environment Variable using following syntax
Environment.Value("name") -- This will retrun name as Guru99
Environment.Value("OS") -- This will return your system OS
Quick Test testing process (QTP) consists of 6 main phases:
1) Create your test plan - This is preparatory phase in which you identify the exact test steps, test data and expected results for your automated test. You also identify the environment and system configurations required to create and run your QTP Tests.
2) Recording a session on your application – In this phase, you will execute test steps one by one on your AUT, and QTP will automatically record corresponding VB script statements for each step performed.
3) Enhancing your test - In this stage you will insert checkpoints, output values, parameterization, programming logic like if…else loops to enhance the logic of your test script.
4) Replay & Debug - After enhancing your test, you will need to replay the script to check whether it is working properly and debug if necessary.
5) Run your Tests - In this phase you will perform the actual execution of your Test Script.
6) Analyzing the test results - Once test run is complete, you will analyze the results in the Test Fusion report generated.
7) Reporting defects - Any incidents identified needs to be reported. If you are using Quality Center , defects can be automatically raised for failed tests in QTP.
We can test input domain by using Conditional statements and some built-in functions.
UFT has 2 types of License
i) Seat License
ii) Concurrent License
UFT stores it’s resources using File format on Hard disk (File System).
It is an interface between QTP script and the Application.Quick Test stores all its objects information in Object Repository so that it can identify them later.
No, we can’t merge Object repository files with each other.
Parameterization is executing the same operation many times with different Input data.
Trigger Events are the events that interrupt you in your run session.
The various types of Trigger Events in QTP are:
i) Pop-Up window
ii) Object State
iii) Test Run Error
iv) Application Crash
Yes. We can do Batch testing in QTP by selecting the tests to be included in batch and running them. To add tests to batch the navigation is:
Start -> Programs ->QTP ->Tools->Test Batch Runner -> Add
In Keyword view, keep your cursor at a step and click on
Insert -> Step -> Report
Select the status from the list box, name the message and give the message to be displayed in the details box.
C:\ Program Files\ Mercury Interactive\ Quick Test Professional\ Tests
In order to data-driven, we need to parameterize. That is we have to make the constant value as a parameter so that in each interaction(cycle) it takes a value that is supplied in a run-time data table.
Through parameterization only we can drive a transaction (action) with different sets of data. You know running the script with the same set of data several times is not suggested, and it's also of no use.
To connect to the database:
a) connection string of your server
b) username
c) password
d) DNS name
The following example explains how to read registry key in UFT
‘Create a shell object
Set MyShell= CreateObject (“WScript.Shell”)
Read the value of key from the registry
RegValue =MyShell.RegRead (varpathofkey)
'in above function we have to pass the path of key in registery’.
e.g. HKCU\software\ie\settings
msgbox RegValue
To send mail from outlook in UFT,
Set Outlook = CreateObject ("Outlook.Application")
Dim Message 'As Outlook.MailItem
Set Message = Outlook.CreateItem(olMailItem)
With Message
.Subject = Subject
.HTMLBody = TextBody
.Recipients.Add (aTo)
Const olOriginator = 0
.Send
End With