Wednesday, 6 July 2011

What are Virtual objects and how to work with them in QTP?


Virtual Objects:
Mapping unrecognized object to a standard object is called as Virtual object. This can be done as follows
Navigation:

Tools Menu -->Virtual Objects --> New Virtual Object -->Click Next -->Select Standard class to Map --> Click next -->Click on Mark Object -->Mark the object using cursor -->Click Next -->Click Next -->Enter Name of the Object and collection -->Click Finish
Enable Virtual Objects to recognize during recording:
Go to Tools Menu --> Click Options -->Click General --> uncheck “Disable Virtual objects during recording” -->Click Apply --> Click “OK”

No comments:

Post a comment