Forum Discussion

Dhana's avatar
Dhana
Contributor
14 years ago

Problem in running the Silverlight scripts

Hi,



I have automated the Silverlight application using IE and while playbacking the scripts, at times am facing an problem like " Object can't find" but the LLP runs as per recorded with very slow moment which takes more time to complete the project than expected. Please refer to the attached Test Log details of the problem I am facing.



As long I investigated, I came to know if the IE already exists before my application launch, this problem comes but even to solve this kind of problem, all my scripts has " KillExeProcess" to run before start of the application which helps to close any IE opened, if any. But still I come across those kind of problems. And also, when i run the application from the TestedApps, the application runs fine and if i run that particular scripts individually, the script runs fine. But why do I face those problem???? Please help me to solve this..



If you are in need of any other details regarding this, am pleased to provide you the required details.



Thanks in advance :)      

2 Replies

  • Hi SmartBear Support Team,



    Could you pls analysis on my issue and get me a solution ASAP.



    I went throught the article " Handling ' Cannot Obtain the Window...' Error " and tried with all the possible causes for the problem am facing and found all were fine and no problem with the object name and also as I informed in my preivous post that this problem occurs only when I run my project and not the individual scripts, which also failed to investigate deeply into it.



    Pls share your ideas or if any such problem is faced by you and the way to solve the problem.



    Thanks.
  • Dhanalakshmi,


    Low-level procedures don't deal with objects. They simply simulate low-level events like pressing and releasing mouse buttons and keyboard keys.

    I read your description and looked at the log, but at the moment, it's difficult for me to say what goes wrong. If you provide more information, I'll try to help.


    What does your test do? What script/keyword-test command TestComplete highlights when you double-click the error in the test log?

    You said you use a special utility to terminate the IE process. Your test then fails to find IE. Does the test launch IE? (This question may seem ridiculous, but you know when you are busy, you can skip obvious things, so I decided to ask :-) ).


    Also, by default, IE 8 and 9 creates helper processes when you are browsing web pages. In the operating system, these processes are named "iexplore" like the "main" browser process. Can this cause issues? Does your utility close all these IE processes?


    >> Could you pls analysis on my issue and get me a solution ASAP.

    As far as I know, forum questions have lower priority for the Support Team. If you have purchased a TestComplete license or have a maintenance subscription, I'd suggest that you contact the Support Team via a special form on our web site.