07-06-2012, 07:50 PM
Dim obj_rep, obj_col, repository_no, obj_count
When I run the above script, only once the obj_count is getting printed. The obj_count for remaining 9 repositories are not printed.
How to overcome this?
Code:
For repository_no = 1 to 10
Set obj_rep = CreateObject("Mercury.ObjectRepositoryUtil")
obj_rep.Load "E:\QTP\user_registration.tsr"
Set obj_col = obj_rep.GetAllObjects()
obj_count = obj_col.Count
Print obj_count
Set obj_col = Nothing
Set obj_rep = Nothing
Next
When I run the above script, only once the obj_count is getting printed. The obj_count for remaining 9 repositories are not printed.
How to overcome this?