Highlighted
akhi_s27 Absent Member.
Absent Member.
646 views

QTP 11 issues with object spying and adding objects to a shared repository

I have automated a .Net application using QTP 9.5 and the scripts have been working since long.

Recently I came to know that QTP 11 supports some DevExpress objects and hence switched to QTP 11 to automate this other application of ours.

But now I'm facing a weird issue with the earlier scripts.

Our application basically has webpages embedded in it. QTP 11 object spy is now identifying all these objects as Window("abc").Page("xyz"). Also if I try to add some objects on the page, such as a text box etc. It gets added as page

Whereas, if I record some part of that same page, the recorded code shows correct object hierarchy. i.e. Window("asd").Page("sdf").WebEdit("dfg").Set "qwe"

and the objects get correctly added into the local repository.

 

This shows that QTP 11 identified the objects but the SPY and add object to repo are somehow not working properly.

Please help.

- Akhilesh S.
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.