+1 vote
in QuickTest Professional (QTP) by

How to create an array of dictionary in UFT?

1 Answer

0 votes
by

We can create an array of dictionary using syntax

Dim ArrayofDictionary(2)

First element of array

Set ArrayofDictionary(0)= createobject("scripting.dictionary")

ArrayofDictionary(0).Add "key1", "temp1"

ArrayofDictionary(0).Add "key2", "temp2"

Added keys in first dictionary

Second element of array as dictionary

Set ArrayofDictionary(1)= createobject("scripting.dictionary")

ArrayofDictionary(1).Add "key1", "temp1"

ArrayofDictionary(1).Add "key2", "temp2"

Added keys in second dictionary…..and so on

Related questions

+1 vote
asked Apr 16, 2020 in QuickTest Professional (QTP) by Robindeniel
+1 vote
asked Apr 13, 2020 in QuickTest Professional (QTP) by rajeshsharma
...