12-24-2014, 12:11 AM
I have been successfully running a test in QTP. When I try to run it from Quality Center, however, it throws a lot of run errors, specifically when looking for specific locations on a page. For example, for this instruction:
QTP throws this error:
Cannot find the "Internet Explorer_Server" object's parent "Windows Internet Explorer" (class Window). Verify that parent properties match an object currently displayed in your application.
if I look in the object repository, there is no object of class Window. This doesn't stop the test from running directly in QTP, though.
Code:
strFound = Window("Windows Internet Explorer").WinObject("Internet Explorer_Server").GetTextLocation(strTextToFind_1, 670, 281, 1603, 655)
QTP throws this error:
Cannot find the "Internet Explorer_Server" object's parent "Windows Internet Explorer" (class Window). Verify that parent properties match an object currently displayed in your application.
if I look in the object repository, there is no object of class Window. This doesn't stop the test from running directly in QTP, though.