Wednesday, February 16, 2011

QTP Advanced Questions

1)      Write a program to find the x and y coordinates of a button
2)      Write a program to Read items in a list box
3)      Write a program to Read items on a desktop
4)      Write a program to Capture Desktop Screen shot
5)      Write a program to check whether edit box is enabled or writable
6)      Write a program to Check whether country contains all the states
7)      Write a program to Check whether edit box is focused
8)      Write a program to Check default selection in a list box
9)      Write a program to capture webbutton image
10)  Write a program to List all links in the web page
11)  Write a program to Check whether given link exists or not
12)  Write a program to find image width and Height
13)  Write a program to Print URL displayed in the address bar
14)  Write a program to check whether webpage downloaded completely
15)  Write a program to refresh a web page
16)  Write a program to Verify page title is displayed correctly
17)  Write a program to Verify whether page contains frames
18)  Write a program to find page load time
19)  Write a program to Check given text is displayed on the web page
20)  Write a program to find whether image contains tool tip
21)  Write a program to invoke the Browser with specified URL
22)  Write a program to Import an excel file to a Data table
23)  Write a program to Read data from first parameter of Global sheet
24)  Write a program to Read data from all sheets and all parameters of the excel file
25)  Write a program to place data in a specific Cell in the excel file
26)  Write a program to Import data to data table from a database
27)  Write a program to Read and display data from CSV file
28)  Write a program to Find number of rows and columns in a web table
29)  Write a program to Display entire data in the web table
30)  Write a program to Display all images in the webpage
31)  Write a program to Find the background colour of a webobject
32)  Write a program to Print results in a HTML format
33)  Write a program to Select different radio buttons for different script iterations
34)  Write function to compare two bitmaps
35)  Write a program to Add and Remove Repositories to the action
36)  Write a program to Load Library files
37)  Write a program to enable and Disable Recovery scenarios programmatically
38)  Write a program to Report Results status to Results file
39)  Write a program to List out the windows that are open
40)  Write a program to call reusable actions from different script
41)  Write your own standard checkpoint
42)  Write your own synchronization function
43)  Write a program to Read menu names
44)  Write a program to Read menu items
45)  Write a program to Check whether a check button is selected or not
46)  Write a program to Check whether we can select multiple items in the listbox
47)  Write a program to Check whether edit box allows exactly 15 characters
48)  Write a program to Find which add-ins are loaded.
49)  Write a program to find available add-ins in the tool
50)  Write a program to find whether specified window is there on the desktop
51)  Write a program to check whether a window is in minimized or maximized
52)  Write a program to Read all elements in the XML file
53)  Write a program to Read attributes of a particular element in the XML file
54)  Write a program to Display complete contents of an XML file
55)  Write a program to find font type.
56)  Write a program to Find Font size
57)  Write a program to Check whether text is bold and underlined
58)  Write a program to Modify Mandatory and Assistive properties programmatically
59)  Write a program to Configure Run options programmatically
60)  Write a program to Define test results location through program
61)  Write a program to Read and Update data from user defined environmental variable
62)  Write a program to read and delete cookies
63)  Write a program to Check whether links pointing to correct URL
64)  Write a program to invoke the application
65) Write a program to find the maximum text length that can be entered in a edit box
66)  Write a program to verify min and max length constraints of text in an edit box
67)  Write a program to add objects to object repository file
68)  Write a program to print all button object names in a page

1 comment:

  1. Hi Veerender,
    thanks for the QTP Advanced Questions .If you give the answers then it will be more useful.
    QTPbook

    ReplyDelete