Forum Discussion

paulo_silva's avatar
paulo_silva
New Contributor
13 years ago

Property Checkpoints failling on TestExecute, but running OK on TestComplete (TE and TC 8.7)

Hi,



I'm using TestComplete 8.7 to test a .NET WindowForms application.

At some point of the test, I open my application help, pressing F1. It opens the browser, Internet Explorer 8.



And it's here where I'm having problems. I have 2 Property Checkpoints, 1 checking the URL and other checking some text at the middle of the page.

When i run the test on TestComplete it runs OK, but on TestExecute it fails.



In the checkpoint where i'm checking the URL, it gives the following error:


  • "The object does not support the specified property."


The property I'm checking is the URL.



in the checkpoint where I'm checking some text at the middle of the page, it gives this:


  • "Unable to verify a value with the property checkpoint."


The property I'm checking is the innerText



i followed the instructions that you have in this article - http://blog.smartbear.com/software-quality/bid/169996/, but had no effect.



I have the same test running on a similar environments in different versions of my application, with the same Namemapping, and have no problems on TestComplete or TestExecute.



I'm using the following environment:

Windows 7 64 bit

TestComplete 8.7

TestExecute 8.7

Internet Explorer 8.0.7601.17514



Can you help me to overcome this problem?



Thank you,

Paulo

5 Replies

  • According to the screenshot you are working with the second instance of IE

    Sys["Process"]("iexplore", 2)

    I think that when you run the test using TestExecute IE object has different index.

    Try to remove the index - I think test may work without it.
  • Hi



    Here is an image of the log when test fails on TestExecute:





    And here is an image of the log, after the test runs with sucess on TestComplete



    As this is a situation that has happened repeatedly in recent days, I created a script that runs the tests that failed after their execution.

    In this re-run in TestExecute, the tests run successfully ...
  • Hi hanya pembantu,



    Thanks for the tip. But it doesn't work...



    After remove the index, the test stopped working on TestComplete.



    The error that it gives now is

    Ambiguous recognition of the tested object. as you can see on screenshot...



  • You wrote that you disabled IE setting to create separate processes for opened web pages. Did you do the same thing on the computer where TestExecute works? If yes, then I think you should make sure that there are no running IE processes when test starts or write some code to enumerate existing IE processes and find the needed one by its Page child node (comparing the page URL).