Saving and Loading dictionary objects to/from XML


Recently while implementing a resume feature in my QTP scripts, I realized a need to be able to export the run state of my script to a XML file and then load it later during resume. To store any data pertaining to the script we use Dictionary objects. The easiest way to store data is using XML files. I am sharing two method that I wrote for the same

Usage:

Dictionary Loaded from XML File

Dictionary Loaded from XML File

Generated XML File:

Have questions related to this article? Want to request a new article? Use our forums to post your questions


  1. Suscribe to Email

    Enter your email address:

    Delivered by FeedBurner