More
Next Blog
Create Blog
Sign In
PAGES
HOME QTP JMETER PERFORMANCE WEB /Miscellaneous SELENIUM
SEARCH......
Search
FOLLOW BY EMAIL
Email address... Submit
BLOG ARCHIVE
2012 (7) 2011 (42) December (2) October (2) September (2) August (1) July (3) June (12) May (10) QTP does not record the application Close All Browsers Except OLD One QTP VB Handle Popup Dialog window in Browser QTP
testeverythingqtp.blogspot.in/2011/05/dictionary-object-in-qtp.html
Compare bitmap file using QTP ( using Mercury.File... Execute() and Eval() statements in QTP Dictionary Object in QTP Launch QTP by VB Script Date Time Functions In Visual Basic / QTP Create ZiP file VB QTP / UnZip file VB QTP Scroll the page using QTP / Scroll bar handling April (10)
Dim objDict REM Create dictionary object Set objDict=CreateObject("Scripting.Dictionary") Following are the methods available with the Dictionary Objects: Add Method,Exists Method, Items Method, Keys Method, Remove Method, RemoveAll Method REM Adding keys and corresponding items. objDict.Add Company, TEST objDict.Add Name, Rajiv objDict.Add Blog, QTP
Using Exists Method to check whether the key 'Company' exists? If objDict.Exists(Company) Then msgbox Specified key exists.
SUBSCRIBE ME
Posts
Comments Retrieve ALL items and keys respectively from inside dictionary object.
POPULAR POSTS
Get cell data from webtable / QTP Select the row in WEBTABLE/WEBGRID using QTP/DOM QTP Mercury DeviceReplay vs SendKeys/ Right click mouse Use Send Key Method QTP VB QTP is not recording the web application Use Regular Expressions QTP
REM Get the items. allItems = objDict.Items REM Get the keys. allkeys= objDict.Keys REM Iterate the array. For x = 0 To objDict.Count-1 msgbox allItems(x) & : & allkeys(x) Next Using Remove method objDict.Remove("Company") Now it will return false because we have deleted the key. msgbox objDict.Exists(Company) Using Remove all method to clear the dictionary REM Clear the dictionary.
testeverythingqtp.blogspot.in/2011/05/dictionary-object-in-qtp.html
2/6
Get Text Location / ClickOnText QTP VB Validation of Sorting in WEBTABLE / QTP VB Get All Web page text ( Including All Webelement ) Get Column Names of WebTable using QTP
objDict.RemoveAll
P O S T ED B Y R A J I V K UM A R NA NDV A NI A T SA TU RDA Y, M A Y 2 1 , 2 0 1 1
NO CO M M ENT S : P O S T A CO M M ENT
VIEWS
6 6 5 9 9
LABELS
ADODB.Connection ADODB.Recordset (1) Array (1) (1)
LI NKS TO THI S P OS T Create a Link Newer Post Subscribe to: Post Comments (Atom) Home Older Post
Automation (1) Automation Tips (1) Basic UNIX Commands (1) Brow ser (1) Brow ser count (1) Checkbox (1) ChildItem (1)
ChildObject (2)
Custom
CreateObject (3)
(2) Date .Time
(1)
Date
Dev iceReplay
Obj ect (1) disable add-ons pop-up (1) DOS (1) Ev al (1) Execute (1)
Files FSO
Text (1)
(2) (2)
FileSystemObject (3)
Function
(1)
(2)
Get
Location
GetCellData
GetRow WithCellText (1) Jmeter (1) Launch QTP obj ect (1) (1) (1)
ObjectRepository
Obj ectSpy (1)
(2)
QTP (2)
(1)
QTP 11
(1) 3/6
(3)
RegExp
Registry
testeverythingqtp.blogspot.in/2011/05/dictionary-object-in-qtp.html
RegularExpression (2)
Right (1)
Selenium
SendKeys (3)
(4)
Sorting (1)
SSLCertificates (1) Threads (1) Time (1) VB Script (1) VBScript (1) Vi Linux Editor (1) Visual Relation
Webdriver
(1)
(2)
Webdriv er2
(1) w ebpage
AMAZON SEARCHBOX
testeverythingqtp.blogspot.in/2011/05/dictionary-object-in-qtp.html
4/6
Dasarathan
S ubhransu
H arsha
A mmu
V imal
M ajeed
S udhakar
Krishna
Home QTP JMETER PERFORMANCE WEB /Miscellaneous SELENIUM RA JIV K UMA R NA NDV A NI. P OW E RE D B Y BLOGGER .
testeverythingqtp.blogspot.in/2011/05/dictionary-object-in-qtp.html
5/6
testeverythingqtp.blogspot.in/2011/05/dictionary-object-in-qtp.html
6/6