Each QTP Test Object now support two new properties
® TestObjName: Returns the Name of the object in repository.
® In case the object is not from repository and the application is running then it will return the default name that QTP would have given it if added to OR. This name will be enclosed with square brackets [ ]
® In case the object is not from the repository and the application is not running then the micclass of the object enclosed with square brackets [ ]
® TestObjGenType: Returns the generic type of the object. For example text box, list box, table, text label, etc.
These new properties prove very useful for debugging and logging purposes. The TestObjNameproperty gives use the power to regenerate the whole object statement from an object. We created a functionGetObjectSTR in the "Recovery Scenarios" chapter that allowed converting an object to its string definition. Now we enhance that function to include the TestObjName property in the following code:'Function to convert a QTP test object into its string
The TestObjGenType might not be required generally and has no use in the above function.
Using Qtp Help
Qtp Environment Variables
Descriptive Programming (dp)
Debugging In Qtp
Working With Apis
Qtp Automation Object Model
Working With Xml
Working With Databases
Working With Microsoft Excel
Working With Microsoft Outlook
Working With Microsoft Word
Working With Microsoft Internet Explorer
Working With Hp Quality Center
Working With .net Classes
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.