Dec 15, 2014

UFT Vs Selenium

UFT Videos Link

UFT versus Selenium

UFT
Selenium

1) UFT is a Single Tool supports Test Automation.
Selenium is a suite of Tools, supports Test Automation.
2) Unified Functional Testing is a Vendor Tool, Vendor is HP.
Selenium is an Open source software released under Apache 2.0 License (Free to use)
3) UFT Supports Test Automation for Desktop applications and Web Applications.
Selenium Supports Test Automation for Web Applications only.
4) UFT supports VBScript for applying programming features to Tests.
Selenium supports Java, C#, Perl, Python, Ruby and PHP to enhance Tests.
5) Automation cost is expensive due to license cost.
Since it is Open source software, Automation cost is inexpensive.
6) Since It is Vendor Tool, we can get reliable technical support from the vendor (HP).
Since it is Open source software there is no reliable Technical support.
7) UFT is user friendly, Tests can be developed quickly.
Tests require more time to develop and maintain.
8) Tests can be easily execute on latest version of UFT Tool also.
Tests need to be updated due to new API changes in latest versions.
9) UFT integrates with ALM / Quality center (Test management Tool).
There is no tool that integrates with Selenium.
10) New features will work properly and Knowledge sharing is easy.
New Features may not work properly and Knowledge sharing is difficult.
11) UFT supports Windows operating environment only.
It doesn't support other operating environments like UNIX and Mac.
Selenium supports Windows, UNIX and Mac operating environments.
12) Image based tests are easy in UFT.
Image based Tests are possible but difficult.
13) UFT uses more hardware resources.
Selenium uses less hardware resources.
14) UFT has authorized Certification program. 
 There is no authorized Certification Program.

HP UFT (Formerly QTP) is a single Tool and VBScript engine integrated.
Selenium is Suite of Tools (Selenium IDE, Selenium RC, WebDriver and Selenium Grid).

Dec 13, 2014

UFT Interview Questions and Answers

UFT Interview Questions and Answers

1) What is UFT?

Unified Functional Testing is a Functional and Regression Test Tool from HP.

2) What is the difference between QTP and UFT?
 

•    UFT is an advanced version of QTP
•    UFT = QTP + Service Tools
•    QTP Supports GUI testing only, but UFT Supports GUI and API testing.

3) Explain about the UFT Product?
 

•    UFT Tool developed in .NET technology
•    UFT is I-Tier Application or desktop application, it doesn’t have any database.
•    UFT stores its resource using file format on hard disk.
•    UFT has an integrated VBScript engine for enhancing tests using programming features
•    UFT has MS Access database engine for Database operations
•    UFT is an object based Test tool, based on front-end objects only it supports Test operations.

4) What are the types of UFT License?
 

UFT has 2 types of License,
•    Seat License
•    Concurrent License

5) Does UFT support UNIX Operating environment?   
 

UFT doesn’t support UNIX operating environment, supports Windows environment only.

6) How UFT supports Database Testing?
 

Using MS Access Database engine and VBScript Database objects.

7) What is Add in?
 

General meaning an additional component, UFT point of view Environment compatibility software.

8) What type of Add ins available for UFT?
 

Two types of Add ins:

a) Internal Add ins

•    Standard Windows (Built-in)
•    Activex
•    Visual Basic
•    Web

b) External Add ins

•    Java
•    .NET for windows forms
•    .NET for Web forms
•    WPF
•    SAP for GUI
•    SAP for Web
•    Siebel
•    Peoplesoft
•    Power Builder
•    Delphi
•    Stingray
•    Smalltalk
•    TE
•    Oracle
•    Web services
•    Silverlight

9) What is UFT Test Process?

UFT Test process has six phases
a)    Test Planning
b)    Generating Basic Tests
c)    Enhancing Tests
d)    Debugging and Running Tests
e)    Analyzing Test Results
f)    Reporting Defects.

10) What are the important tasks in Test Planning phase?
 

•    Get Environment (UI Design Technology and Database) Details from Development Team and select appropriate Add ins
•    Analyze the AUT in terms of Object Identification
•    Select Test cases for Automation
•    Tool settings Configuration and Globalize
•    Automation Framework Implementation (Optional)How to design Tests in UFT?

11) How to enhance Tests in UFT?
 

Using UFT Tool features like Checkpoints, Output values, Transaction points, synchronization points etc…
And Using VBScript features like Flow control statements, Functions, Automation objects etc…

12) How to Run or Executes Tests in UFT?
 

Using Run command we execute a single test, and using Test Batch Runner Tool we can execute Test batches.

13) How to debug Tests in UFT?
 

Using Debug Commands and breakpoints.

14) How to define Test Results in UFT?
 

Using Reporter Utility Object

15) What is Object Repository?
 

It is a storage place for storing Test objects information.

16) What is Recording?
 

It is process of generating steps for every user operation on UFT, simultaneously storing objects information into Object Repository.

17) What is Descriptive programming?
 

Enter or Provide Objects information directly into statements is called Descriptive programming.

18) What are the types of Descriptive Programming?
 

Two types of Descriptive programming,

a)    Static Programming
b)    Dynamic Programming

19) What is Dynamic Descriptive Programming?
 

Creating description objects and generating Tests using Description objects is called Dynamic descriptive programming.

20) What is Step Generator?
 

It is a library of functions and Utility objects used to generate recordable and Non-recordable steps.

21) What is Data Table?
 

It is an integrated spread sheet to perform data related operations.

22) What is Parameterization?
 

Replacing constant values with parameters

23) What is Data driven Testing?
 

Repeat Tests using multiple sets of Test Data

24) Why Data Driven Testing?
 

For Positive and Negative Testing.

25) What is Checkpoint?
 

It is a verification point, takes expected result from the User, compares with actual results and provides Test Result.

26) What is Output value?
 

It captures Output during execution and stores into Run-time Data table.

27) What is the purpose of Inserting transaction points?
 

To measure a Test Transaction Time or part of the Test transaction Time.

28) How to work with files in UFT?
 

Using VBScript File System Text stream objects

29) How to work with Excel files?
 

Using Excel Application Object

30) What is Object Identification Configuration?
 

Configuring objects using some important properties information.

31) What is Virtual Object Configuration?
 

It is process of making an area or user defined object as virtual object.

Dec 12, 2014

Software Testing Interview Questions

Software Testing Interview Questions
 

1) What is Software Testing?

Testing is the process of evaluating a system or its component(s) with the intent to find that whether it satisfies the specified requirements or not.

2) What is Manual Testing?

Testing Computer Software manually without using any automated tool or any script

3) What is Test Automation?

Test Automation is a process in which software Test tools execute pre-scripted tests on a software application.
 

4) What is SDLC?

It is a Systematic approach to develop Software Applications.

5) What are the important SDLC models that available in the IT industry?
 

•    Waterfall Mode
•    V Model
•    Spiral Model
•    Agile Models etc…

6) What is STLC?
 

Software Testing Life Cycle (STLC) defines the steps or stages or phases in Software testing. There is no fixed standard of STLC in the world, it may vary from one company to another.

7) What are the phases of STLC or Software Test Process?
 

•    Test Planning
•    Test Design
•    Test Execution
•    Evaluating the exit criteria and Test Closure.

8) What is Test Level? 


A Group of Test activities that are organized and managed together.

9) What are the Test Levels in Software Development?
 

•    Unit Testing
•    Integration Testing
•    System Testing
•    Acceptance Testing

10) Who are the Testers in Unit Testing Level?
Developers

11) Who are the Testers in System Testing Level?
Independent Testers

12) Who are the Testers of Acceptance Testing Level?
End Users

13) What is Test Type?
A Group of Test Activities aimed at testing a component or system focused on a specific objective.

14) What are the different types of Test Types in Software Testing?
•    Functional Testing
•    Performance Testing
•    Usability Testing Etc…

15) What are the types of Test design methodologies in Software Testing?

•    White box Test design
•    Black box Test Design
•    Experience based

16) What are the important White box test design techniques?
Statement Testing
Condition Testing
Decision Testing etc…

17) What are the important Black box test design techniques?
Equalent Classes
Boundary Value Analysis
Decision Tables
State Transition Testing
Use case Testing etc…

18) What are the important Documents that can be produced during Testing?
Test Plan
Test Case
Test Data
Defect Report
Test Summary report etc…

19) What are Import Standards for Software Testing?

ISO
IEEE
CMM/CMMI


20) Can we use Manual Testing for all Types of Testing?

No, Performance Testing is impractical using Manual Testing methods. 

21) What are the important tasks in Software Testing?

•    Understanding Requirements
•    Test Design
•    Test Execution
•    Defect Reporting and Tracking
•    Conformation Testing

UFT Test Process Part 2

UFT Test Process Part 2 , Types of Objects in UFT , Types of Statements in UFT Test
-----------------------------------------
c) Word Application Object

It is used to perform word application operations

Class value for creating Word Application Object- (“Word.Application”)
-------------------
d) Database Connection Object

It is used to connect to Databases

Note: Connection string only varies from one Database to another

Class value for creating Database Connection Object- ("Adodb.Connection")
-------------------
e) Database Recordset object


It is used to perform operations on Database Tables

 Class value for creating Database Recordset Object- ("Adodb.Recordset")
-------------------
f) Dictionary object

It is used to define Key, Value Pairs.

Class value for creating Dictionary Object- ("Scripting.Dictionary")
-------------------------------------------------
14) Error Handling (VBScript, UFT)

Handling expected and unexpected Errors

Expected Error: Whenever we use invalid input then we can expect errors

Scenarios for Unexpected Errors:
Resource Response
Availability of Resource
Insufficient Resource

    Using Conditional statements
    Using Built -in functions
    Using Option explicit statement
    Using On Error Resume Next
    Using Exit Statement
    Recovery Scenarios (UFT)
-------------------------------------------------------
4th Phase of UFT Test Process
-------------------------------
IV) Running and Debugging Tests

Running Tests:

    Step by Step (Using Debug Commands)
    Single Test Run (Using Run Command)
    Batch Testing
        Using "Test Batch Runner" Tool
        Using AOM Script ("QuickTest.Application")
        Using Driver Script
        Using ALM Tool
Debugging Tests:

What is debugging?
When debugging is required?
    Test is not showing any errors and Not providing correct output then Debugging is required.

x = a * b

How to debug?
Using vbscript debug commands and breakpoints

Important Debug Commands
Step into (F11)
Step Over (F10)
Step Out (Shift + F11)
Breakpoint (F9)
----------------------------------
5th Phase of UFT Test Process
-------------------------------
V) Analyzing Test Result
----------------------------------------

UFT Result Window

UFT Provides Test Result for every Test iteration if we use UFT Tool features like Checkpoints, Output values, Transaction points etc…

Define Test Result

If we use our own login then we need to define Test Result

Using Reporter Utility Object we can define Test Result

Example:
Dim a, b
a = 100
b = 50

If a > b Then
    Reporter.ReportEvent micPass, "Res1", "A is a Big Number"
    Else
    Reporter.ReportEvent micFail, "Res1", "B is a Big Number"
End If-------------------

Status of Test Result:
-------------------------
Pass
(If Expected = Actual)

Fail
(If Expected <> Actual)

Done
No Verification points, Test executing without Errors

Warning
Interruption during Test Execution.
----------------------------------------------------
6th Phase of UFT Test Process
-------------------------------
VI) Reporting Defects
----------------------
Functional Test Automation        Defect Management
-----------------------------------------------------------
UFT                    Manual
--------------------------------------------------------
UFT                    Bugzilla/Jira
--------------------------------------------------------
UFT                    ALM
--------------------------------------------------------
Note: By integrating UFT with ALM, we can send defects directly from UFT Result window to ALM Project.
---------------------------------------------
Types of Objects in UFT Test Automation
---------------------------------------------
We work with Four types of objects in UFT Test Automation

1) Run-time Objects

The Objects that present in the Application are called Run-time Objects

States of Run-time objects:

    Enabled Objects
    Disabled Objects
    Focused Objects
    Hidden Objects
    Visible Objects
------------------------------------------------------
b) Test Objects

Reference of Run-time objects are called Test Objects
    Constant Objects
    Dynamic Objects (handle using Regular Expressions)
    Duplicate Objects (Using Index property)

Run-Time Object        windows        VB        Web
-------------------------------------------------------------
Button            WinButton    VbButton    WebButton

Edit box        WinEdit        VbEdit        WebEdit

Browser            NA        NA        Browser

Page            NA        NA        Page

Link            NA        NA        Link
-------------------------------------------------------------------
c) Utility Objects

UFT reserved objects used for Testing and Result Reporting.

Ex:

SystemUtil

Windows based App

SystemUtil.Run "Path of the AUT"


Web based App

SystemUtil.Run "Path of the Browser", "URL"

Ex:

SystemUtil.Run "C:\Program Files\HP\Unified Functional Testing\samples\flight\app\flight4a.exe"

SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "www.google.com"
---------------------------------------------
d) Automation objects

File System Object

Excel Application Object

Word Application Object

Database Connection Object

Database Recordset Object

Dictionary Object
------------------------------------------------
Types of Statements in UFT Test / Test Script
------------------------------------------------

1) Object Calls / Test Object Statements

Ex:

Single Test Object

Syntax:

TestObject("ObjectName").Method / Operation

Ex:
Dialog("Login").Activate

Two Test Objects

Syntax:

Parent TestObject("ObjectName").Child TestObject("ObjectName").Method

Dialog("Login").WinButton("Cancel").Click

Three Test Objects

Parent TestObject("ObjectName").Child TestObject("ObjectName").Sub Chid TestObject("ObjectName").Method

Ex:
 Browser("MSN India - News, Cricket,").Page("Google").Link("Gmail").Click

2) Utility Statements
----------------------
SystemUtil.Run "C:\Program Files\HP\Unified Functional Testing\samples\flight_service\HPFlights_Service.exe" @@ hightlight id_;_Browser("MSN India - News, Cricket,").Page("Google").Link("Gmail")_;_script infofile_;_ZIP::ssf6.xml_;_

SystemUtil.Run "C:\Program Files\Internet Explorer\iexplore.exe", "www.gmail.com"


3) Declarations
-----------------
a) Variables

Dim a, b(4), c(), d(4, 5)

a= 10
b(0) = "India"
b(1) =100
b(2) =10.345
b(3) =#10/10/2010#
b(4) =123

d(0, 0) = "VBScript"

b) Constants

Const city ="London", num = 100

4) Flow Control Statements
--------------------------
a) Conditional Statements

Ex:

Dim a, b
a= 100
b= 20

If a > b Then
    Msgbox "A is a Big Number"
    Else
    Msgbox "B is a Big Number"
End If
---------------
b) Loop Statements

For i = 1 To 5 Step 1
    Msgbox i & " Hello UFT"
Next

5) Action Calls, Function Calls
--------------------------------
Ex:

Call Login()

6) Checkpoint Statements
------------------------
Window("Flight Reservation").WinEdit("Tickets:").Check CheckPoint("Tickets:")

7) Output Value Statements
-------------------------
Window("Flight Reservation").WinEdit("Name:").Output CheckPoint("Name:")

8) VBScript Statements
--------------------
Set

Dim

Constant

For

Etc....

9) Automation Objects Statements
--------------------------------
objExcel.Visible = True
objExcel.Workbooks.Add
objExcel.ActiveWorkbook.SaveAs "C:\Users\gcreddy\Desktop\QTP.xls"
----------------------------------------------------------------

UFT Tool Architecture



UFT Tool Architecture
2) Add in Manager

b) UFT Editor

2 views

Editor view - Test in VBScript format

Keyword view - Test in GUI format
---------------

It is an area where we create, View and Edit Tests


Test- One or more Actions to perform tasks

Action - Set of statements to perform tasks

Statement / Step - A minimal executable unit


Msgbox "UFT" : Msgbox "VBScript" - One line, Two statements

--------------------------------------
3) Data Table

View Menu -> Data

It is an integrated spread sheet for Data related operations

It has 2 types sheets

i) Global Sheet - For entire Test

ii) Action sheets / Local Sheets

-----------------------
UFT attaches one data table for every Test

Data Table located in 2 areas

i) Design Time Data Table (In UFT Tool main window)

ii) Run-time Data Table (Result Window)

Usage of Data Table:
---------------------
i) Enter data directly into Data Table and connect to Test

ii) Import data from external files (text/Excel) and connect to Test

iii) Import data from a database and connect to Test
Active Screen

It captures and holds screen shots for every user operation on AUT during Test Recording

Advantage:

    Understanding and Editing Test Scripts

Disadvantage:

    Performance will be reduced during Test execution

Navigation:

    View menu-> Active screen

--------------------------------
4) Errors

It shows syntax errors automatically while saving the Test
------------------------------------------
UFT Commands available in 3 ways

i) As menu items

ii) As Tool bar items

iii) Shortcut keys
---------------------
5) Menus of UFT (Total 12 Menus)

1) File Menu
------------
Create New Test

Open Existing Test

Add Test

Save Test

Close Test

Settings
    Associate Function Library files
    Associate Environment Variables file
    Associate Recovery scenario files

Export Test to Zip format

Import Test from ZIP

Exit
---------------------------------
2) Edit menu
---------------
Redo

Undo

Cut

Copy

Paste

Delete

Format

Code snippet
--------------------------
3) View Menu

Data Table

Active Screen

Errors

Debug

Test Flow

Switch from Editor View to Keyword view and vice versa

Launch Result window
Etc...
---------------------------
4) Search menu

Find

Find Next

Replace

Incremental search

GoTo etc...
------------------------------
5) Design Menu

Create New Action

Call existing Action

Copy Action

Insert Checkpoints

Output values

Transaction points

Function definition generator

Step Generator

Synchronization Point

Etc...
-------------------------------
6) Record

Record

Stop

Analog Recording

Low Level Recording

Insight Recording

Record & Run Settings etc...
------------------------------
7) Run Menu

Run

Stop

Run Modes

Step into

Step over

Step Out

Insert / Remove Break point etc...

-------------------------
8) Resources

Launch Object Repository

Edit Local Objects

Create Shared object Repository

Edit Shared Repositories

Associate Shared Repositories

Create Recovery Scenario

Edit Recovery Scenario
Etc...
------------------------
9) ALM menu

ALM Connection

Check in

Check out

Version History

Baseline history etc...
-------------------------
10) Tools

Object Spy

Object Identification configuration

Regular expression evaluator

Data driver

Virtual objects

Tool options

View options

etc...
-----------------------
11) Window menu

Next window

Previous window

Close all documents
--------------------------
12) Help menu
----------------------
UFT Tool documentation

VBScript documentation

New features information

Test Forums

Technical support

Knowledge

Check for update

UFT product info

UFT License info
-----------------------------------------

Software Test Process
-----------------------------
I) Test Planning

Input / References
-------------------
Requirements

Project Plan

Test Strategy
------------------
Corporate Standards document

Process guidelines doc

Design docs

Prototypes etc...
-------------------
Tasks:
    Understanding and analyzing the Requirements
    Risk Analysis
    Test Strategy implementation
    Test Estimations (Scope of the Project, Time, Available resources, Budget etc...)
    Team formation
    Test Plan documentation
    Configuration Management Planning
    Traceability Matrics
    Define Test Environment Set-up
Output:
Test Plan Document
-------------------------------------
II) Test Design

Input / references

Requirements

Test Plan
------------------
Corporate Standards document

Process guidelines doc

Design docs

Prototypes etc...
-------------------
Test Case Template

Test data template

Tasks:
--------
    Understanding Requirements
    Generate Test Scenarios
    Test Case Documentation
    Test Data Collection

Output:
Test Case documents
Test Data
-------------------------
III) Test Execution
Input / references

Requirements
Test Plan
Test case docs
Test Data
-----------
Defect Report template
-----------
Readiness of AUT
Readiness of Test Environment
-----------------------------------
Tasks:
    Verify Test Environment set-up
    Create Test batches
    Test Execution
        Sanity Testing / smoke / BVT/BAT
        Comprehensive testing
        Defect Reporting
        Defect Tracking
        Sanity Testing
        Regression testing Cycle 1
        Defect Reporting
        Defect Tracking
        Sanity Testing
        Regression testing Cycle 2
        Defect Reporting
        Defect Tracking
        .
        .
        Final Regression
Output:

Opened / Closed Defect Reports
Tested Software

IV) Test Closure
---------------------------
Input:

Requirements
Test Plan
Test case docs
Test data
Opened and closed defect Reports
------------
Test summary Report

Tasks
--------
    Evaluating exit criteria
    Collect all artifacts
    Prepare Test summary Report
    Send Test deliverables to customer
    Improvement suggestions for future projects
---------------------------------------------------

UFT Test Process


UFT Tutorial Part 4 (UFT Test Process) 
I) Test Planning
 a) Get Environment (UI Design Technology and Database)Details from Development Team and select appropriate Add ins

b) Analyze the AUT in terms of Object Identification

c) Select areas / Test cases for Automation
        1) Tests that we have to execute on every build (Sanity Tests)
        2) Tests that we have to execute on every modified build (Regression Tests)
        3) Tests that we have to execute using multiple sets of Test Data (Data Driven Tests)

d) Tool settings Configuration and Globalize
 
e) Automation Framework Implementation (Optional)
 

II) Generate Basic Tests
--------------------------
a) Object Repository based Test Design
    1) Recording
    2) Keyword Driven Methodology

b) Descriptive Programming / Programmatic Descriptions
    1) Static Programming
    2) Dynamic Programming

Hybrid Approach
    High Level (Test Level)
    Low Level (Statement/ Step Level)

Statement

OR                DP
ParentTestObject("ObjectName").ChildTestObject("ObjectName").Method / Operation -Correct Syntax

DP                OR
ParentTestObject("ObjectName").ChildTestObject("ObjectName").Method / Operation -Invalid Correct Syntax

-----------------------------------------------------
III) Enhance Tests

Try to increase the usage of VBScript features
---------------------------------------------
a) VBScript features won’t corrupt

b) VBScript features are faster in execution

c) VBScript logic doesn't have any limitations

d) All VBScript features can be used internally as well as externally
-------------------------------------
1) Inserting Checkpoints (9+3) (UFT)

2) Inserting Output Values (7) (UFT)

3) Parameterization (UFT, VBS)
    What is Parameterization?
    Purpose of Parameterization
    Relation between Parameterization and Data Driven Testing
    Difference between Parameterization and Data Driven Testing
    How to Parameterize?

4) Adding Comments (Optional)

5) Inserting Transaction Points (Start/End) (UFT) / Timer Function

6) Generating Steps using Step Generator

7) Synchronization (UFT, VBS)
    What is Synchronization?
    Why Synchronization?
    When Synchronization is required
    How to Synchronize?

8) Define Test Result
    Define Test Result using Reporter Utility Object

9) Calling Actions, Functions (UFT, VBS)

10) Environment Variables

11) Regular Expressions

It is formula for matching patterns

Constant matching

india.doc - india.doc
---------------------
Pattern Matching

i*.

ia...
ib....
.
.
india.doc

Usage of Regular Expressions in UFT
    To handle Dynamic objects
    For Search operation
------------------------------
12) Inserting Flow Control Statements (VBS)

a) Conditional Statements
    1) If statement
    2) Select Case statement

Purpose of Conditional Statements in UFT

    To insert Verification points
    For Error Handling

Types of Conditions

1) Single Condition

If a > b Then

2) Compound Condition

If a > b And a > c Then

3) Nested Condition

If a > b Then
 If a > c Then
  If a > d Then
------------------------------
Positive Condition

If a > b Then

Negative Condition

If Not a > b Then
------------------------------------
b) Loop Statements
    1) For...Next
    2) While...Wend
    3) Do While / Until...Loop
    4) For Each...Next

13) Using Automation Objects

a) File System Operations
    What is Computer File System?
    Examples for File System Operations
    How end user performs File System Operations
    How to perform automatic File System Operations using VBScript
-----------------------------------
Creating Automation Objects

Set Variable = CreateObject("ClassValue")
------------------------------

Class value for creating File System Object

("Scripting.FileSystemObject")
----------------------------------------------------

b) Excel Application Operations

Excel Application Object

It is used to perform automatic Excel Application Operations

Class value for creating Excel Application Object

("Excel.Application")

c) Word Application Operations

d) Database Operations

i) Database Connection Object

ii) Database Recordset object

e) Dictionary Object
----------------------------------------

Overview on UFT

UFT Tutorial Part 2 (Overview on UFT)
------------------
i) UFT Version History

Astra QuickTest (1.0 to 5.0)

QTP - 5.6 - 2002

6.5 - 2003

8.0 - 2004

8.2 - 2005

9.0 - 2006

9.2 - 2007 --------Mercury Interactive

9.5 - 2008 ------------HP-----------
   
10.00 -2009

11.00 - 2010

UFT 11.5 - 2012

UFT 12.01 Latest version
----------------------------------------------

ii) UFT Product Information

UFT is a Functional and Regression Test Tool

UFT developed in .NET technology

UFT is I-tier Application / Desktop Application

    UFT Resources
        Shared object Repositories
        Function Library files
        Environment Variables files
        Recovery scenario files
        Test Data files etc...
UFT stores its resources using File format on HDD

UFT is an Object based Test Tool

    Software Objects in Windows based Environment:

Window, Dialog box, Button, Radio Button, Edit box, Check box, Drop-down box, List bix, Combo box etc...

    Software Objects in Web based Environment:

Browser, Page, Link, Image, Button, Radio Button, Edit box, Check box, Drop-down box, List bix, Combo box etc...

For Database Testing no front end object reference is required

UFT has MS Access Engine for Database operations and VBScript engine for Scripting

UFT has 2 editors

    UFT Tool Editor view
    Function Library
-----------------------------------
iii) UFT Supporting environments

a) Application Environment

CUI based

Windows based

Web based
----------------------------------
b) Operating Environment

MS Windows

UNIX / Linux/Solaris etc... (Doesn’t)

Client side

MS Windows - 86%

UNIX / Linux/Solaris etc... 10%
-------------------
Server side

MS Windows - 46%

UNIX -46%
---------------------------------------
iv) UFT Add ins
-----------------
Add in

Environment compatible files

a) Internal Add ins
--------------------
    1) Standard Windows (Built-in)
    2) Activex
    3) Visual Basic
    4) Web

-----------------------
b) External Add ins

5) Java

6) .NET for windows forms

7) .NET for Web forms

8) WPF

9) SAP for GUI

10) SAP for Web

11) Siebel

12) Peoplesoft

13) Power Builder

14) Delphi

15) Stingray

16) Smalltalk

17) TE

18) Oracle

19) Web services

20) Silver light
------------------------------------------
How to select Appropriate Add ins?
---------------------------------

3 web based Applications developed using Java technology

1App    2App    3App
-----------------------
Web    Activex    Activex   
    Web    Web
        Java
----------------------------------------
v) UFT License

a) Seat / Node locked

b) Concurrent / Float

------------------------------------------
vi) UFT IDE

has 3 types of features support

a) Direct features

Recording, Object Spy, Checkpoints, Data Table, Step generator, Object Repository etc...

b) Integrate Tools from HP

Password Encoder, Test Batch Runner, Test Results deletion tool etc...

c) Integrate Tools from Others

MS Access Database engine for Database operations

VBScript engine for Scripting

MS Script debugger for debugging Tests
---------------------------------------------

Dec 11, 2014

UFT Tutorial Part 1


UFT Tutorial Part 1 (Overview on Test Automation)

I) Disadvantages of Manual Testing

    a) It takes more time or more resources, sometimes both

    b) Less Accuracy

    c) Some types of Testing is impractical (Ex: Performance Testing)

    d) Human user interaction is mandatory for every Test case execution

    e) Comparing large amount of data is difficult

    f) Data Driven Testing is Difficult

    g) Manual Test Case scope is limited

    h) It is not recommended for time bounded projects

    i) Maintenance Takes more time

    j) Checking GUI objects is difficult
-------------------------------------------------
II) Advantages of Test Automation

a) Fast:

b) Accuracy:

c) Reusable: Sanity Tests, Regression Tests

d) Repeatable: Data Driven Testing

e) Programmable:
   
f) Comprehensive: Batch Testing
------------------------------------------------
III) Disadvantages of Test Automation
-------------------------------
a) 100% Test Automation is not possible

b) All Types of Testing is not possible (Usability Testing)

c) Lack of Knowledge

d) Tools may have their own defects; sometimes we may not get desired benefits

e) Not suitable for short term projects

f) Not recommended for dynamically changing UI designs

g) Technology / Environment Limitations

IV) Types of Test Tools
-------------------------
a) Business Classification

1) Vendor Tools

HP
    WinRunner(Scrapped)
    QTP (Retired)
    UFT (New Launch)
    LoadRunner
    TestDirector(Retired)
    Quality Center / ALM

IBM

    RFT
    RPT

Micro Focus
    SilkTest
    Silk Performer etc....
-------------------------------------
2) Open Source Tools

Selenium,
JMeter,
Bugzilla
Etc...

3) In-house Tools

---------------------------
b) Technical Classification

1) Functional & Regression Test Tools

UFT, RFT, SilkTest, Selenium etc...

2) Performance Test Tools

LoadRunner, RPT, SilKPerformer, JMter etc...
----------------------------------------
3) Test Management Tools

QC/ALM, Jira etc...

4) Defect Management Tools

Bugzilla
--------------------------------------
V) Overview on Functional Testing

Functional Testing -Test Type

System Testing -Test Level

    System Testing

Functional & Non-Functional Testing

    Functional and Unit Testing
    Functional and Integration
    Functional and System Testing
    Functional and Acceptance Testing
   
Coverage of Functional Testing

    a) Input Domain Coverage
Data factors
------------
Type

Size

Range
    b) Output Domain Coverage

    c) Database Testing
        Data Integrity
        Data Manipulations (Add, Edit, Delete)
        Data comparisons
        Data Retrievals
        Data Back-up and Recovery Operations etc...

    d) Error Handling
    e) Order functionalities
-------------------------------------------

UFT Training

UFT Training Videos

UFT Tutorial Part 1 Video
Overview on Test Automation
(Overview on Test Automation Video Tutorial explains Disadvantages of Manual Testing, Advantages of Test Automation, Disadvantages of Test Automation, Types of Test Tools and Functional testing.)
------------------------------------------------------------------------ UFT Tutorial Part 2 Video 
Overview on UFT Tool
(Overview on UFT Tool explains UFT Product Information, Version History, UFT License information, UFT supporting Environments, UFT Add ins and UFT IDE (Integrated development Environment).
------------------------------------------------------------------------
UFT Tutorial Part 3 Video 
a) UFT Tool Architecture
(UFT Tool Window Architecture Video explains Key elements of UFT like UFT Tool Editor, Data Table, Active screen, and all menus of UFT from File menu to Help menu. It also explains UFT IDE (Integrated Development environment).) 
b) Software Test Process
(Software Test Process Video explains all phases of Software Test Process like Test Planning, Test Design, Test Execution and Test Closure. It also explains UFT Test Planning phase.)
------------------------------------------------------------------------
UFT Tutorial Part 4 Video
(UFT Test Process Tutorial explains UFT Test planning, Test Design and Enhancing Tests phases in UFT Test Process. It explains all test design methods like Recording, Descriptive programming and Test enhancing methods like Checkpoints, Output values, VBScript flow control statements etc...)
------------------------------------------------------------------------
UFT Tutorial Part 5 Video
(UFT Test Process phases Running and Debugging Tests, Analyzing Test Results and Reporting Defects.
Types of Objects in UFT Test Automation, Run time objects, Test objects, Utility Objects and Automation Objects.
Types of statements in UFT Test, Test object statements, Utility statements Flow control statements, and Function calls etc...)

------------------------------------------------------------------------
 

Dec 10, 2014

HP ALM Introduction

HP ALM (Application Life Cycle Management)

It is a Test Management Tool from HP.

ALM Supports:

•    Requirements Management
•    Test Design
•    Test execution
•    Defect management
•    Traceability
•    Integration with other Tools like UFT and LoadRunner.

ALM Tool Version History:

i) TestDirector (1.0 to 8.0) Versions

C++
MS Access
---------
SQL Server
Oracle
Sybase
---------------
ii) Quality Center (8.0 to 11.00)

J2EE
MS SQL Server
JBoss
----------
Oracle
-------------
iii) ALM 11.5

ALM 12.01 (Latest Version)
---------------------------
UFT and ALM Integration
---------------------------
a) Stand-alone Environment
--------------
UFT Installation

ALM Installation

UFT Add in for ALM
----------------------
b) Intranet Environment

Server side:

ALM Installation
--------------------------
Client side:

UFT Installation

ALM Client version Installation

UFT Add in for ALM
--------------------------
ALM Supports:

Stand alone environment

Intranet environment

Internet environment

for sharing resources as well as services.
------------------------------------------
In case of UFT
UFT can share Resources only.

UFT Tool Resources                   
------------------------------
Shared object Repository file
Function Library file
Environment Variables file
Etc...
-------------------
UFT Tool Services
--------------------
Recording
Data Table
Step generator etc...
--------------------------------
ALM doesn't have any programming interface

ALM has Database engine to support SQL Commands

It has Command Line interface, we can execute SQL Commands

ALM supports all types software Applications by default.

ALM is only for Documentation and generating Reports, it doesn't interact with software Applications

ALM Add ins
-------------
a) MS Word

b) MS Excel

To import data from File system to ALM Project

Three things can be imported:

a) Requirements

b) Tests

c) Defects
----------------
Usage of ALM
--------------
i) Functional Testing (Manual) + Test Management (ALM)

ii) Some Functional Testing (Manual) + Some Functional Testing (UFT) + Test Management (ALM)

iii) Some Functional Testing (Manual) + Some Functional Testing (UFT) + Performance Testing (LoadRunner) + Test Management (ALM)

iv) Functional Testing (Manual) + Performance Testing (LoadRunner) + Test Management (ALM)

etc...
--------------------
UFT Tool can be accessed by Testers and Customers

ALM can be accessed by Development Team, Testing Team, BA and Customers etc...
-----------------------------------
Users of ALM (Testing Team)

i) Site Admin for handling all ALM projects

ii) Project Admin (Test Lead) to handle one or more projects

iii) General User (Tester) to work with one or more projects
-------------------------------------------
ALM has 2 interfaces

I) Site Admin / Server side

II) ALM / Client side interface
---------------------------------
Import features in Site Admin:

a) Create / delete Domains

b) Create / Edit / Delete Projects

c) Create / Edit / Delete Users

d) Assign users to projects

e) Track project status
------------------------
ALM Interface
---------------
a) Requirements
    Create/Edit/Delete Requirements and Child requirements
    Import Requirements from file System using either MS Word or Excel format.

b) Test Plan (It is an area where we create Manual and Automated Tests)
    Create/Edit/Delete Manual Tests
    Create/Edit/Delete Automation Tests(* Using Automation Tool)
    Import Tests from file System using either MS Word or Excel format.
    Map Tests with Requirements

c) Test Lab (It is an area where we execute Manual and Automated Tests)
    Create Test Batches
    Execute Manual Test batches or Tests
    Execute Automated Tests
   
d) Defects
    Post Defects
    Track Defects
    Import defects directly from UFT Result window
    Import Defects from file System using either MS Word or Excel format.