QTP Tutorial PDF Version Quick Guide Resources Job Search Discussion HP Q uick T est P rofessional (QTP), an automated functional testing tool that helps testers to perform automated regression testing in order to identify any gaps, errors/defects in contrary to the actual/desired results of the application under test. Mar 16, 2016 HP Quality Center (QC) / Application LifeCycle Management - 12.5 Overview Session 1. We are Houston, TX based IT consultancy and we are offering Training &.
Today we are publishing part one of a multi-part guest post series on Micro Focus Quick Test Professional (QTP). In this multi-part QTP training series we'll be covering all QTP tutorials and concepts in detail with adequate illustrations. Our expert author Swati S. will be helping us to bring this series for our readers.
These QTP tutorials are designed for beginners to advanced users. Starting from QTP basics you will learn advanced scripting all with practical examples for your easy understanding.
NOTE: Below text tutorials are enough for you to get started learning on QTP automation tool. But if you are interested in hands-on LIVE QTP training please check our comprehensive QTP online course by the experienced professionals. Click on below image to view more details about this course.
Also Check Our Online QTP Training Course Here:
Considering the big list of these QTP tutorials, we'll be publishing new articles frequently. Keep track of all articles in this Quick Test Professional Online training series so that you won't miss any topic. Follow the topics closely, practice at home on QTP trial version and ask your questions in respective article comment section. We will make sure all relevant questions get answered.
If you are an expert QTP user please share your experience to improve this QTP training series by discussing advanced QTP concepts and answering readers' questions.
QTP Training Series Tutorials:
QTP Introduction:
- Tutorial #1–Introduction to QuickTest Professional (QTP)
- Tutorial #2 –Working with QTP Keyword View and Expert view
- Tutorial #3 – Adding Standard Steps From Keyword View
- Tutorial #4 – Conditional & Loop Statements in Keyword View
- Tutorial #5 – Moving Steps and Dealing with Breakpoints
- Tutorial #6 – Understanding QTP Record and Run Settings
- Tutorial #7 – How QTP Identify Objects Uniquely?(Must Read)
- Tutorial #8 – Recording Modes, Object Spy and Repositories
Learn VB Scripting:
- Tutorial #9 –VBScript Tutorials – A complete guide
- Tutorial #10 – VBScript Basics to learn QTP – Tutorial 2
QTP Checkpoints:
- Tutorial #11 – Use of Password Encoder and Active Screen
- Tutorial #12 – Expert View, Step Generator and Checkpoints
- Tutorial #13 – Inserting Standard and Image Checkpoint
- Tutorial #14 – Inserting Bitmap and Text Checkpoints in Tests
- Tutorial #15 – Using Text Area, Table, and Page Checkpoints
- Tutorial #16 – XML, Accessibility, and Database Checkpoints
Test Automation Frameworks:
- Tutorial #17 – Automation Frameworks Part-1(Must Read)
- Tutorial #18 – Test Automation Frameworks Part-2
Enhance Your Tests:
- Tutorial #19 – Parameterization in QTP Part-1
- Tutorial #20 – Parameterization in QTP Part-2
- Tutorial #21 – Actions and Function Libraries
- Tutorial #22 – Using QTP Object Repositories
- Tutorial #23 – Smart Object Identification & Test Result Analysis
- Tutorial #24 – Virtual Objects and Recovery Scenarios
- Tutorial #25 – Descriptive Programming
Test Your Understanding:
*****
Here is the first article in this QTP training series – “Introduction to QuickTest Professional (QTP)”
What You Will Learn:
Introduction to QuickTest Professional (QTP)
![Uft Uft](/uploads/1/2/4/8/124800963/681507386.jpg)
What is QTP?
Micro Focus ’s Quick Test Professional (QTP) is a software that facilitates Automation Testing for software applications – Functional and Regression testing to be more specific. QTP comes with a user interface that can be considered an Integrated Development environment (IDE) for the test itself. The IDE has various features that aid the tester to develop a comprehensive script which would successfully validate the purpose of the test. All these features will be discussed in detail as we proceed through the series of these articles.
Some of the important aspects of QTP:
- It uses VB Script as its scripting language. (A scripting language is one that gets interpreted at runtime)
- QTP runs only in a windows environment.
- The current version of QTP is 11.0 (Latest version Unified Functional Testing – UFT 11.5)
- The technologies it supports are Web, Java.Net, SAP, Oracle, Siebel, PeopleSoft, Web Services, and many major languages. Although some of the older versions don’t support all the technologies listed.
How does it work?
The basic test creation method is record and playback. What does this really mean? Let’s talk about ‘Record’ first. When a tester launches QTP and performs a series of operations on the AUT (Application under test) QTP generates lines of code that corresponds to each operation performed. This will be the basic test script. Moving on to ‘Playback’. When the test script created is run, it performs the exact same operations on the AUT thus playing back the sequence of steps already recorded.
E.g.: When I launch QTP and try to access the login page of a web-based email program, I enter the login ID, Password and press the OK button. These actions are recorded in their equivalent VBScript lines of code in the QTP IDE. When I save this test script and play it back, QTP will enter the same login ID, Password I entered before and clicks on the OK button for me.
Now this being the gist of the basic test creation technique, record and playback are not always sufficient to a robust test script. The tester will have to use the other features in the IDE in conjunction with a little bit of his programming skills to achieve the required results.
There are various technical aspects to be taken into consideration before we attempt to record and playback, like the state of the AUT, synchronization, the exact menu options, the exact code that QTP generates etc. We will get to that as soon as we discuss the basic concepts of the tool itself.
Here’s how all this works. QTP identifies the various objects in the AUT by a name or handler ID or any other unique property/properties that the object possesses. During the record phase it captures all these properties and during playback, it performs the desired operations like a mouse click, checkbox checking etc. on these objects.
What will you need to get started with QTP?
A valid QTP license or in the case of a learner a trial version on their computer.
QTP Download: Here is a link to download the QTP trial version: Download Micro Focus Unified Functional Testing (UFT).
In the above link, go to the ‘Trials and Demos’ tab and select the ‘Micro Focus QTP Essentials 11.0 English Evaluation (web GUI Testing only) option’. You can also select the latest version Micro Focus Unified Functional Testing 11.50 CC English SW E-Media Evaluation. Let us know if you want more detailed instructions on downloading and installing QTP trial version on your machine.
There are two kinds of licenses – Seat license and concurrent/floating license. Seat license is for a single machine at one time whereas a current license is for a particular number of concurrent users.
Now that we have some background information about QTP, let’s examine the tool itself starting with the UI.
QTP GUI:
When a test is recorded or created it can be viewed in one of these two views:
- Keyword view: This view is a tabular representation of all the objects and the actions that are performed on them. Every row in the table is a step performed on the AUT and can be modified. Some of the most common columns displayed are item, operation, value and documentation.
- Expert view: As the name indicates, this view is for more technical users who would want to tweak the source code as per their requirements.
Both the views are available simultaneously so the user can switch between them anytime during the test creation or modification.
Let’s record a little something to get started
Step #1): Launch QTP. The first thing that comes up is an Add-in manager. It displays all the add-ins that are available and the user can check or uncheck the ones as needed. Active-X, Web and Visual Basic are available by default. (This feature can be turned off if required).
Step #2) On Clicking OK in the Add-in Manager QTP start page comes up. (click on image to enlarge)
Step #3) On choosing “Record” option (F3 key) the ‘Record and Run settings’ screen comes up with ‘Web’ and ‘Windows Application’ Tabs. Click OK without changing any settings. However, all the features of this screen will be discussed at length later on.
Step #4) For our example, I am going to launch the ‘Flight’ application from the samples that come with QTP. I am going to enter the ‘Agent Name’ and ‘Password’ in the Login screen. Now, let’s examine the code it generates.
The following is the keyword view. As you can see, the actions are in the form of a table with columns: Item, Operation, Value and Documentation. Item corresponds to the object in the AUT on which we performed an action, the operation is the action itself, a value is a data we set the particular object to and documentation is more or less like a description. (click on image to enlarge)
The corresponding keyword view to the same test is as follows. As you can see this view contains the source code for all the actions performed.
Step #5) The code can be manipulated from either of these views.
Conclusion:
Here is a list of everything we discussed in this article:
QTP is a software that aids automated Functional and Regression testing of software applications. The current version runs only in a windows environment and uses VB script as a scripting language. The basic method for creation of a test is Record and Playback, although that’s not always sufficient. It comes with two kinds of licenses, seat and concurrent.
The default add-ins are Active X, Web and Visual Basic. A test can be recorded on a Web or Windows application; the specific details are to be provided in the record and run settings pop-up window. The GUI provides two views, Keyword and Expert. Keyword view is a tabular form that shows details like the name of the objects, its value, and the operation performed etc. Expert view displays the performed actions on the AUT in the form of source code.
Additional operations to be performed on the test objects can be added or deleted either from the Keyword view or programmatically from the Expert view. More details on this in the next article.
About Author: This is Swati and with these articles, I am trying to establish a comprehensive learning experience for QTP beginners. Having worked for more than 4 years on QTP in my overall 8 years of life as QA, I realize that the potential for Automation Testing is immense. I attempt to exercise that very potential collectively with all our readers through these articles.
Want to learn QTP from Experienced Professionals? Join Our Online Training Course:
Please join and share this FREE QTP training series with your friends. Ask your questions in the comments below. Bookmark this page as we'll be updating links to all QTP tutorials from here.
Recommended Reading
Developer(s) | Micro Focus |
---|---|
Stable release | 14.03 / March 2018 |
Operating system | Microsoft Windows |
Type | Test Automation Tools |
License | Proprietary |
Website | [1] |
HPE Unified Functional Testing (UFT) software, formerly known as HP QuickTest Professional (QTP),[1] provides functional and regression test automation for software applications and environments.[2] HPE Unified Functional Testing can be used for enterprise quality assurance.[3]
HPE Unified Functional Testing supports keyword and scripting interfaces and features a graphical user interface.[4] It uses the Visual Basic Scripting Edition (VBScript) scripting language to specify a test procedure, and to manipulate the objects and controls of the application under test.[4]
HPE Unified Functional Testing was originally written by Mercury Interactive and called QuickTest Professional.[5] Mercury Interactive was subsequently acquired by Hewlett Packard(HP) in 2006.[6] HP Unified Functional Testing 11.5 combined HP QuickTest Professional and HP Service Test into a single software package,[7] which was available from the HP Software Division until 2016, when whole division was sold to Micro Focus.[8] The integrated HPE Unified Functional Testing software allows developers to test from a single console all three layers of a program's operations: the interface, the service layer and the database layer.[9]
- 1Description
- 2User interface
- 4QTP/UFT browser support matrix
Description[edit]
HPE Unified Functional Testing is automated testing software designed for testing various software applications and environments. It performs functional and regression testing through a user interface such as a native GUI or web interface.[10] It works by identifying the objects in the application user interface or a web page and performing desired operations (such as mouse clicks or keyboard events); it can also capture object properties like name or handler ID. HPE Unified Functional Testing uses a VBScript scripting language to specify the test procedure and to manipulate the objects and controls of the application under test. To perform more sophisticated actions, users may need to manipulate the underlying VBScript.[11]
Although HPE Unified Functional Testing is usually used for 'UI based' Test Case automation, it also can automate some 'non-UI' based test cases, such as file system operations, database testing or Web services testing.
Exception handling[edit]
HPE Unified Functional Testing manages exception handling using recovery scenarios; the goal is to continue running tests if an unexpected failure occurs.[12] Because HPE Unified Functional Testing hooks into the memory space of the applications being tested, some exceptions may cause HPE Unified Functional Testing to terminate and be unrecoverable.
Data-driven testing[edit]
HPE Unified Functional Testing supports>N/ANoN/AIE v7.00YesYesYesN/ANoN/AIE v8.00Yes with support of QTP_00626YesYesYesYesYesIE v9.00NoYes with support of QTPWEB_00078YesYesYesYesIE v10.00NoNoYes with support of UFT_00044YesYesYesIE v11.00NoNoNoYesYesYesIE v11.0 EPMNoNoNoYes (Other than ActiveX, Silverlight, Flex)Yes (Other than ActiveX, Silverlight, Flex)Yes (Other than ActiveX, Silverlight, Flex)
Versions[edit]
- 5.5: First release: Released in 2001
- 6.0: Released in 2002
- 6.5: Released in 2003
- 7.0: Never released
- 8.0: Released in 2004
- 8.2: Released in 2005
- 9.0: Released in 2007
- 9.1: Released in 2007
- 9.2: Released in 2007
- 9.5: Released in 2008
- 10.0: Released in 2009
- 11.0: Released in 2010
- 11.5: Released in 2012 [renamed Unified Functional Testing][27]
- 11.52: Released in June 2013
- 11.53: Released in November 2013
- 12.0: Released March 2014
- 12.01: Released July 2014
- 12.02: Released December 2014
- 12.50: Released July 2015
- 12.54: Released October 2016
- 14.00: Released January 27, 2017
- 14.01: Released August 18, 2017
- 14.02: Released December 2017
- 14.03: Released March 2018
License models[edit]
HPE Unified Functional Testing is available through single-seat licenses, as well as floating or concurrent licenses.[28] A trial version of the software is also available.[29]
HPE Unified Functional Testing Integration[edit]
HPE Unified Functional Testing and HP Quality Center work together for additional testing capabilities. Users can use HP Quality Center with HPE Unified Functional Testing assets, such as tests, shared object repositories, libraries, recovery scenarios and external data tables.[30]
HP Application Lifecycle Management Integration[edit]
HP Application Lifecycle Management (ALM) enables IT staff in multiple roles to manage activities associated with their core application lifecycle, from requirements through development, testing, defect management and readiness for delivery.[31] The software was tailored to work with a number of HP testing tools including HPE Unified Functional Testing to test for functional defects in the code.[32]
See also[edit]
References[edit]
- ^'HP Unified Functional Testing (UFT 11.5) - QTP's Latest Version - XX - XX'. www.automationrepository.com. Retrieved August 10, 2018.
- ^'HP QuickTest Professional software data sheet'. Retrieved August 10, 2018.
- ^'A complete guide to working on Quality Center with QTP'. Learn QTP. Retrieved January 27, 2011.
- ^ ab'HP Release QTP 10.0'. Automatedtestinginstitute.com. March 7, 2009. Retrieved January 27, 2011.
- ^'Mercury QuickTest Professional (QTP) Evaluation'. Devbistro.com. November 8, 2006. Retrieved January 27, 2011.
- ^'HP Press Release: HP Closes Landmark Mercury Acquisition; Companies Unite to Lead in Business Technology Optimization Software'. Hp.com. Retrieved January 27, 2011.
- ^'HP-UFT 11.50 (Unified Functional Testing)'. selftechy.com. Retrieved August 10, 2018.
- ^QA Financial, How the $8.8 billion HPE — Micro Focus merger will shake up testing, September 23, 2016
- ^Jackson, Joab. 'HP simplifies automated software testing suite'. Retrieved August 10, 2018.
- ^'Software Testing FAQ: GUI Test Drivers'. Testingfaqs.org. Archived from the original on December 21, 2010. Retrieved January 27, 2011.
- ^'QTP with Descriptive programming'. Slideshare.net. Retrieved January 27, 2011.
- ^'Mastering QuickTest Professional (QTP)'. Qtpautomation.com. March 16, 2009. Retrieved January 27, 2011.
- ^'Using Global and Action Data Sheets in QTP ~ Guide to QuickTest Professional 10'. Qtp10.com. July 5, 2009. Retrieved January 27, 2011.
- ^'QuickTest Professional User’s Guide.”
- ^'QTP 10 Tutorial'. Scribd.com. July 8, 2010. Retrieved January 27, 2011.
- ^Software Quality Engineering IT (August 4, 2010). 'Tool info : HP Functional Testing software'. Stickyminds.com. Retrieved January 27, 2011.
- ^'Working with Keyword View in HP QTP - QTP Tutorial 6 ~ Guide to QuickTest Professional 10'. Qtp10.com. July 4, 2009. Retrieved January 27, 2011.
- ^http://www.fdscallcentre.com/homepage/data/mi/DS-0413-020_QTPro6.0.pdf
- ^'Key Differences Between VB and VB Script'. www.htmlgoodies.com. January 23, 2011. Retrieved January 27, 2011.
- ^'HP Functional Testing software System Requirements', 'HP', accessed May 2, 2011.
- ^'HP QuickTest Professional 11.00 Product Availability Matrix', 'HP', October 1, 2010, accessed May 2, 2011.
- ^'Firefox & VBScript • mozillaZine Forums'. forums.mozillazine.org. Retrieved August 10, 2018.
- ^http://social.msdn.microsoft.com/Forums/vstudio/en-US/c55675ba-e3ab-4296-8010-d14fa4fd74ca/migrating-from-qtp-to-microsoft-test-managermtm
- ^'Run QTP script on system without QTP IDE'. www.learnqtp.com. Retrieved August 10, 2018.
- ^Hammant, Paul. 'I think it is time for QTP to die' accessed May 2, 2011.
- ^'Functional Testing software System Requirements - HP - BTO Software'. HP. Retrieved January 27, 2011.
- ^'Discover What is UFT HP's Unified Functional Testing - Test Automation Made Easy: Tools, Tips & Training Awesomeness'. www.joecolantonio.com. Retrieved August 10, 2018.
- ^'Download QTP 10.0 Evaluation ~ Guide to QuickTest Professional 10'. Qtp10.com. April 17, 2009. Retrieved January 27, 2011.
- ^'HP QuickTest Professional software official web page'. Retrieved August 10, 2018.
- ^'HP Quality Center 10.00 integration | HP Enterprise TV: Online Videos and Podcasts'. H30423.www3.hp.com. Retrieved January 27, 2011.
- ^http://www.rubric.co.za/tool-support/hp
- ^http://www.networkworld.com/news/2010/113010-hp-fuses-dev-management-and.html
External links[edit]
Retrieved from 'https://en.wikipedia.org/w/index.php?title=HP_QuickTest_Professional&oldid=879922195'