Instructions - Automate - Gen Err V1.0
If you find an error, or have a suggestion for improvement, Email me and I'll fix it.
To use the generator do the following:
Download the script
Save it in a file called GenErr.qfl
Move the file to where you keep your scripts
(typically somewhere like C:\Program Files\HP\QuickTest Professional\Tests )
Run QTP
Open a new test
move to expert view
type
Call GenErr
Add the GenErr.qfl function file as a resource for that test
Save the Test as 'GenErr'
Run the test
Follow the instructions that popup
When the test has finished, for each original script there will now be another version with '_001' on the end of the filename.
You need to manually verify that the new version is ok and then rename them accordingly.
NOTE - You will also need the error handling and logging functions adding to your projects to use this code.