Yes we can use dictionary globally. We can define dictionary object in an external library file and after associating that library file to our test we can access dictionary object across all the actions. Its pretty simple, just what we need to do is define a dictionary object in a notepad. Save is with the extension .vbs and associate that particular file in our test. Now we can perform any operation on dictionary object in any of the actions and it will be visible across all the actions. It means if we add the any item in action1 we can retrieve the value of that item from Action2. It now acts as an global object. Dictionary object is kind of associated array used by QTP. So by this method we can also define global variables which can be used across all the scripts.
No comments:
Post a Comment