Saturday 9 November 2013

Key Elements of QTP



a) Add in Mangager
b) Test Pane
c) Active Screen
d) Data Table
e) Debug Viewer
f) Information Pane
g) Missing Resources pane
h) QTP Commands



a) Add-In Manager

list of available Add-in our organization. we can select more than Add in. if we select any unnecasary options, its not a problem. but its reduce tool performance.


b) Test Pane

Area which we generate Edit/ View the executable statements.

Test - one or more Actions to perform a task/tasks

Action - Set of statements to perform a task /tasks . Actions ar reusable and equalant feature for functions.

Statement/Step/Instruction - its minimal executable unit.

But using colon(:), we can combine the two statement.

Ex 1:  msgbox "QTP" : msgbox "vb script"

This example have two statement in single line by using comma.

Using underscore (_), we can split the statement into two lines.


Ex 2 : msgbox _
    QTP

This example have two line but single statement.



Test pane have two views

-> Keyword view - Test in GUI format.

-> Expert View - Test in vb script format.



c) Active Screen

Its capture and holds the screen shot for every user operation on AUT(Application Under Test).

Advantage - we can easily undestand the script by screenshot
disadvantage - Its occupy the more memory space. so tool peromance will reduce.


View -> Active Screen

follow below method if we dont want capture screen shot in Active screen

View -> Options -> Active screen -> Default level -> reduce the capture level


d) Data Table

View -> Datatable

Its integrated spreadsheet for data related operations.Each and every test have one Data Table. Its have two type of sheets

-> Global - its common for all Actions

-> Action -> Each and every Action have seperate Actions.

have two type of datatable

-> Design time datatable (QTP Main window)
-> Run time datatable (QTP Result window)

Usage of Datatable

1) Enter test data directly into datatable and connect to the test
2) Import data from external file (Excel,Notepad) and connect to the test ( Rightclick -> File -> Import from file)
3  Import data from database and connect to the test ( Rightclick -> Sheet -> Import -> from database)



e) Debug Viewer

if the test is not provide the correct result or the test is not run fine, that time we need Debug viewer.

view -> Debug Viewer

Its used to debug tests with help of Vb script Debug commends.


f) Information Pane

View - Information

Its shows syntax Error automatically while save the test.


g) Missing Resources pane

Its showing missing resources which we are attached file in test.


h) QTP Commands

Record
Run
Stop

its available in Menu bar, Tool bar and use short cut keys.



QTP Tools Menus (10)


1) File Menu:

Create New test

save test in QC/ALM

QC = Quality Center, Another name of QC is ALM (Application lifecylcle management)

Export test to ZIP file.

Import test from ZIP file.

Settings - we can associate External Resource file into QTP except Object Repository.

No comments:

Post a Comment