cancel
Showing results for 
Search instead for 
Did you mean: 

Test Complete: Switch to a different application

SOLVED
Highlighted
Occasional Contributor

Test Complete: Switch to a different application

Hello guys, 

I have an application which starts another different application and I have issues in switching to the new one. 

The record identifies all steps, but when I play it back, it doesn't recognize the second application.

Could someone help me ?

 

Thanks, 

1 ACCEPTED SOLUTION

Accepted Solutions
Occasional Contributor

Re: Test Complete: Switch to a different application

I contacted Support and they suggested I should use the WaitProcess Method and Checking Whether an Object Exists instead of the SetFocus method. The WaitProcess method worked perfectly. Thanks. 

View solution in original post

17 REPLIES 17
Community Hero

Re: Test Complete: Switch to a different application

How are you starting the second application?  Are you using the TestedApps feature?

https://support.smartbear.com/testcomplete/docs/testing-with/tested-apps/running.html

Occasional Contributor

Re: Test Complete: Switch to a different application

The second application is started by the initial application. Practically the app calls for a data import to be performed by the 2nd app into a db from the 1st app.

Community Hero

Re: Test Complete: Switch to a different application

So the second app starts up but then TestComplete isn't seeing it?

Community Hero

Re: Test Complete: Switch to a different application

My guess is that your second application is launched with some kind of dynamic identifier that Test Complete used to auto name map it. What does your name mapping look like compared to what you see in the object browser? 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Occasional Contributor

Re: Test Complete: Switch to a different application

Yes. And also the 1st app is waiting for the 2nd app to be done, before it can resume. 

Occasional Contributor

Re: Test Complete: Switch to a different application


@Marsha_R wrote:

So the second app starts up but then TestComplete isn't seeing it?



Yes. And also the 1st app is waiting for the 2nd app to be done, before it can resume. 

Occasional Contributor

Re: Test Complete: Switch to a different application


@cunderw wrote:

My guess is that your second application is launched with some kind of dynamic identifier that Test Complete used to auto name map it. What does your name mapping look like compared to what you see in the object browser? 


So they look the same Smiley Happy that's the strangest part. Also if I do a recording of the actions, all actions get identified correctly, but when I play it again, it doesn't run. It waits for the app2 window to appear in order to press the import button, but doesn't find it - and I can see it's there

Community Hero

Re: Test Complete: Switch to a different application

There has to be something different then that is changing betwen your recording and the playback. The auto generate name mapping is a great start, but will never be 100% complete so to speak. Can you provide screen shots of the object it can't find in the object browser, and then the properties being used in the name mapping? I would bet money there is something different. 


Thanks,
Carson

Click the Accept as Solution button if my answer has helped
Community Hero

Re: Test Complete: Switch to a different application

Let's see the name mapping for where you are in App 1 when you want to go to App 2 and also what you want to click in App 2.