Showing posts with label UFT. Show all posts
Showing posts with label UFT. Show all posts

Thursday, February 19, 2015

UFT Trouble Shooting

1.3 Trouble shoot UFT:

if u already installed Trail UFT 11.5 on VMWare with previous date, don't update the current version UFT 12.0.

if u date back the vmware with UFT 11.5 then also not installed the UFT 12.0Don't Install like this:

if u already installed Trail UFT 11.5 on VMWare with previous date, don't update the current version UFT 12.0.

if u date back the vmware with UFT 11.5 then also not installed the UFT 12.0.
better to go to OS snapshot without any QTP or UFT then freshly install the UFT 12.0.



if u want to update previous version with previous date working 11.5, then go to that previous date working UFT 11.5 then open this version put like that and try to install the UFT 12.0. If it is working fine then take the snapshot in the VMWare or any Virtual Machine. 

UFT Introduction


1. UFT Introduction

1) What is the Difference QTP & UFT?
    UFT 11.5 = QTP GUI + API (Service Test)
1.1. QT and Flex Applications can supported for Testing.
1.2. Run Step feature for API Testing
          
1.3. Insight Recording - Image based recording / Image based object identification.
        1.  
       2.  
1.4. Enhanced Debugging Features:
Limited current QTP debugging capabilities are. On top of that, debugging is one of the most important parts of creating a script—which is why you’ll be happy to know that the debugger in UFT has been greatly enhanced.
              
The following panes have been added and enhanced:
Call Stack               
– allows you to view info about the methods and functions that are currently in the call stack.
Loaded Modules      
– For API tests, this pane allows you to view info on .dlls that are loaded and executed in API test runs.
Threads     
– For API tests–allows you to view info about threads currently running as part of the run session.
Local Variables Pane
– allows you to view all the current values and types of variables in their current context.
Console Pane         
– When debugging a script, this pane allows you to run lines of VBScript (for GUI tests) and C# code (for API tests) in your suspended run session.
Watch
– When debugging, this pane allows you to view the current values ad types of selected variables, properties, and VBScript of C# expressions in a test’s suspended run session.
Debug pane            
– enables you to view the current values and types of variables, properties, and VBScript or C# in a test’s suspended run session.
1.5. Unified IDE
1. In previous releases, HP had separate products for functional testing. 
QuickTest Professional (QTP) was used for testing GUI applications, and Service Test was for testing non-GUI technologies. 
Unified functional Testing (UFT) combines both products and features a frontend that merges the separate tools into one common user interface.

When creating a new test script in UFT, the user is now given a choice between creating either a GUI Test (formerly known as QTP) or API Test (formerly known as Service Test).

UFT also allows the user (with a proper license for each piece) to integrate steps from GUI, API and LoadRunner into one test script. The ability to call and pass data from one test type to another enables the user to create true end-to-end testing solutions.
2.The new IDE also allows you to open multiple tests and libraries at the same time. This is destined to be a huge time saver, especially for QTP engineers that have created action-based frameworks.
       


2) What is API or Service Test? Give an Example.

In previous releases HP had separate products for functional testing. 
QuickTest Professional (QTP) was used for testing GUI applications, and Service Test was for testing non-GUI technologies. 
HP’s latest test tool release — Unified functional Testing (UFT) — combines both products and features a frontend that merges the separate tools into one common user interface.

When creating a new test script in UFT, the user is given a choice between creating either a GUI Test (Formally known as QTP) or API Test (Formally known as Service Test).




3) Which environments are supported by UFT?

Ans: 1. Default Environments supported ActiveX, Web, VB
purchased Environments like Java, .Net, Web Services, Oracle
Latest Add-in Supported QT(Qutopia) from UFT 11.
       2. UFT supported to test the Windows and Macintosh OS based applications.
           We can able to install the UFT on Windows and Macintosh Machines.




What's New in UFT 12.00

Unified Functional Testing expands its integration with the complete set of HP’s testing solutions and presents new features and enhancements for greater usability, productivity, and technology support:


New Installation: UFT now has a smaller and faster installation package that can run without the need to deactivate the User Account Control.


Multilanguage installation: You can now install UFT in your operating system language without the need to install a separate language pack.


Connect to ALM using external authentication: You can now use external authentication, such as CAC (Common Access Card), to connect to ALM in place of the standard model of each user manually entering a user name and password.


Optional uploading of run results to ALM: Instead of manually adding run results to your ALM project, you can instruct UFT to automatically upload them by setting an ALM site parameter.


UFT has also expanded the list of supported technologies:


New support for testing Safari on a Remote Mac (Technology Preview) 

Support for the latest versions of each of the browsers: Internet Explorer, Firefox, and Chrome

New and enhanced support for additional desktop technologies: Delphi X2, Stingray 11, and Flex


Enhanced SAP support: Web Dynpro ABAP for Netweaver 7.31


New Testing Extensibility support for Visual Studio 2010 and 2012


QTP 12 New Featueres:  


* New improved IDE with IntelliSense for classes

* Multiple Document Interface (MDI) features for opening multiple tests within QTP
* Integration of BPT as well as Service Test into QTP (giving rise to the name, UFT)
* Insight — an innovative, new image-recognition feature for carrying out image-based automation
* New canvas for designing test flow

UFT Software Download

1.1 UFT Software Download

1. go to www.hp.com -> click the Softwares
2. click the free & trail softwares / A-Z softwares
3. see right side latest releases. click the required software -> click next
4. click next --> fill the form with Evaluate option --> click next
5. click I Agree <button> for terms and condition to download the software
6. click on required Download link. Better to Download using HP Download Manager without breaks. if not install already ask to install first Download Manager.

Note: if u have already hppassport login using that also download the HP Softwares. Better to do the hppassport login first then try to download Hawlet Packard Software's.

UFT Installation

1.2 UFT 12.02 Installation: (from QTP 11.5 on wards call it as Unified Functional Testing)

Server System Configuration:  Windows Server 2012 / Win Ser 2008 R2 sp1
Client System Configuration:   Windows 7 / 8 / 8.1 / Windows Vistha or above

Product Availability Matrix (PAM)- UFT 12 supports new versions of technologies, like:
  • Operation System: Win 8, Win 8.1 (tech preview), Windows server 2012
  • Browsers: IE11, Chrome till version 33, FF till version 27, Safari 6, 6.1, 7
  • Others: .Net 4.5, Delphi XE2, Stingray 11.1, Web Dynprop ABAP for NW 7.31
Note: if u run with ALM better to take server system configuration environment.

1. UFT Setup <click>

2. Select the below check boxes:
    I Accept                   <select this check box>
    Create Desktop icon  <select this check box>

3. Select the Required Add-Ins to test that add-in type application :
    .Net Add-in
    .Oracle Add-in
    .SAP
    .Stingrey 
    .Java

Note: under above sub add-ins also select (right mark), bydefault .Net, .Java, .wpf Add-ins given

4. Select the below check boxes for UFT Settings @ installation:
    1. Configure IE Settings                                           <select this check box>
    2. Configure DCOM Settings for ALM                          <select this check box>
    3. Configure DCOM Settings for Automation Script     
    4. Download and Install MS Script Debugger               <select this check box>

Note: by default above 3 optioned already selected the check boxes accept 3 if u want select this otherwise, better to click Next 

    -After this if already install the UFT 11.5 that version files removed old files with components and copy new files and add the requred components ( 454 / 387 ) with that and install the present version.
    -At this time remove the old uft desktop icon and after install the new uft icon on the desktop if u select the create desktop icon option while install

5. Select the below check boxes for complete the uft installation:
    Open Readme file       <select this check box if required>
    Open Installaton Log  <select this check box if required>
    Manually restart later
                  Yes   No

Note: Read me file open on IE 

Monday, February 16, 2015

UFT FAQ's

 Note: These FAQ's from UFT 11.5 on-wards (only for UFT FAQ's here)

UFT FAQ's


VBScript FAQ's

1) Explain 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 RegValue5


2) What are the ways in UFT to get system environment variables in UFT?


There are three ways to get system environment variables in UFT


2.1 Use the WSH shell object


  • Use WMI’s Win32_Environment Class
  • Read variables from the registry

Set myShell = CreateObject (“WScript.Shell”)
WScript.Echo myShell.ExpandEnvironmentStrings( "%PATHEXT%" )
myShell=Nothing

The output will be

.BAT; .CMD;.VBS; .VBE; .JS; .JSE

2.2 Other user variable, like TEMP, overwrite their system counterpart


Set myShell = CreateObject( "WScript.Shell" )

WScript.Echo myShell.ExpandEnvironmentStrings( "TEMP=%TEMP%" )
myShell=Nothing

The output will be 

TEMP:C:\DOCUME~1\You\LOCALS~1\Temp

2.3 By using the UFT Tool Method we get


Environment.Value("Dir")           -> get the QTP Result Directory path

Environment.Value("OS")           -> get the OS Name
Environment.Value("LocalHost") -> get the Local host name

3) Mention the steps required in UFT to send mail from outlook?

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

4) Explain how you can fetch data from database in UFT?


To fetch data from database in UFT, you have to follow the code below


Set db= createobject (“ADODB.Connection”)

db.Open “Provider=Microsoft.Jet.OLEDB.4.0;Data Source=G:\guru99\vb6\admission_project.mdb;
Persist Security Info= False”
Set rst=createobject(“ADODB.Recordset”)
rst.Open “select*from Course”, db, 3
id=rst. RecordCount
For i=0 to id-1
Print rst.field (0) & rst.fields (1) & rst.fields (2) & rst.fields (3)
rst.Movenext
Next

5) What are the codes we can use to get files from ftp server in UFT?


To get ftp files from ftp server, you have to use below code


a)      put- To store single file on server

b)      get- To download single file from ftp server
c)       mget- To download multiple files from server
d)      mput- To store multiple files on server
e)      delete- To delete files on ftp server

MyShell.Run "%comspec% /c FTP -n -s:" & commandstoworkwithftp & " " & Site, 0,True


6) In UFT how you can prevent the system from getting locked?


To prevent system getting locked, any of the two ways can be used


I.  Create a simple vbs file having code to press numlock key and run that vbs file


II. Edit one registry key "DisableLockWorkstation =1" to disable locking



Saturday, May 24, 2014

Home

Courses Offered:  I. Testing Tools (Manual & Automation Testing),
                     
I. Testing Tools - Manual Testing Syllabus:

No of Classes: 20 Hours (Daily 1 to 2 Hours - 15 days)

1. Software Models:
    SDLC (Software Development Life Cycle),
    V-Model,
      .Refinement form of V-Model
    Waterfall Model,
    Agile Model
      .Scrum Methodology    

2. Different Type of Testing Definitions in Software 
3. Software Testing Life Cycle (STLC),
4. Writing the Test Cases (with Real time examples) ****
5. Bug Life Cycle,

6. Metrics & Matrix

7. Quality Standards: 
    ISO, 
    CMM, 
    Six Sigma ....etc

II. Testing Tools - Automation Testing Syllabus:

Automation Tools: (5 Tools)
Functional Testing Tool: Quick Test Professional 11.0
Test Management Tool: Quality Center 11.0
Jaws
Magic
Dragon


QTP, QC Training
QTP 11.0 – Scripting Oriented

No of Classes: 56 Hours (Daily 1 to 2 Hours - 1 month)

Prerequisites:
a) Software Manual Testing Concepts, Test Cases Practice
b) Programming Fundamentals
c) Database Fundamentals (Basic SQL Queries)
*****************************************************
Day 1: Introduction, Recording & Running
Day 2: Key Elements of QTP,  QTP Testing Process
Day 3: Test Object Model, Types of Statements
Day 4: Object Repository & Descriptive Programming
Day 5: Check Points & Output Values
Day 6: Adding Comments, Synchronization
Day 7: Inserting Transaction Points, Parameterization
Day 8: Environment Variables, Actions
** VB Script **
Day 9: Introduction, Comments, Variables
Day 10: Operators, Constants
Day 11: Flow Control Statements
Day 12: Procedures / Functions
Day 13: Built-In Functions
Day 14: User Defined Functions
Day 15: File System Operations
Day 16: Excel Object Model
Day 17: Database Object Model
Day 18: GUI Scripting
Day 19: Web Scripting Examples
Day 20: Object Identification Configuration
Day 21: Regular Expression
Day 22: Automation Object Model
Day 23: Debugging Tests, Batch Testing
Day 24: Recovery Scenarios
Day 25: VB Script Other Objects
Day 26: Error Handling
Day 27: Automation Frame Works:
      v  Data Driven Testing
      v Keyword Driven Testing
      v Hybrid Driven Testing
Day 28: Quality Center

Quality Center 10.0 Contents:
  • Integrating QTP with Quality Center
  • Executing the Automation Test Cases from Quality Center
  • Execute the Manual Test Cases from QC
  • How to Import the Test Cases from Excel to Quality Center


III. C-Language Syllabus:

Introduction to the C Language,
Data Types and Variables,
Input / Output Statements,
Control-flow Statements,
Functions,
Arrays,
Pointers
Strings
Structures
Unions
Files
Command-line arguments


IV. MS-Office 2013 Syllabus:
MS-Word
MS-Excel
MS-Power Point
MS-Access

V. Computer Fundamentals & Internet Syllabus:
Introduction of Computers
Computer Generations
Block Diagram of Computers
Input Devices
Output Devices
I/O Devices
Memory
CPU
Secondary Storage Devices

Internet Concepts:
Introduction of Internet.
About Browser Software's
Mail Creation & Sending & Forwarding mails including CC, BCC
Blogger Creation, Word Press Creation
Explanation about Google, Yahoo, Rediffmails
Face Book Creation, Chating though Google, FaceBook
Skype Using
Sharing the Desktops


 Batch Schedule:

  Feb 4th 2014
CourseBatch TypeDurationStarting DateBatch TimingsCourse Fees:
Testing Tools:
Manual Testing
Daily /
Week-End /
Week-Days
15 Days
Contact:

Register Now
Functional Testing 
Tool:
(Automation Testing):
QTP
Daily /
Week-End /
Week-Days
30 Days
(Fast Track Available)
May / 2014Contact:

Only 
Rs:3,500/- 
Test Management Tool:
(ALM) Application Life
Cycle Management
Daily /
Week-End /
Week-Days
7 DaysMay / 2014Contact:
45
Only 
Rs: 1,500/-
MS-Office 2007


Contact:
45
Register Now
Computer Fundamentals
& Internet



Contact:
45
Register Now
Testing Tools:
Automation Testing:
Jaws, Magic, Dragon







Note: Week-End Batches & Fast Track also Available for Testing Tools.

Online / Offline also Available 
(contact through contact form)

Featured Post

How To Change Width & Height of Blogger's Top Menu Bar