cancel
Showing results for 
Search instead for 
Did you mean: 

TestComplete Loses Window

SOLVED
Highlighted
Occasional Contributor

TestComplete Loses Window

I recorded a script in TestComplete after TC was unable to access a particular text field and I was unable to get it to capture the field such that it was editable.  At first, this script failed because TC could not activate and enter data into the field in question; however, now, the script fails because it cannot find the application window - after it starts the application itself!  I am able to click on and type in the first screen while TC cannot find it; therefore, I am puzzled.
1 ACCEPTED SOLUTION

Accepted Solutions
Staff

RE: TestComplete Loses Window

Hello William,



  Is the application window dynamic with a different name each time it opens? Could you  use a mapped value for the window instead of a name, or a value that doesn't change from run to run? Below is a link to a webinar on name mapping, hope this helps.



http://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/

View solution in original post

3 REPLIES 3
Staff

RE: TestComplete Loses Window

Hello William,



  Is the application window dynamic with a different name each time it opens? Could you  use a mapped value for the window instead of a name, or a value that doesn't change from run to run? Below is a link to a webinar on name mapping, hope this helps.



http://support.smartbear.com/screencasts/testcomplete/reliable-tests-for-dynamic-objects/

View solution in original post

Highlighted
Occasional Contributor

RE: TestComplete Loses Window

The other day, I ran a script that also called the same application, TestedApp1, and it started the Application and was able to interact with it.  Nothing has changed about the Application; however, now, my script can't find the window when running it.  I will review the webinar, but I don't think that will make much of a difference.
Highlighted
Occasional Contributor

RE: TestComplete Loses Window

Sorry - I made a rookie mistake - I had an extraneous command that, once deleted, I discovered was inhibiting the functioning of the script.  I guess I'll open another topic with my original, and more puzzling, concern.
New Here?
Join us and watch the welcome video:
Announcements
Top Kudoed Authors