Micro Focus QTP (UFT) Forums
Getting class from object repository when name of test object is given - Printable Version

+- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums)
+-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP)
+--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners)
+--- Thread: Getting class from object repository when name of test object is given (/Thread-Getting-class-from-object-repository-when-name-of-test-object-is-given)



Getting class from object repository when name of test object is given - starstar0002 - 07-10-2008

Hi all,
I am in the middle of an issue
I need to get the class of a test object from the object repository when i give the logical name of the object repository
Example
Code:
Browser("Yahoo!").Page("Yahoo!").WebEdit("star")
if this is the statement, i need to get WebEdit(class name) as output if i give "star"(logical name of a test object) as input

Any function available for that or lese any method available
Please help me. I am awaiting for your reply


RE: Getting class from object repository when name of test object is given - surya_7mar - 07-10-2008

I dont think we have a way to get, but i am eager to know if there is a way


RE: Getting class from object repository when name of test object is given - Darshan Doshi - 07-10-2008

Hi,
I am also searching for the same answer from today morning.
I myself feel it to be highly impossible.

As we can replace object name with variable name. there should be some method even for this HP need to create for if it is not available.
This can bring faster and easy way of developing scripts for regression testing.

Waiting for the fast reply.

just now only i created new post
https://www.learnqtp.com/forums/Thread-Need-Guidance-to-Identify-Object-s-Class-in-QTP
[I request moderator to merge my post with this one.]