QTP Quick summary:
Automation Frameworks
- Record and Playback.(Records application flow using QTP and playback)
- Data driven. (Data controls the automation flow through a spreadsheet/datatable)
- Keyword driven. (Functions are mapped to Keywords)
- Hybrid approach (Combination of Keyword and data driven)
- Business process testing(BPT)
- Functional Decomposition
Types of QTP Licenses
- Seat
- Concurrent
How to record/playback
- Open QTP/UFT
- Click on File > New Test
- Click on the ‘Record’ button
- Perform actions on the application under test
- Click ‘Stop’ at the end of Recording session
Types of QTP/UFT Add-ins
- Activex Controls
- Web
- Visual Basic
- Java Add-in 8.2
- Terminal Emulator for mainframe
- .NET
- Oracle
- SAP Solutions
- PeopleSoft
- Siebel
- Web Services
- Etc
What is Record and Run Settings
- Record and Run Settings window will be triggered right after the recording started for a new Test or an existing test.
- user can see tabs based on the loaded Add-in
- user can provide Application under test input criteria (like url, application path etc)
What are the various Recording Modes
There are 3 recording modes available
- Standard Recording: this is used for normal recording to capture user operations on the application.
- Analog Recording: this will record the exact mouse and keyboard operations.
- Low level Recording: this will record the mouse movements with respect to the coordinates on the AUT (application under test) Window.
What is Expert View
- Shows the every user actions done on the application in the form of codes.
Active Screen view
- Every code generated after recording will show corresponding application screen on Active screen window. This will help tracking the code vs application objects.
Actions in QTP:
It’s the recorded set of codes which are logically meaningful to the application flow. E.g Customer creation flow.
Types of actions in QTP:
- Non-reusable Action – action that can be called only in the test where it is stored, and can be used only once.
- Reusable Action – action that can be called from any QTP/UFT test
- External Action – reusable action stored with another QTP/UFT test. External actions are read-only.
Object Repository in QTP/UFT:
- QTP stores the recorded object details in a specific location in the tool named the ‘Object Repository’
- Browser – page – Objects are stored in a hierarchal manner.
- Every object will have some listed set of methods as e.g button can perform Click using QTP codes.