Micro Focus QTP (UFT) Forums

Full Version: tests pre or post actions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

is there any way to add before test or after test actions (reloading test environment such as cookies cleaning for browser, database content reloading, ...) in order to have persistant conditions. or does it mean to add QTP action at test begin and/or test end in each QTP test

regards,
For a given script initial and final condition should be the same if you want to iterate over it. The tasks that you mentioned can always be done with the help of a ini file (or may be as a first action) using commands like WebUtil.DeleteCookies and ADODB for database.