Professional Documents
Culture Documents
QTP Tutorials
QTP Scripts
Interview Questions -
Software Testing
Descriptive Programming
in QTP
QTP Recordings
http://qtp.blogspot.in/2009/11/qtp-webtable-object.html 1/7
5/8/2018 QTP Tutorials & Interview Questions: QTP WebTable Object
page objects in descriptive programming
Capturing Background also. If you run the above line on the
Color in QTP
example table, it will take a screenshot of
the WebTable and save it as a .png file in
Object Hierarchy in QTP
Sample Pictures folder.
QTP Function Libraries
Check Method
QTP GetTOProperties,
GetROProperty Checks whether the actual value of an item
matches the expected value. As an
QTP History
example
Software Test Automation
Questions
Make sure that both IE with that table and
QTP are open .
Software Testing Click record.
Templates Go to Insert (Menu) -> Checkpoint->
Standard Checkpoint.
Online QTP Training Course Click on checkbox (QTP checkbox). Make
sure you click on checkbox and not on text
Verification & Validation
"QTP".
Questions
Object Selection: Checkpoint Properties
Database Testing - Tips & Window opens with "WebCheckBox: team"
Resources highlighted. Click OK.
Checkpoint Properties window opens.
Resume - How To Uncheck all checkboxes except "Checked".
Click OK.
Negative Testing Examples
Click Stop in order to stop recording.
SDLC Methods &
Methodologies
It recorded this below line :
Browser("Browser").Page("Page").WebChe
Object Repository ckBox("team").Check CheckPoint("team")
Interview Questions
And I changed it to:
Testing in Agile a=
Browser("Browser").Page("Page").WebChe
Defect Tracking Tools
ckBox("name:=team").Check
Reviewed
(CheckPoint("team"))
Game Testing - Tips & msgbox a
Resources
Now you can run the above two lines and
Data Driven Framework - see the value of a. If the QTP checkbox is
An Example checked it will show True else False.
Keyword Driven
Above you can use Descriptive
Framework - Functional
Programming for all objects also. I have
21 Test Management Tools used Descriptive Programming only for
Reviewed WebCheckBox object.
Set a =
Browser("Browser").Page("Page").WebTabl
e("html tag:=TABLE").ChildItem(2, 1,
"WebCheckBox", 0)
a.click
ChildItemCount Method
http://qtp.blogspot.in/2009/11/qtp-webtable-object.html 2/7
5/8/2018 QTP Tutorials & Interview Questions: QTP WebTable Object
a=Browser("Browser").Page("Page").WebT
able("html
tag:=TABLE").ChildItemCount(2, 1,
"WebCheckbox")
msgbox a
ChildObjects Method
Set a =
Browser("Browser").Page("Page").WebTabl
e("html tag:=TABLE").ChildObjects
msgbox a.count
Click Method
Browser("Browser").Page("Page").WebTabl
e("html
tag:=TABLE").WebCheckBox("name:=tea
m").Click
ColumnCount Method
msgbox
(Browser("Browser").Page("Page").WebTab
le("html tag:=TABLE").ColumnCount(2))
FireEvent Method
Browser("Browser").Page("Page").WebTabl
e("html
tag:=TABLE").WebCheckBox("name:=tea
m").FireEvent "onclick"
GetCellData Method
msgbox
(Browser("Browser").Page("Page").WebTab
le("html tag:=TABLE").GetCellData(1,1))
GetROProperty Method
msgbox
Browser("Browser").Page("Page").WebTabl
http://qtp.blogspot.in/2009/11/qtp-webtable-object.html 3/7
5/8/2018 QTP Tutorials & Interview Questions: QTP WebTable Object
e("html
tag:=TABLE").WebCheckBox("name:=tea
m").GetROProperty("Checked")
GetRowWithCellText Method
msgbox
Browser("Browser").Page("Page").WebTabl
e("html
tag:=TABLE").GetRowWithCellText("Hello")
GetTOProperties Method
Set a=
Browser("Browser").Page("Page").WebTabl
e("html
tag:=TABLE").WebCheckBox("name:=tea
m").GetTOProperties
msgbox a.count
GetTOProperty Method
msgbox
Browser("Browser").Page("Page").WebTabl
e("html
tag:=TABLE").WebCheckBox("name:=tea
m").GetTOProperty("name")
Output Method
http://qtp.blogspot.in/2009/11/qtp-webtable-object.html 4/7
5/8/2018 QTP Tutorials & Interview Questions: QTP WebTable Object
Click on checkbox (QTP checkbox). Make
sure you click on checkbox and not on text
"QTP".
Object Selection: Output Value Properties
Window opens with "WebCheckBox: team"
highlighted. Click OK.
Output Value Properties window opens.
Uncheck all checkboxes except "Checked".
Click OK.
Click Stop in order to stop recording.
RowCount Method
msgbox
Browser("Browser").Page("Page").WebTabl
e("html tag:=TABLE").RowCount
ToString Method
a=Browser("Browser").Page("Page").WebC
heckBox("name:=team").ToString
msgbox a
http://qtp.blogspot.in/2009/11/qtp-webtable-object.html 5/7
5/8/2018 QTP Tutorials & Interview Questions: QTP WebTable Object
WaitProperty Method
Understand WaitProperty.
Submit Method
Browser("name:=Welcome: Mercury
Tours").Page("title:=Welcome: Mercury
Tours").Image("alt:=Sign-In").Submit
SetTOProperty Method
Exist Property
a=Browser("Browser").Page("Page").WebC
heckBox("name:=team").Exist
If a="True" Then
msgbox "True"
else
msgbox "False"
End If
msgbox a
Object Property
set
a=Browser("Browser").Page("Page").WebC
heckBox("name:=team").Object
a.click
http://qtp.blogspot.in/2009/11/qtp-webtable-object.html 6/7
5/8/2018 QTP Tutorials & Interview Questions: QTP WebTable Object
Newer Post Home Older Post
Powered by Blogger.
http://qtp.blogspot.in/2009/11/qtp-webtable-object.html 7/7