Friday, 7 March 2014

Not able to record the Script in VUGEN

Problem  detail:  


We are getting the error message as "failed to create a dialog box" and "failed to create an object", when we open the VUGEN and because of this we are not able to record the application.


Problem Solution:   1. Make sure that all running LoadRunner processes (including the Controller, VuGen, Analysis and the LoadRunner Agent Process/Service) are not running.
2. Back up any existing scripts that may have been saved in the LoadRunner installation folder. (The scripts are sometimes saved in a "scripts" subdirectory under the LoadRunner installation folder.)
3. Run the uninstall program from the LoadRunner / Service Test program group (or) use the Windows Add/Remove Programs from the Control Panel. If any prompt is given about removing shared files, remove all the shared DLLs that are reported as they are no longer in use. In the very rare instance this causes a problem for some other application it may be necessary to reinstall that other application. This is not generally a problem because every application should have registered which DLLs it needs to run.
4. Reboot the machine after the Uninstall wizard is complete. This will complete the basic uninstall procedure.
5. Delete all LoadRunner folders (including the ones in the Startup menu for the Agent Process).
6. Do a search for the following files and remove them from all locations -- they will be replaced during the reinstall.
a. wlrun.*
b. vugen.*
7. Open the registry editor (Start >Run >regedit).
8. Delete the following keys:
HKEY_CURRENT_USER\Software\Mercury Interactive
HKEY_LOCAL_MACHINE\Software\Mercury Interactive
9. Empty the Recycle Bin.
Now install LoadRunner according to the installer guide included with the install media.