How to browse through all the properties of a properties collection?
QuickTest Professional (QTP) Questions and Answers
(Continued from previous question...)
How to browse through all the properties of a properties collection?
Two ways
1st:
For each desc in obj_ChkDesc
Name=desc.Name
Value=desc.Value
RE = desc.regularexpression
Next
2nd:
For i=0 to obj_ChkDesc.count - 1
Name= obj_ChkDesc(i).Name
Value= obj_ChkDesc(i).Value
RE = obj_ChkDesc(i).regularexpression
Next
(Continued on next question...)
Other Interview Questions
|